Ignore:
Timestamp:
Nov 22, 2012, 9:10:25 AM (12 years ago)
Author:
emillour
Message:

Work on common dynamics and interfacing with different physics:

  • Put calls to PVtheta in dynamics between CPP_EARTH flags (because it calls tetalevel, which is supposed to be in the physics; only OK for Earth...).
  • Adapted makelmdz script so that one can compile main programs in dyn* or phy* (makelmdz_fcm already capable of doing that).
  • Moved start2archive-VT.F and start2archive-VT.F to phyvenus (as start2archive.F and newstart.F); leave adapting them to Titan for later.
  • Small correction to phyvenus/testphys1d.F (use module control_mod instead of control.h and call disvert_noterre).
  • removed "use histcom" in phyvenus/physiq.F and phytitan/physiq.F ; it is not needed since there is already a "use ioipsl" (and it moreover confused makelmdz_fcm...)
  • Had to add declaration of variable "zlsm1" in phytitan/physiq.F because it is used in "write_hist.h"; but note that it is used while not initialized (but what should it be initialized to?).

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz

    r270 r849  
    544544#################################################################
    545545
    546 source_code=${code}.F
    547 if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F90 ]]
    548 then
    549   source_code=${code}.F90
     546# find code suffix and directory where code is located
     547if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F ]]
     548then
     549  source_code=${code}.F
     550  code_dir=dyn${dimc}d${FLAG_PARA}
     551else
     552  if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F90 ]]
     553  then
     554    source_code=${code}.F90
     555    code_dir=dyn${dimc}d${FLAG_PARA}
     556  else
     557    if [[ -r $LMDGCM/libf/phy${physique}/${code}.F ]]
     558    then
     559      source_code=${code}.F
     560      code_dir=phy${physique}
     561    else
     562      # last possibility:
     563      if [[ -r $LMDGCM/libf/phy${physique}/${code}.F ]]
     564      then
     565        source_code=${code}.F90
     566        code_dir=phy${physique}
     567      else
     568        echo "Error: cannot find ${code}.F[90]"
     569        echo " neither in dyn${dimc}d${FLAG_PARA} nor in phy${physique}"
     570        exit
     571      fi
     572    fi
     573  fi
    550574fi
    551575
     
    625649MOD_SUFFIX="mod" \
    626650AR=$arcommand \
     651DIRMAIN=$code_dir \
    627652SOURCE=$source_code \
    628653PROG=$code
     
    654679MOD_SUFFIX="mod" \
    655680AR=$arcommand \
     681DIRMAIN=$code_dir \
    656682SOURCE=$source_code \
    657683PROG=$code
Note: See TracChangeset for help on using the changeset viewer.