Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Subroutines in Fortran user-written model

I am wondering if I can use subroutines/functions inside the model Fortran code, similarly to how we use functions in other coding languages?

This is just to simplify the code, so instead of having several instances of the same code block, I can just call the subroutine with the relevant inputs/outputs.

Thanks