Changeset 107 for LMDZ.3.3/branches
- Timestamp:
- Jul 21, 2000, 11:20:57 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/branches/unlabeled-1.4.2/makegcm
r103 r107 18 18 # set LMDGCM=$HOME/LMDZ.3.3 19 19 # 20 # a changer rlmd304/agcm 21 # 22 ###### VERSION LMDZ.3.2 23 24 if ( ! $?LMDGCM ) then 25 echo You must initialize the variable LMDGCM in your environnement 26 echo for instance: "setenv LMDGCM /usr/myself/supergcm" in .cshrc 27 exit 28 endif 29 if ( ! $?LIBOGCM ) then 30 set LIBOGCM=$LMDGCM/libo 31 endif 32 if ( ! $?IOIPSLDIR ) then 33 echo You must initialize the variable IOIPSLDIR in your environnement 34 echo for instance: "setenv IOIPSLDIR /usr/myself/ioipsl" in .cshrc 35 exit 36 endif 37 if ( ! $?NCDFLIB ) then 38 echo You must initialize the variable NCDFLIB in your environnement 39 echo for instance: "setenv NCDFLIB /usr/myself/netcdf" in .cshrc 40 exit 41 endif 42 if ( ! $?NCDFINC ) then 43 echo You must initialize the variable NCDFINC in your environnement 44 echo for instance: "setenv NCDFINC /usr/myself/netcdf" in .cshrc 45 exit 20 21 setenv localdir "`pwd`" 22 set MODIPSL=0 23 echo $localdir | grep modipsl >& /dev/null 24 if ( ! $status ) then 25 set MODIPSL=1 26 setenv LMDGCM $localdir 27 cd ../.. 28 setenv LIBOGCM "`pwd`/lib" 29 setenv IOIPSLDIR $LIBOGCM 30 cd $localdir 31 if ( `hostname` == rhodes ) then 32 set NCDFINC=`grep sxnec ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"` 33 set NCDFLIB=`grep sxnec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'` 34 else 35 echo 'Probleme de definition des variables NCDFINC et NCDFLIB' 36 endif 37 else 38 if ( ! $?LMDGCM ) then 39 echo You must initialize the variable LMDGCM in your environnement 40 echo for instance: "setenv LMDGCM /usr/myself/supergcm" in .cshrc 41 exit 42 endif 43 if ( ! $?LIBOGCM ) then 44 set LIBOGCM=$LMDGCM/libo 45 endif 46 if ( ! $?IOIPSLDIR ) then 47 echo You must initialize the variable IOIPSLDIR in your environnement 48 echo for instance: "setenv IOIPSLDIR /usr/myself/ioipsl" in .cshrc 49 exit 50 endif 51 if ( ! $?NCDFLIB ) then 52 echo You must initialize the variable NCDFLIB in your environnement 53 echo for instance: "setenv NCDFLIB /usr/myself/netcdf" in .cshrc 54 exit 55 endif 56 if ( ! $?NCDFINC ) then 57 echo You must initialize the variable NCDFINC in your environnement 58 echo for instance: "setenv NCDFINC /usr/myself/netcdf" in .cshrc 59 exit 60 endif 46 61 endif 47 62 set model=$LMDGCM … … 60 75 set LINUX=0 61 76 set NEC=0 77 set XNEC=0 62 78 if ( `uname` == HP-UX ) then 63 79 set machine=HP … … 84 100 set machine=NEC 85 101 set NEC=1 102 else if ( `hostname` == rhodes) then 103 set machine=XNEC 104 set XNEC=1 86 105 else 87 106 echo Vous travaillez sur une machine non prevue par le reglement … … 120 139 set libf=$model/libf 121 140 #setenv localdir "LOCAL_DIR=`pwd`" 122 setenv localdir "`pwd`"141 #setenv localdir "`pwd`" 123 142 cd $model 124 143 if $CRAY then … … 165 184 else if $NEC then 166 185 set optim90=' -clear -C hopt -float0 -ew -P stack -Wf,"-pvctl fullmsg noassume "' 186 set optimtru90=' -clear -f4 -C hopt -float0 -ew -P stack -Wf,"-pvctl fullmsg noassume "' 167 187 set optim="$optim90" 168 188 set optimbis=" " … … 170 190 set mod_loc_dir="." 171 191 set mod_suffix="mod" 192 else if $XNEC then 193 set optim90=' -clear -C hopt -float0 -ew -P stack -Wf,"-pvctl fullmsg noassume "' 194 set optimtru90=' -clear -f4 -C hopt -float0 -ew -P stack -Wf,"-pvctl fullmsg noassume "' 195 set optim="$optim90" 196 set optimbis=" " 197 if $MODIPSL then 198 set opt_link="-L$IOIPSLDIR -lsxioipsl -float0 -ew -P stack -I$NCDFINC $NCDFLIB " 199 set mod_loc_dir="$localdir/../lib" 200 else 201 set opt_link=" -C hopt -float0 -ew -P stack -L$IOIPSLDIR -lioipsl -L /u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v -I$NCDFINC " 202 set mod_loc_dir="." 203 endif 204 set mod_suffix="mod" 205 172 206 else 173 207 set optim="" … … 404 438 set nomlib=F90_${dim_}_t${ntrac} 405 439 endif 406 if ( $NEC ) then440 if ( $NEC || $XNEC ) then 407 441 set nomlib=F90_${dim_}_t${ntrac} 408 442 endif … … 567 601 set f77=f90 568 602 set f90=f90 603 else if $XNEC then 604 set f77=sxmpif90 605 set f90=sxmpif90 569 606 else 570 607 set f77=f77 … … 582 619 else if $LINUX then 583 620 set make="make -k RANLIB=ranlib" 621 else if $XNEC then 622 set make="gmake RANLIB=ls" 584 623 else 585 624 set make="make RANLIB=ranlib" … … 646 685 else if $NEC then 647 686 set optim90=" $optim90 -I$libo " 687 else if $XNEC then 688 set optim90=" $optim90 -I$libo " 689 set optimtru90=" $optimtru90 -M$libo " 648 690 else if $LINUX then 649 691 set optim90=" -fast -module $libo " … … 656 698 set link="$f90 $optim90" 657 699 658 #if $NEC then 659 # set link="sxld $opt_link" 660 # set ar=sxar 661 #endif 700 if $XNEC then 701 set link="sxld $opt_link" 702 set link="$f90 " 703 set ar=sxar 704 endif 662 705 663 706 … … 684 727 MOD_LOC_DIR=$mod_loc_dir \ 685 728 MOD_SUFFIX=$mod_suffix \ 729 AR=$ar \ 686 730 PROG=$code 687 731 … … 706 750 MOD_LOC_DIR=$mod_loc_dir \ 707 751 MOD_SUFFIX=$mod_suffix \ 752 AR=$ar \ 708 753 PROG=$code 709 754
Note: See TracChangeset
for help on using the changeset viewer.