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_ifort

    r1416 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
     
    5051hostname | grep 'ada' > /dev/null
    5152if ( $? == 0 ) then
    52    echo "*** NETCDF preset *** CICLAD cluster"
     53   echo "*** NETCDF preset *** Ada cluster"
    5354   setenv NCDFLIB /smplocal/pub/NetCDF/4.1.3/seq/lib
    5455   setenv NCDFINC /smplocal/pub/NetCDF/4.1.3/seq/include
     
    165166set optim90=""
    166167set oplink=""
     168
     169hostname | grep 'n201' > /dev/null
     170if ( $? == 0 ) then
     171   #on Gnome Lapack & Blas available via ifort's MKL
     172   set cpp_def="$cpp_def -DBLAS -DLAPACK"
     173endif
     174hostname | grep 'ada' > /dev/null
     175if ( $? == 0 ) then
     176   #on Ada Lapack & Blas available via ifort's MKL
     177   set cpp_def="$cpp_def -DBLAS -DLAPACK"
     178endif
    167179
    168180########################################################################
     
    331343           are located in directories that are not referenced by default.
    332344
     345-cpp FLAG  Add preprocessing definition of FLAG
     346
    333347-adjnt     Compiles the adjoint model to the dynamical code.
    334348
     
    376390     case -include
    377391        set include="$include -I$2" ; shift ; shift ; goto top
     392
     393     case -cpp
     394        set cpp_def="$cpp_def -D$2" ; shift ; shift ; goto top
    378395
    379396     case -adjnt
     
    755772else if $LINUX then
    756773# Ehouarn : adapt to gfortran
    757  set optim="$optim -I${libo}"
    758  set optim90="$optim90 -I${libo}"
    759  set optimtru90="$optimtru90 -I${libo}"
     774 set optim="$optim -I${libo} $cpp_def"
     775 set optim90="$optim90 -I${libo} $cpp_def"
     776 set optimtru90="$optimtru90 -I${libo} $cpp_def"
    760777# Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above)
    761778# set mod_loc_dir=$libo
Note: See TracChangeset for help on using the changeset viewer.