ESMCI / ccs_config_cesm

CESM CIME Case Control System configuration files
3 stars 44 forks source link

Include NAG compiler "-mismatch" flag for mpi-serial builds #49

Closed fvitt closed 2 years ago

fvitt commented 2 years ago

Builds fail without "-mismatch" NAG compiler option when deferred abstract interfaces for type bound functions are used. The mvapich2 mpif90 compiler wrapper includes the "-mismatch" compiler flag. This PR includes the "-mismatch" flag for builds when MPILIB is mpi-serial.

fvitt commented 2 years ago

@jedwards4b You approved this PR some time ago. Will you be able to merge this into main and tag?

gold2718 commented 2 years ago

I think this change is a mistake as it could mask real issues that are otherwise found building with MPI-serial? In this case, I think that the issue is a Nag compiler bug dealing with a deferred elemental function. As such, I think the correct fix is to add an exception in Depends.nag for the files that encounter this bug (in this case, ndrop.F90).