Ignore:
Timestamp:
Feb 18, 2013, 2:46:14 PM (12 years ago)
Author:
slebonnois
Message:

SL: add rcm1d tool in Venus and Titan physics to run the code in 1D, and associated small modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz

    r849 r887  
    2424fcm_path=none
    2525cosp=false
     26dyn=""
    2627
    2728# guess a default 'arch'
     
    429430  \rm fxyprim.h
    430431  cp -p fxy_${grille}.h fxyprim.h
    431 else
    432   echo "Probleme dans les dimensions de la dynamique !!"
    433   echo "Non reactive pour l'instant !!!"
     432#else
     433#  echo "Probleme dans les dimensions de la dynamique !!"
     434#  echo "Non reactive pour l'instant !!!"
     435fi
     436if (( $dimension == 1 ))
     437then
     438  echo pas de dynamique
     439  dyn="DYN= L_DYN=-ldyn3d "
    434440fi
    435441
     
    459465then
    460466  SUFF_NAME=${SUFF_NAME}_para
    461   DYN=dyn${dimc}dpar
    462467else
    463468  SUFF_NAME=${SUFF_NAME}_seq
    464   DYN=dyn${dimc}d
    465469fi
    466470
     
    561565    else
    562566      # last possibility:
    563       if [[ -r $LMDGCM/libf/phy${physique}/${code}.F ]]
     567      if [[ -r $LMDGCM/libf/phy${physique}/${code}.F90 ]]
    564568      then
    565569        source_code=${code}.F90
     
    600604  INCLUDE="$INCLUDE"' -I$(LIBF)/phy'"$physique"
    601605fi
    602 INCLUDE="$INCLUDE"' -I$(LIBF)/dyn'${dimc}'d'$FLAG_PARA' -I'${LIBOGCM}/${nomlib}
     606if (( $dimension == 1 ))
     607then
     608 INCLUDE="$INCLUDE"' -I$(LIBF)/dyn3d -I'${LIBOGCM}/${nomlib}
     609else
     610 INCLUDE="$INCLUDE"' -I$(LIBF)/dyn'${dimc}'d'$FLAG_PARA' -I'${LIBOGCM}/${nomlib}
     611fi
    603612
    604613# ranlib utility (check it exists or else default to ls)
     
    632641INCLUDEC="$includec" \
    633642$filtre \
     643$dyn \
    634644LIBO=${LIBOGCM}/${nomlib} \
    635 "PHYS=$physique" \
     645PHYS=$physique \
    636646DIM=$dimc \
    637647FLAG_PARA=$FLAG_PARA \
     
    662672INCLUDEC="$includec" \
    663673$filtre \
     674$dyn \
    664675LIBO=${LIBOGCM}/${nomlib} \
    665 "PHYS=$physique" \
     676PHYS=$physique \
    666677DIM=$dimc \
    667678FLAG_PARA=$FLAG_PARA \
Note: See TracChangeset for help on using the changeset viewer.