Ignore:
Timestamp:
Jun 14, 2013, 9:17:44 AM (12 years ago)
Author:
emillour
Message:

Generic GCM:

  • Some minor changes so that gcm compiles with gfortran:
    • Added option to compile "long lines" (>132 characters) in makegcm_gfortran
    • Removed use of isnan() in physiq.F90 (it is not a standard function)
    • Avoid possible underflow of psat in watercommon_h.F90
    • Adapted the checks on the *IR and *VI band files to be more strict

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/makegcm_gfortran

    r988 r989  
    387387
    388388           ## for gfortran
    389            set optim="-g -finit-real=-inf -finit-integer=-999999 -Wall -fbacktrace -fbounds-check -ffpe-trap=invalid,zero,overflow"
    390            set optim90="-g -finit-real=-inf -finit-integer=-999999 -Wall -fbacktrace -fbounds-check -ffpe-trap=invalid,zero,overflow"
    391            set optimtru90="-g -finit-real=-inf -finit-integer=-999999 -Wall -fbacktrace -fbounds-check -ffpe-trap=invalid,zero,overflow"
     389           set optim="-g3 -Wall -fbounds-check -ffpe-trap=invalid,zero,overflow"
     390           set optim90="-g3 -Wall -fbounds-check -ffpe-trap=invalid,zero,overflow"
     391           set optimtru90="-g3 -Wall -fbounds-check -ffpe-trap=invalid,zero,overflow"
    392392
    393393        else
     
    653653   set f90=f90
    654654else if $LINUX then
    655    set f77=gfortran
    656    set f90=gfortran
     655# default for gfortran is that "free format" is up to 132 characters,
     656# but we sometimes have more, so move that limit to 264 characters
     657   set f77="gfortran -ffree-line-length-264"
     658   set f90="gfortran -ffree-line-length-264"
    657659   set opt_link=" -L$LIBOGCM -L$NCDFLIB -lnetcdff -lnetcdf "
    658660else if $SUN then
Note: See TracChangeset for help on using the changeset viewer.