Ignore:
Timestamp:
May 10, 2016, 12:27:14 AM (9 years ago)
Author:
dubos
Message:

small improvements to make_icosa_lmdz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/ICOSA_LMDZ/make_icosa_lmdz

    r3913 r3931  
    44export ROOT=$PWD
    55
    6 echo ./make_icosa $* > rebuild
    7 chmod a+x rebuild
     6echo $0 $* > rebuild_all
     7chmod a+x rebuild_all
    88
    99compil_mode_defined="FALSE"
     
    1919parallel="none"
    2020physics="none"
     21build_deps="TRUE"
    2122CPP_KEY="CPP_NONE"
    2223ICOSA_LIB=""
     
    3031[-h]                       : help
    3132[-prod / -dev / -debug]    : compilation en mode production (default) / developpement / debug .
     33[-nodeps]                  : do not build dependencies (XIOS, IOIPSL, LMDZ5, ICOSAGCM)
    3234 -arch nom_arch            : nom de l\'architecture cible
    3335fin
     
    5759      "-full")
    5860          full_defined="TRUE" ; shift ;;
     61
     62      "-nodeps")
     63          build_deps="FALSE" ; shift ;;
    5964
    6065      "-with_xios")
     
    142147ICOSA_LIB="$ICOSA_LIB $IOIPSL_LIBDIR $IOIPSL_LIB $NETCDF_LIBDIR $NETCDF_LIB $HDF5_LIBDIR $HDF5_LIB"
    143148
    144 
    145149rm bin/*
    146 
    147 cd ../IOIPSL
    148 ./makeioipsl_fcm -$compil_mode -parallel -arch $arch -j $job $full_flag
    149 cd -
    150 
    151 cd ../XIOS
    152 ./make_xios --$compil_mode --arch $arch --job $job
    153 cd -
    154150
    155151if [[ "$full_defined" == "TRUE" ]]
    156152then
    157153  full_flag="-full"
     154  full_flag2="--full"
    158155else
    159156  full_flag=""
     157  full_flag2=""
    160158fi
    161 
    162 if [[ "$with_orchidee_defined" == "TRUE" ]]
    163 then
    164   cd ../ORCHIDEE
    165   ./makeorchidee_fcm -$compil_mode -parallel $parallel -xios2 -arch $arch -j $job $full_flag
    166   cd -
    167 fi
    168 
    169 cd ../LMDZ5
    170 lmdz_veget="false"
    171 if [[ "$with_orchidee_defined" == "TRUE" ]]
    172 then
    173   lmdz_veget="orchidee2.0"
    174 fi
    175 ./makelmdz_fcm toto -$compil_mode -mem -parallel $parallel -nodyn -io xios -v $lmdz_veget -arch $arch -j $job $full_flag
    176 cd -
    177 
    178 cd ../ICOSAGCM
    179 ./make_icosa -$compil_mode -parallel $parallel -external_ioipsl -with_xios -arch $arch -job $job $full_flag
    180 cd -
    181159
    182160rm -f config.fcm
     
    187165echo "%LIB $ICOSA_LIB">> config.fcm
    188166
    189 if [[ "$full_defined" == "TRUE" ]]
     167if [[ "$build_deps" == "TRUE" ]]
    190168then
    191   ./build --job $job --full
    192 else
    193   ./build --job $job
     169
     170    cd ../IOIPSL
     171    ./makeioipsl_fcm -$compil_mode -parallel -arch $arch -j $job $full_flag  || exit 1
     172    cd -
     173
     174    cd ../XIOS
     175    ./make_xios --$compil_mode --arch $arch --job $job $full_flag2 || exit 1
     176    cd -
     177
     178    if [[ "$with_orchidee_defined" == "TRUE" ]]
     179    then
     180        cd ../ORCHIDEE
     181        ./makeorchidee_fcm -$compil_mode -parallel $parallel -xios2 -arch $arch -j $job $full_flag  || exit 1
     182        cd -
     183    fi
     184
     185    cd ../LMDZ5
     186    lmdz_veget="false"
     187    if [[ "$with_orchidee_defined" == "TRUE" ]]
     188    then
     189        lmdz_veget="orchidee2.0"
     190    fi
     191    ./makelmdz_fcm gcm -$compil_mode -mem -parallel $parallel -nodyn -io xios -v $lmdz_veget -arch $arch -j $job $full_flag || exit 1
     192    cd -
     193
     194    cd ../ICOSAGCM
     195    ./make_icosa -$compil_mode -parallel $parallel -external_ioipsl -with_xios -arch $arch -job $job $full_flag || exit 1
     196    cd -
    194197fi
     198
     199./build --job $job $full_flag2
Note: See TracChangeset for help on using the changeset viewer.