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_gfortran

    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
     
    503503  if ( "$dyntype" == "olddyn" ) then
    504504    set include="$include "'-I$(LIBF)/olddyn3d '
    505     set src_dirs="$src_dirs olddyn3d dynlonlat_phylonlat dynlonlat_phylonlat/phy$physique"
     505    set src_dirs="$src_dirs olddyn3d dynphy_lonlat dynphy_lonlat/phy$physique"
    506506  else
    507507    set include="$include "'-I$(LIBF)/dyn3d '
    508     set src_dirs="$src_dirs dyn3d dynlonlat_phylonlat dynlonlat_phylonlat/phy$physique"
     508    set src_dirs="$src_dirs dyn3d dynphy_lonlat dynphy_lonlat/phy$physique"
    509509  endif
    510   set libdyn_phy="-ldynlonlat_phylonlat"
    511   set LIBDYN_PHYS='$(LIBO)/libdynlonlat_phylonlat.a'
     510  set libdyn_phy="-ldynphy_lonlat"
     511  set LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a'
    512512  set dimh=`echo $dim | awk ' { print $1 "." $2 } '`
    513513endif
     
    763763cd $localdir
    764764
    765 ## locate main program (could be in dyn3d or dynlonlat_phylonlat/phy$physique
     765## locate main program (could be in dyn3d or dynphy_lonlat/phy$physique
    766766##  or phy$physique/dyn1d   and could be .F or .F90)
    767767set source_code=${code}.F
     
    778778  set source_code=${code}.F90
    779779endif
    780 if ( -f $LMDGCM/libf/dynlonlat_phylonlat/phy${physique}/${code}.F ) then
    781   set dirmain=dynlonlat_phylonlat/phy${physique}
     780if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F ) then
     781  set dirmain=dynphy_lonlat/phy${physique}
    782782  set source_code=${code}.F
    783783endif
    784 if ( -f $LMDGCM/libf/dynlonlat_phylonlat/phy${physique}/${code}.F90 ) then
    785   set dirmain=dynlonlat_phylonlat/phy${physique}
     784if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F90 ) then
     785  set dirmain=dynphy_lonlat/phy${physique}
    786786  set source_code=${code}.F90
    787787endif
Note: See TracChangeset for help on using the changeset viewer.