General Resource Management for Computationally Demanding Scientific Software