MCSclimate / MCT

Model Coupling Tookit
Other
43 stars 18 forks source link

nag compiler FCFLAGS is overwritten in mpi-serial configure #15

Closed jedwards4b closed 9 years ago

jedwards4b commented 9 years ago

At line 81 of configure.in the FCFLAGS variable is overwritten when you are using the nag fortran compiler. We do not want to use this flag (-mismatch) with CESM and know how to avoid it. We would prefer if this flag were only set if the user has not provided any FCFLAGS as input to configure.

jedwards4b commented 9 years ago

This solves the problem: if test -z "$FCFLAGS"; then FCFLAGS="-mismatch" fi

rloy commented 9 years ago

Makes sense, I made the change.

FWIW the compiler-specific code in the configure was originally copied from MCT, in the effort to make mpi-serial stand-alone.

On May 4, 2015, at 3:35 PM, jedwards4b notifications@github.com wrote:

This solves the problem: if test -z "$FCFLAGS"; then FCFLAGS="-mismatch" fi

On May 4, 2015, at 3:30 PM, jedwards4b notifications@github.com wrote:

At line 81 of configure.in the FCFLAGS variable is overwritten when you are using the nag fortran compiler. We do not want to use this flag (-mismatch) with CESM and know how to avoid it. We would prefer if this flag were only set if the user has not provided any FCFLAGS as input to configure.

rljacob commented 9 years ago

Fixed in 4964fec2d9d009e0981961606c5ceea0db423772