Changeset 1236 for trunk/MESOSCALE/LMD_MM_MARS/makemeso
- Timestamp:
- May 5, 2014, 11:38:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r1234 r1236 116 116 2) compilo='g95' ; numproc=1 ;; 117 117 3) compilo='mpi' 118 if [[ "${WHERE_MPI}" = "" ]] 118 if [[ "${WHERE_MPI}" = "" ]] 119 119 then 120 120 echo Please initialize the variable WHERE_MPI in your environnement 121 121 exit 122 fi 123 echo How many processors ? e.g. 1, 2, 4, 6, 8, 12, 16, 20, 24, 32, 64, 128 ; read numproc ;; 122 fi ;; 124 123 4) compilo='ifort' ; numproc=1 ;; 125 5) compilo='mpifort' ; echo How many processors ? e.g. 1, 2, 4, 6, 8, 12, 16, 20, 24, 32, 64, 128 ; read numproc ;;126 7) compilo='mpixlf' ; echo How many processors ? e.g. 1, 2, 4, 6, 8, 12, 16, 20, 24, 32, 64, 128 ; read numproc ;;127 ### for tests128 99) compilo='gnu' ; numproc=1 ;;124 5) compilo='mpifort' ;; 125 7) compilo='mpixlf' ;; 126 ### for tests 127 99) compilo='gnu' ; numproc=1 ;; 129 128 *) echo not supported by this script ; exit ;; 130 129 esac 130 # number of processors 131 if [[ "${phys}" == "newphys_" ]] 132 then 133 numproc=999 134 else 135 case ${reply} in 136 3) echo How many processors ? e.g. 1, 2, 4, 6, 8, 12, 16, 20, 24, 32, 64, 128 ; read numproc ;; 137 5) echo How many processors ? e.g. 1, 2, 4, 6, 8, 12, 16, 20, 24, 32, 64, 128 ; read numproc ;; 138 7) echo How many processors ? e.g. 1, 2, 4, 6, 8, 12, 16, 20, 24, 32, 64, 128 ; read numproc ;; 139 esac 140 fi 141 131 142 # dimensions 132 143 if [ ${donotcompile} -eq 0 ] 133 144 then 134 echo Grid points in longitude ? ; read lon135 echo Grid points in latitude ? ; read lat136 145 # ngrid: now dynamically set in newphys 03/2014 137 146 if [[ "${phys}" == "newphys_" ]] … … 139 148 lon=999 140 149 lat=999 141 numproc=999 150 else 151 echo Grid points in longitude ? ; read lon 152 echo Grid points in latitude ? ; read lat 142 153 fi 143 154 echo Number of vertical levels ? ; read level … … 186 197 fi 187 198 else 188 echo Number of tracers ? ; read tra189 199 # tracers: now dynamically set in newphys 09/2013 190 200 if [[ "${phys}" == "newphys_" ]] … … 192 202 tra=999 193 203 else 204 echo Number of tracers ? ; read tra 194 205 if [ ${tra} -eq 0 ] 195 206 then … … 246 257 if [[ "${phys}" == "newphys_" ]] 247 258 then 259 if [[ "${config}" != "les" ]] 260 then 248 261 cp ../../SRC/WRFV2/Registry/Registry.EM.newphys Registry/Registry.EM 262 else 263 cp -L ../../SRC/LES/WRFV2/Registry/Registry.EM.newphys Registry/Registry.EM 264 fi 249 265 fi 250 266 cd phys … … 257 273 cd Registry ; ln -sf ../mars_lmd_new_${scenario}/Registry.EM . ; cd .. 258 274 fi 259 #ln -sf meso_callkeys_newphys.h meso_callkeys.h260 cd Registry ; Registry.bash ; cd ..261 275 262 276 # remove files adapted to parallel GCM and useless for mesoscale … … 349 363 echo MPICH is in ${WHERE_MPI} 350 364 fi 351 echo you will use ${numproc} processors 352 echo you have ${lon} x points 353 echo ' '${lat} y points 354 echo ' '${level} z points 365 echo you have ${level} z points 355 366 echo ' '${dom} domains 356 echo ' '${tra} tracers357 367 if [[ "${phys}" == "newphys_" ]] 358 368 then 359 echo ' '${scat} scatterers 369 echo you have ${scat} scatterers 370 echo number of processors can be changed without recompiling 371 echo x points can be changed without recompiling 372 echo y points can be changed without recompiling 373 echo number of tracers can be changed without recompiling 374 else 375 echo you will use ${numproc} processors 376 echo you have ${lon} x points 377 echo ' '${lat} y points 378 echo ' '${tra} tracers 360 379 fi 361 380 echo '****************************************' … … 364 383 touch last 365 384 echo ${reply} >> last 366 if [ "${compilo}" = "mpi" -o "${compilo}" = "mpifort" -o "${compilo}" = "mpixlf" ] 367 then 385 if [[ "${phys}" != "newphys_" ]] 386 then 387 if [ "${compilo}" = "mpi" -o "${compilo}" = "mpifort" -o "${compilo}" = "mpixlf" ] 388 then 368 389 echo ${numproc} >> last 369 fi 370 echo ${lon} >> last 371 echo ${lat} >> last 390 fi 391 echo ${lon} >> last 392 echo ${lat} >> last 393 fi 372 394 echo ${level} >> last 373 395 echo ${dom} >> last 374 echo ${tra} >> last 396 if [[ "${phys}" != "newphys_" ]] 397 then 398 echo ${tra} >> last 399 fi 375 400 echo ${scat} >> last 376 401 #echo ${answer} >> last
Note: See TracChangeset
for help on using the changeset viewer.