Experiences (continued)
PARAMETER statements: used to set global variables that will not change during the computation, e.g. the number of grid points
Short utility routines: these make the code more readable; the compiler will inline them.
Performance tools (e.g. flowview) : these will indicate which subroutines take the most time and which may need to be inlined. Be sure to check input/output routines.
Usually just a few subroutines take the most time. Focus on optimizing these.