Changeset 3480
- Timestamp:
- Oct 24, 2024, 1:10:50 PM (4 weeks ago)
- Location:
- trunk/ICOSA_LMDZ
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICOSA_LMDZ/compile_adastra-gnu
r3402 r3480 1 1 # Simple example of launching the make_icosa_lmdz script with adequate options 2 2 # adapt to fit your own needs. 3 arch=ADASTRA-gnu 3 4 4 5 # Gas Giants: 5 #make_icosa_lmdz -p std -p_opt "-b 20x25" -parallel mpi_omp -arch ADASTRA-gnu -arch_path ../ARCH -job 86 #make_icosa_lmdz -p std -p_opt "-b 20x25" -parallel mpi_omp -arch $arch -arch_path ../ARCH -job 8 $* 6 7 7 8 # Venus: 8 #make_icosa_lmdz -p venus -parallel mpi -arch ADASTRA-gnu -arch_path ../ARCH -job 89 #make_icosa_lmdz -p venus -parallel mpi -arch $arch -arch_path ../ARCH -job 8 $* 9 10 10 11 # Mars: 11 make_icosa_lmdz -p mars -parallel mpi_omp -arch ADASTRA-gnu -arch_path ../ARCH -job 8 -full -nodeps12 make_icosa_lmdz -p mars -parallel mpi_omp -arch $arch -arch_path ../ARCH -job 8 -full -nodeps $* 12 13 14 # Pluto: 15 #make_icosa_lmdz -p pluto -p_opt "-b 17x23" -parallel mpi -arch $arch -arch_path ../ARCH -job 8 $* -
trunk/ICOSA_LMDZ/compile_irene-amd
r2912 r3480 1 arch=X64_IRENE-AMD 2 1 3 # Gas Giants: 2 #make_icosa_lmdz -p std -p_opt "-b 20x25 -s 2" -parallel mpi_omp -arch X64_IRENE-AMD -arch_path ../ARCH -job 84 #make_icosa_lmdz -p std -p_opt "-b 20x25 -s 2" -parallel mpi_omp -arch $arch -arch_path ../ARCH -job 8 $* 3 5 4 6 # Venus: 5 #make_icosa_lmdz -p venus -parallel mpi -arch X64_IRENE-AMD -arch_path ../ARCH -job 87 #make_icosa_lmdz -p venus -parallel mpi -arch $arch -arch_path ../ARCH -job 8 $* 6 8 7 9 # Mars: 8 make_icosa_lmdz -p mars -parallel mpi_omp -arch X64_IRENE-AMD -arch_path ../ARCH -job 810 make_icosa_lmdz -p mars -parallel mpi_omp -arch $arch -arch_path ../ARCH -job 8 $* 9 11 12 # Pluto: 13 #make_icosa_lmdz -p pluto -p_opt "-b 17x23" -parallel mpi -arch $arch -arch_path ../ARCH -job 8 $* -
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.