Ignore:
Timestamp:
Jul 31, 2017, 3:03:54 PM (8 years ago)
Author:
millour
Message:

Rearrange ICOSAGCM/Physics interface so that multiple different LMDZ physics packages may be used.
So far only interfaces with 'lmd' and 'dev' physics are handled.
Added a 'DEV_PHYSICS' directory with sample def and xml files to test correct integration with 'dev' physics.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/ICOSA_LMDZ/make_icosa_lmdz

    r3991 r4028  
    2929      "-h") cat <<fin
    3030Usage :
    31 makegcm [options] -m arch exec
     31makegcm [options] -m arch -p phys  exec
    3232[-h]                       : help
    3333[-prod / -dev / -debug]    : compilation en mode production (default) / developpement / debug .
    3434[-nodeps]                  : do not build dependencies (XIOS, IOIPSL, LMDZ5, ICOSAGCM)
    3535 -arch nom_arch            : nom de l\'architecture cible
     36 -p phys                   : physics package (e.g. std , venus , ...)
     37[-p_opt "options"]         : additional options for physics package
    3638fin
    3739          exit;;
    3840
     41      "-p")
     42          phys=$2 ; shift ; shift ;;
     43     
     44      "-p_opt")
     45          phys_opt=$2 ; shift ; shift ;;
     46         
    3947      "-prod")
    4048          compil_mode="prod" ; shift ;;
     
    182190echo "%LD_FLAGS $LD_FLAGS" >> config.fcm
    183191echo "%CPP_KEY $CPP_KEY" >> config.fcm
     192echo "%PHYS phy$phys" >> config.fcm
    184193echo "%LIB $ICOSA_LIB">> config.fcm
    185194
     
    208217        lmdz_veget="orchidee2.0 -cpp ORCHIDEE_NOZ0H"
    209218    fi
    210 #    ./makelmdz_fcm gcm -$compil_mode -mem -parallel $parallel -nodyn -io xios -v $lmdz_veget -arch $arch -arch_path $arch_path -j $job $full_flag || exit 1
    211     ./makelmdz_fcm gcm -$compil_mode -mem -parallel $parallel -libphy -io xios -v $lmdz_veget -arch $arch -arch_path $arch_path -j $job $full_flag || exit 1
     219    ./makelmdz_fcm -p $phys $phys_opt -$compil_mode -mem -parallel $parallel -libphy -io xios -v $lmdz_veget -arch $arch -arch_path $arch_path -j $job $full_flag || exit 1
    212220    cd -
    213221
Note: See TracChangeset for help on using the changeset viewer.