Ignore:
Timestamp:
Nov 19, 2013, 12:52:22 PM (11 years ago)
Author:
emillour
Message:

Common dynamics: Updates and modifications to enable running Mars physics with

LMDZ.COMMON dynamics:

  • For compilation: adapted makelmdz, create_make_gcm and makelmdz_fcm, bld.cfg to compile aeronomy routines in "aerono$physique" if it exists, and added "-P -traditional" preprocessing flags in "arch-linux-ifort*"
  • Added function "cbrt.F" (cubic root) in 'bibio'
  • Adapted the reading/writing of dynamics (re)start.nc files for Mars. The main issue is that different information (on time, reference and current) is stored and used differently, hence a few if (planet_type =="mars") here and there. Moreover in the martian case there is the possibility to store fields over multiple times. Some Mars-specific variables (ecritphy,ecritstart,timestart) added in control_mod.F and (hour_ini) in temps.h

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r1019 r1107  
    4141COSP_PATH=$LMDGCM/.void_dir
    4242CHEM_PATH=$LMDGCM/.void_dir
     43AERONO_PATH=$LMDGCM/.void_dir
    4344# Path to fcm utility:
    4445##fcm_path=$LMDGCM/tools/fcm/bin
     
    9293[-link LINKS]              : additional links with other libraries
    9394[-j n]                     : active parallel compiling on ntask
    94 [-full]                    : full recompiling
     95[-full]                    : full (re-)compilation (from scratch)
    9596[-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
    9697[-ext_src path]            : path to an additional set of routines to compile with the model
     
    322323fi
    323324
     325# for Mars (but could be used by others as well), there is also "aeronomars"
     326if [[ -d ${LIBFGCM}/aerono${physique} ]]
     327then
     328   AERONO_PATH="${LIBFGCM}/aerono${physique}"
     329   INCLUDE="$INCLUDE -I${LIBFGCM}/aerono${physique}"
     330fi
     331
    324332INCLUDE="$INCLUDE ${NETCDF_INCDIR}"
    325333LIB="$LIB ${NETCDF_LIBDIR}"
     
    513521echo "%COSP          $COSP_PATH"     >> $config_fcm
    514522echo "%CHEM          $CHEM_PATH"     >> $config_fcm
     523echo "%AERONO        $AERONO_PATH"   >> $config_fcm
    515524echo "%CPP_KEY       $CPP_KEY"       >> $config_fcm
    516525echo "%EXEC          $code"          >> $config_fcm
Note: See TracChangeset for help on using the changeset viewer.