From chemistry-request@ccl.net Wed Dec 11 16:46:35 1991 Date: 11 December 1991 15:30:09 CST From: "Bob Goldstein 6-6664" To: Subject: Status: R On the note of recursion, I have found exactly 2 cases where it was useful for me. 1) Multidimensional integration. I pass an external function to a 1-D integrator, and the function itself also calls the same 1-D integrator. Perfectly legit, but in fortran you would need 2 copies of the same 1-D integrator. 2) Sometimes I want to have nested do-loops, where the depth of nesting is determined at run time. With recursion, a function calls itself, incrementing a global variable until it determines a limit set at run-time. How would you do this in fortran? bobg