COSIMA / cice5

Clone of The Los Alamos sea ice model (CICE) with ACCESS drivers. See https://github.com/CICE-Consortium/CICE-svn-trunk/tree/cice-5.1.2
4 stars 12 forks source link

Make uses cpp rather than compiler #54

Open russfiedler opened 3 years ago

russfiedler commented 3 years ago

In the Makefile the .F.o and .F90.o rules consist of 2 steps. The files are preprocessed with cpp and then the .f90 files are compiled.

https://github.com/CICE-Consortium/CICE/commit/17f346b41503cb0c7a6a28f62e4aa036f12d6327#diff-edcac6da09c9e9a6ee6bdac54c80057dc1ad4d43acb77a6f22b31de5e1dcf129

This means that compiler predefined macros aren't defined. This means that traceback info in mpi/ice_exit.F90 is unavailable.

I think using the compiler with -EP -P is one option if you want to keep the preprocessed files.