Ignore:
Timestamp:
Mar 7, 2013, 2:28:06 PM (12 years ago)
Author:
emillour
Message:

Update makelmdz_fcm script so that it can compile the 1D model and that it can also compile C sources (Titan chemistry).
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r847 r895  
    2323veget=false
    2424chimie=false
     25chemistry=false
    2526parallel=none
    2627compil_mod=prod
     
    3233LIBOGCM=$LMDGCM/libo
    3334LIBFGCM=$LMDGCM/libf
     35# path for optional packages, but default set to ".void_dir"
    3436COSP_PATH=$LMDGCM/.void_dir
     37CHEM_PATH=$LMDGCM/.void_dir
     38# Path to fcm utility:
    3539fcm_path=$LMDGCM/tools/fcm/bin
    3640
     
    250254   LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
    251255fi
     256
    252257if [[ "$cosp" == "true" ]]
    253258then
     
    255260   COSP_PATH="$LIBFGCM/cosp"
    256261#   LIB="${LIB} -l${LIBPREFIX}cosp"
     262fi
     263
     264if [[ "$physique" == "titan" ]]
     265then
     266   CHEM_PATH="${LIBFGCM}/chim${physique}"
     267   INCLUDE="$INCLUDE -I${LIBFGCM}/chim${physique}"
    257268fi
    258269
     
    303314  \rm fxyprim.h
    304315  cp -p fxy_${grille}.h fxyprim.h
    305 else
    306   echo "Probleme dans les dimensions de la dynamique !!"
    307   echo "Non reactive pour l'instant !!!"
     316#else
     317#  echo "Probleme dans les dimensions de la dynamique !!"
     318#  echo "Non reactive pour l'instant !!!"
     319fi
     320
     321if (( $dimension == 1 ))
     322then
     323##in 1D, add dyn3d to include path (because main prog is in physics)
     324  INCLUDE="$INCLUDE -Ilibf/dyn3d"
     325#  echo pas de dynamique
     326#  dyn="DYN= L_DYN=-ldyn3d "
    308327fi
    309328
     
    359378  SUFF_NAME=${SUFF_NAME}_seq
    360379  DYN=dyn${dimc}d
     380  ## specific stuff for 1D model (needs includes which are in dyn3d)
     381  if (( $dimension == 1 )) ; then
     382    SUFF_NAME=${SUFF_NAME}
     383    DYN=dyn3d
     384  fi
    361385fi
    362386
     
    393417echo "%PHYS          phy${physique}" >> $config_fcm
    394418echo "%COSP          $COSP_PATH"     >> $config_fcm
     419echo "%CHEM          $CHEM_PATH"     >> $config_fcm
    395420echo "%CPP_KEY       $CPP_KEY"       >> $config_fcm
    396421echo "%EXEC          $code"          >> $config_fcm
Note: See TracChangeset for help on using the changeset viewer.