Changeset 3480 for trunk/ICOSA_LMDZ/make_icosa_lmdz
- Timestamp:
- Oct 24, 2024, 1:10:50 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICOSA_LMDZ/make_icosa_lmdz
r3402 r3480 21 21 physics="none" 22 22 build_deps="TRUE" 23 CPP_KEY="CPP_NONE" 23 CPP_KEY="CPP_NONE" 24 24 ICOSA_LIB="" 25 25 … … 41 41 [-parallel type] : parallelism (none|mpi|omp|mpi_omp) 42 42 [-with_xios] : compile and link with XIOS (default) 43 [-job num] : speed up compilation by using num simulateneous 43 [-job num] : speed up compilation by using num simulateneous 44 44 compilation steps (when possible) 45 45 fin … … 48 48 "-p") 49 49 phys=$2 ; shift ; shift ;; 50 50 51 51 "-p_opt") 52 52 phys_opt=$2 ; shift ; shift ;; 53 53 54 54 "-prod") 55 55 compil_mode="prod" ; shift ;; … … 63 63 "-arch") 64 64 arch=$2 ; arch_defined="TRUE"; shift ; shift ;; 65 65 66 66 "-arch_path") 67 67 arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;; … … 108 108 ln -s $arch_default_path/arch-${arch}.path arch.path 109 109 fi 110 110 111 111 if test -f $arch_path/arch-${arch}.fcm 112 112 then … … 162 162 then 163 163 parallel="none" 164 else 164 else 165 165 echo "-parallel value $parallel is invalid, only permited <none>, <mpi>, <omp> or <mpi_omp>" 166 166 exit 1 … … 170 170 then 171 171 ICOSA_LIB="$ICOSA_LIB $ORCHIDEE_LIBDIR $ORCHIDEE_LIB" 172 fi 172 fi 173 173 174 174 if [[ "$with_xios_defined" == "TRUE" ]] … … 177 177 COMPIL_FFLAGS="$COMPIL_FFLAGS $XIOS_INCDIR" 178 178 ICOSA_LIB="$ICOSA_LIB $XIOS_LIBDIR $XIOS_LIB" 179 fi 179 fi 180 180 181 181 ICOSA_LIB="$ICOSA_LIB $IOIPSL_LIBDIR $IOIPSL_LIB $NETCDF_LIBDIR $NETCDF_LIB $HDF5_LIBDIR $HDF5_LIB" … … 187 187 full_flag="-full" 188 188 full_flag2="--full" 189 else 189 else 190 190 full_flag="" 191 191 full_flag2="" … … 225 225 if [[ -d ../LMDZ.COMMON ]] ; then 226 226 cd ../LMDZ.COMMON 227 ./makelmdz_fcm -p $phys $phys_opt -$compil_mode -parallel $parallel -libphy -io xios -arch $arch -arch_path $arch_path -j $job $full_flag || exit 1 227 echo "Compiling LMDZ.COMMON with:" 228 cmd="./makelmdz_fcm -p $phys $phys_opt -$compil_mode -parallel $parallel -libphy -io xios -arch $arch -arch_path $arch_path -j $job $full_flag" 229 echo $cmd 230 $cmd || (echo "Failed compilation of LMDZ.COMMON. Command line was:" && echo $cmd && exit 1) 228 231 cd - 229 232 else … … 233 236 234 237 if [[ -d ../ICOSAGCM ]] ; then 235 cd ../ICOSAGCM 238 cd ../ICOSAGCM 236 239 # from now on, compile using fcm2 237 ./make_icosa -$compil_mode -parallel $parallel -external_ioipsl -with_xios -arch $arch -arch_path $arch_path -job $job $full_flag || exit 1 240 echo "Compiling ICOSAGCM with:" 241 cmd="./make_icosa -$compil_mode -parallel $parallel -external_ioipsl -with_xios -arch $arch -arch_path $arch_path -job $job $full_flag" 242 echo "$cmd" 243 $cmd || (echo "Failed compilation of ICOSAGCM. Command line was:" && echo $cmd && exit 1) 238 244 cd - 239 245 else
Note: See TracChangeset
for help on using the changeset viewer.