Ignore:
Timestamp:
Nov 19, 2015, 4:04:48 PM (10 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_pgf

    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
     
    317318           are located in directories that are not referenced by default.
    318319
     320-cpp FLAG  Add preprocessing definition of FLAG
     321
    319322-adjnt     Compiles the adjoint model to the dynamical code.
    320323
     
    362365     case -include
    363366        set include="$include -I$2" ; shift ; shift ; goto top
     367
     368     case -cpp
     369        set cpp_def="$cpp_def -D$2" ; shift ; shift ; goto top
    364370
    365371     case -adjnt
     
    738744 set optimtru90=" $optimtru90 -I$libo "
    739745else if $LINUX then
    740  set optim="$optim -module $libo"
    741  set optim90="$optim90 -module $libo"
    742  set optimtru90="$optimtru90 -module $libo"
     746 set optim="$optim -module $libo $cpp_def"
     747 set optim90="$optim90 -module $libo $cpp_def"
     748 set optimtru90="$optimtru90 -module $libo $cpp_def"
    743749# Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above)
    744750# set mod_loc_dir=$libo
Note: See TracChangeset for help on using the changeset viewer.