Changeset 1514 for LMDZ5/trunk/makegcm


Ignore:
Timestamp:
May 3, 2011, 10:23:59 AM (14 years ago)
Author:
Ehouarn Millour
Message:

Update default compiler options implied by makegcm's '-debug' option.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/makegcm

    r1499 r1514  
    512512        else if $LINUX then
    513513           if ( $FC_LINUX == "pgf90" ) then
    514              set optim="$optim"" -g -C -Mbounds "
    515              set optim90="$optim90"" -g -C -Mbounds "
    516              set optimtru90="$optimtru90"" -g -C -Mbounds "
     514             set optim="$optim"" -g -Mbounds -Kieee -Ktrap=fp -traceback "
     515             set optim90="$optim90"" -g -Mbounds -Kieee -Ktrap=fp -traceback "
     516             set optimtru90="$optimtru90"" -g -Mbounds -Kieee -Ktrap=fp -traceback "
    517517           else if ( $FC_LINUX == 'gfortran' ) then
    518              set optim="$optim"" -g -fbounds-check "
    519              set optim90="$optim90"" -g -fbounds-check "
    520              set optimtru90="$optimtru90"" -g -fbounds-check "
     518             set optim="$optim"" -g -ffpe-trap=invalid,zero,overflow -fbounds-check -Wall "
     519             set optim90="$optim90"" -g -ffpe-trap=invalid,zero,overflow -fbounds-check -Wall "
     520             set optimtru90="$optimtru90"" -ffpe-trap=invalid,zero,overflow -g -fbounds-check -Wall "
     521           else if ( $FC_LINUX == 'g95' ) then
     522             set optim="$optim"" -g -fbounds-check -freal=nan -ftrace=full -Wall "
     523             set optim90="$optim90"" -g -fbounds-check -freal=nan -ftrace=full -Wall "
     524             set optimtru90="$optimtru90"" -g -fbounds-check -freal=nan -ftrace=full -Wall "
    521525           else
    522526             echo 'compilateur linux non reconnu'
Note: See TracChangeset for help on using the changeset viewer.