Ignore:
Timestamp:
Mar 25, 2016, 10:34:35 AM (9 years ago)
Author:
emillour
Message:

All GCMs: Updates to make planetary codes (+Earth) setups converge.

  • Made a "phy_common" directory in libf, to contain routines common (wrt structural nature of underlying code/grid) to all LMDZ-related physics packages.
  • moved all "mod_phys_*" and "mod_grid_phy_lmdz" files from dynlonlat_phylonlat to "phy_common"
  • moved "ioipsl_getincom_p.F90 from "misc" to "phy_common" and modified it to match Earth GCM version and renamed it ioipsl_getin_p_mod.F90
  • added an "abort_physics" (as in Earth GCM) in "phy_common"
  • added a "print_control_mod.F90 (as in Earth GCM) in phy_common
  • made similar changes in LMDZ.GENERIC and LMDZ.MARS

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/makegcm_gfortran

    r1499 r1521  
    2929# You may set LIBOGCM to something else; otherwise we default to:
    3030setenv LIBOGCM $LMDGCM/libo
    31 ## NetCDF Libraries: what follows is OK for LMD 32 and 64bit Linux Machines
    32 #if ( `uname -m` == "x86_64" ) then
    33 # 64 bit machines
     31## NetCDF Libraries: what follows is OK for LMD 64bit Linux Machines
    3432  setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_gfortran/lib
    3533  setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_gfortran/include
    36 #else
    37 #  setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_gfortran/lib
    38 #  setenv NCDFINC /donnees/emlmd/netcdf-4.0.1_gfortran/include
    39 #endif
    4034####
     35# Adapt example below to your personal machine (here "antolini"), if necessary
     36if (`hostname -s` == "antolini" ) then
     37  setenv NCDFLIB /home/MILLOUR/netcdf64-4.0.1_gfortran/lib
     38  setenv NCDFINC /home/MILLOUR/netcdf64-4.0.1_gfortran/include
     39endif
    4140
    4241setenv localdir "`pwd`"
     
    413412   set phys="L_PHY= LIBPHY="
    414413else
    415    set src_dirs="$src_dirs aerono$physique phy$physique"
    416    set include="$include "'-I$(LIBF)/aerono'"$physique"' -I$(LIBF)/phy'"$physique"
     414   set src_dirs="$src_dirs phy_common aerono$physique phy$physique"
     415   set include="$include "'-I$(LIBF)/phy_common -I$(LIBF)/aerono'"$physique"' -I$(LIBF)/phy'"$physique"
     416   set LIBPHY_COMMON='$(LIBO)/libphy_common.a'
    417417endif
    418418set libdyn_phy=""
     
    796796LIBO=$libo \
    797797$phys \
     798LIBPHY_COMMON=${LIBPHY_COMMON} \
    798799LIBDYN_PHYS=${LIBDYN_PHYS} \
    799800DIM=$dimc \
     
    824825LIBO=$libo \
    825826$phys \
     827LIBPHY_COMMON=${LIBPHY_COMMON} \
    826828LIBDYN_PHYS=${LIBDYN_PHYS} \
    827829DIM=$dimc \
Note: See TracChangeset for help on using the changeset viewer.