Ignore:
Timestamp:
Apr 13, 2016, 9:57:46 AM (9 years ago)
Author:
emillour
Message:

All GCMS: Further adaptations to keep up with changes in LMDZ5 concerning
physics/dynamics separation:

  • changed directory "dynlonlat_phylonlat" to "dynphy_lonlat" and adapted makelmdz and makelmdz_fcm scripts accordingly.
  • added option "-libphy" to makelmdz_fcm to just build a physics library, without any main program (not operational yet; further cleanup in the physics required).
  • moved "iniprint.h" from dyn3d_common to misc (NB: it is used in both physics and dynamics; this should be cleaned up further...)

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/makegcm_pgf

    r1521 r1540  
    88set physique=mars
    99set phys="PHYS=$physique"
    10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynlonlat_phylonlat'
     10set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynphy_lonlat'
    1111set cpp_def=''
    1212set ntrac = 1
     
    507507  if ( "$dyntype" == "olddyn" ) then
    508508    set include="$include "'-I$(LIBF)/olddyn3d '
    509     set src_dirs="$src_dirs olddyn3d dynlonlat_phylonlat dynlonlat_phylonlat/phy$physique"
     509    set src_dirs="$src_dirs olddyn3d dynphy_lonlat dynphy_lonlat/phy$physique"
    510510  else
    511511    set include="$include "'-I$(LIBF)/dyn3d '
    512     set src_dirs="$src_dirs dyn3d dynlonlat_phylonlat dynlonlat_phylonlat/phy$physique"
     512    set src_dirs="$src_dirs dyn3d dynphy_lonlat dynphy_lonlat/phy$physique"
    513513  endif
    514   set libdyn_phy="-ldynlonlat_phylonlat"
    515   set LIBDYN_PHYS='$(LIBO)/libdynlonlat_phylonlat.a'
     514  set libdyn_phy="-ldynphy_lonlat"
     515  set LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a'
    516516  set dimh=`echo $dim | awk ' { print $1 "." $2 } '`
    517517endif
     
    764764cd $localdir
    765765
    766 ## locate main program (could be in dyn3d or dynlonlat_phylonlat/phy$physique
     766## locate main program (could be in dyn3d or dynphy_lonlat/phy$physique
    767767##  or phy$physique/dyn1d   and could be .F or .F90)
    768768set source_code=${code}.F
     
    779779  set source_code=${code}.F90
    780780endif
    781 if ( -f $LMDGCM/libf/dynlonlat_phylonlat/phy${physique}/${code}.F ) then
    782   set dirmain=dynlonlat_phylonlat/phy${physique}
     781if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F ) then
     782  set dirmain=dynphy_lonlat/phy${physique}
    783783  set source_code=${code}.F
    784784endif
    785 if ( -f $LMDGCM/libf/dynlonlat_phylonlat/phy${physique}/${code}.F90 ) then
    786   set dirmain=dynlonlat_phylonlat/phy${physique}
     785if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F90 ) then
     786  set dirmain=dynphy_lonlat/phy${physique}
    787787  set source_code=${code}.F90
    788788endif
Note: See TracChangeset for help on using the changeset viewer.