Ignore:
Timestamp:
Nov 19, 2013, 12:52:22 PM (12 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

    r1076 r1107  
    2828scatterers=""
    2929dyn=""
     30full=''
    3031
    3132# guess a default 'arch'
     
    135136[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
    136137[-link LINKS]              : additional links with other libraries
    137 [-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
     138[-full]                    : full (re-)compilation (from scratch)
    138139[-ext_src path]            : path to an additional set of routines to compile with the model
    139140 -arch arch                : target architecture
     
    203204          LIB="$LIB $2" ; shift ; shift ;;
    204205
    205       "-fcm_path")
    206           fcm_path=$2 ; shift ; shift ;;
     206      "-full")
     207          full="full" ; shift ;;
    207208
    208209      "-ext_src")
     
    327328fi
    328329#########
     330
     331# for Mars (but could be used by others as well), there is also "aeronomars"
     332if [[ -d ${LIBFGCM}/aerono${physique} ]]
     333then
     334   INCLUDE="$INCLUDE -I${LIBFGCM}/aerono${physique}"
     335   LIB="$LIB -l${LIBPREFIX}aerono$physique"
     336   opt_dep="$opt_dep aerono$physique"
     337   laeronomars="-l${LIBPREFIX}aeronomars"
     338fi
     339
    329340
    330341if [[ "$chimie" == "INCA" ]]
     
    581592cd $LMDGCM
    582593
     594#cleanup for a full recompilation, if requested
     595if [[ $full == "full" ]]
     596then
     597# remove makefile and $libo/*
     598  cd $LMDGCM
     599  \rm -f makefile
     600  \rm -rf $LIBOGCM/*
     601fi
    583602
    584603########################################################################
     
    743762L_ADJNT=$adjnt \
    744763L_COSP="$lcosp" \
     764L_AERONOMARS="$laeronomars" \
    745765L_CHIMIE="$libchimie" \
    746766LOCAL_DIR="$localdir"  \
     
    774794L_ADJNT="$adjnt" \
    775795L_COSP="$lcosp" \
     796L_AERONOMARS="$laeronomars" \
    776797L_CHIMIE="$libchimie" \
    777798LOCAL_DIR="$localdir"  \
Note: See TracChangeset for help on using the changeset viewer.