luflarois
New member
I have 3 questions:
1. Why the MPAS code is using "includes" instead of modules? For example, looking at the code mpas_derived_types.F we see:
Wouldn't construction be better with the use of modules/use? Why not?
2. Why it uses "#include" instead of "include"?
3. Why the fortran suffix is ". F" instead of ". F90"? Most editors like VSCode, Eclipse (Photran) understand the code with ". F" as Fortran Fixed Form. The photran refactoring function (for example) does not work well with the suffix". F".
1. Why the MPAS code is using "includes" instead of modules? For example, looking at the code mpas_derived_types.F we see:
Code:
#include "mpas_attlist_types.inc"
#include "mpas_hash_types.inc"
#include "mpas_dmpar_types.inc"
#include "mpas_field_types.inc"
Wouldn't construction be better with the use of modules/use? Why not?
2. Why it uses "#include" instead of "include"?
3. Why the fortran suffix is ". F" instead of ". F90"? Most editors like VSCode, Eclipse (Photran) understand the code with ". F" as Fortran Fixed Form. The photran refactoring function (for example) does not work well with the suffix". F".