Ignore:
Timestamp:
Nov 19, 2015, 4:04:48 PM (9 years ago)
Author:
emillour
Message:

Mars GCM:

  • Added option "-cpp" so that users can add the definition of specific precompiling flags in makegcm_* scripts (and added default BLAS and LAPACK flags for ifort on Gnome and Ada).
  • Put calls to dgesv (Lapack) routine in photochemistry_asis.F90 under the LAPACK preprocessing flag. Moved secondary routines in photochemistry.F and photochemistry_asis.F90 into the main (via contains instruction) to avoid multiple definitions of routines with identical names.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/makegcm_g95

    r1403 r1499  
    99set phys="PHYS=$physique"
    1010set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynlonlat_phylonlat'
     11set cpp_def=''
    1112set ntrac = 1
    1213set filtre=filtrez
     
    312313           are located in directories that are not referenced by default.
    313314
     315-cpp FLAG  Add preprocessing definition of FLAG
     316
    314317-adjnt     Compiles the adjoint model to the dynamical code.
    315318
     
    357360     case -include
    358361        set include="$include -I$2" ; shift ; shift ; goto top
     362
     363     case -cpp
     364        set cpp_def="$cpp_def -D$2" ; shift ; shift ; goto top
    359365
    360366     case -adjnt
     
    737743else if $LINUX then
    738744# Ehouarn : adapt to g95
    739  set optim="$optim -fmod=${libo}"
    740  set optim90="$optim90 -fmod=${libo}"
    741  set optimtru90="$optimtru90 -fmod=${libo}"
     745 set optim="$optim -fmod=${libo} $cpp_def"
     746 set optim90="$optim90 -fmod=${libo} $cpp_def"
     747 set optimtru90="$optimtru90 -fmod=${libo} $cpp_def"
    742748# Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above)
    743749# set mod_loc_dir=$libo
Note: See TracChangeset for help on using the changeset viewer.