Changeset 1246 for trunk/LMDZ.MARS/makegcm_g95
- Timestamp:
- May 11, 2014, 2:37:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/makegcm_g95
r1085 r1246 13 13 set grille=reg 14 14 set dyntype="dyn" 15 set scatterers="1"16 15 set full="" 17 16 ######################################################################## … … 19 18 ######################################################################## 20 19 21 #### If you want you can set environment variables here (instead of22 #### relying on the C-shell environment variables)23 # default LMDGCM to where makegcm script is located:24 set scriptdir=`dirname $0`25 setenv LMDGCM `readlink -f $scriptdir`26 # You may set LIBOGCM to something else; otherwise we default to:27 setenv LIBOGCM $LMDGCM/libo28 ## NetCDF Libraries: what follows is OK for LMD 32 and 64bit Linux Machines29 # if ( `uname -m` == "x86_64" ) then30 ## 64 bit machines31 setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_g95/lib32 setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_g95/include33 # else34 # setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_g95/lib35 # setenv NCDFINC /donnees/emlmd/netcdf-4.0.1_g95/include36 # endif37 #### 20 ##### If you want you can set environment variables here (instead of 21 ##### relying on the C-shell environment variables) 22 ## default LMDGCM to where makegcm script is located: 23 #set scriptdir=`dirname $0` 24 #setenv LMDGCM `readlink -f $scriptdir` 25 ## You may set LIBOGCM to something else; otherwise we default to: 26 #setenv LIBOGCM $LMDGCM/libo 27 ### NetCDF Libraries: what follows is OK for LMD 32 and 64bit Linux Machines 28 ##if ( `uname -m` == "x86_64" ) then 29 ### 64 bit machines 30 # setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_g95/lib 31 # setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_g95/include 32 ##else 33 ## setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_g95/lib 34 ## setenv NCDFINC /donnees/emlmd/netcdf-4.0.1_g95/include 35 ##endif 36 ##### 38 37 39 38 setenv localdir "`pwd`" … … 290 289 $LMDGCM/libf/grid/dimension/makdim 291 290 292 -s nscat Number of radiatively active scatterers293 294 291 -p PHYS Selects the set of physical parameterizations 295 292 you want to compile the model with. … … 350 347 case -p 351 348 set physique="$2" ; set phys="PHYS=$physique" ; shift ; shift ; goto top 352 353 case -s354 set scatterers="$2" ; shift ; goto top355 349 356 350 case -g … … 470 464 # build final name of libraries directory: 471 465 if ( "$dyntype" == "olddyn" ) then 472 set nomlib=${nomlib}_${dim_}_t${ntrac}_ s${scatterers}_${grille}_olddyn466 set nomlib=${nomlib}_${dim_}_t${ntrac}_${grille}_olddyn 473 467 else 474 set nomlib=${nomlib}_${dim_}_t${ntrac}_ s${scatterers}_${grille}468 set nomlib=${nomlib}_${dim_}_t${ntrac}_${grille} 475 469 endif 476 470 … … 527 521 #remove old dimensions.h file 528 522 \rm -f $libf/grid/dimensions.h 529 #remove old scatterers.h file530 \rm -f $libf/phy$physique/scatterers.h531 523 else 532 524 exit … … 540 532 cat $libf/grid/dimensions.h 541 533 542 cd $libf/phy$physique/scatterers 543 # Build the appropriate 'scatterers.h' file 544 ./make_scatterers $scatterers 545 # echo contents of scatterers.h to standard output 546 cat $libf/phy$physique/scatterers.h 547 534 # 548 535 cd $LMDGCM 549 536 # set path to objects directory … … 828 815 PROG=$code 829 816 830 # cleanup, remove dimensions.h and scatterers.h817 # cleanup, remove dimensions.h 831 818 \rm -f $libf/grid/dimensions.h 832 \rm -f $libf/phy$physique/scatterers.h
Note: See TracChangeset
for help on using the changeset viewer.