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_gfortran

    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
     
    308309-O "compilation options" set of fortran compilation options to use
    309310
     311-cpp FLAG  Add preprocessing definition of FLAG
     312
    310313-include path
    311314           Used if the subroutines contain #include files (ccp) that
     
    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 gfortran
    739  set optim="$optim -I${libo}"
    740  set optim90="$optim90 -I${libo}"
    741  set optimtru90="$optimtru90 -ffree-form -I${libo}"
     745 set optim="$optim -I${libo} $cpp_def"
     746 set optim90="$optim90 -I${libo} $cpp_def"
     747 set optimtru90="$optimtru90 -ffree-form -I${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.