Ignore:
Timestamp:
Jan 12, 2004, 11:47:12 AM (21 years ago)
Author:
lmdzadmin
Message:

Inclusion des options pour le SX6 du CEA, A. Caubel
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ.3.3/branches/rel-LF/makegcm

    r420 r487  
    2323
    2424###### VERSION LMDZ.3.3
    25 set LMDGCM="`pwd`"
     25##set LMDGCM="`pwd`"
    2626#
    2727
    2828setenv localdir "`pwd`"
    29   setenv LIBOGCM "`pwd`/lib"
    3029set MODIPSL=0
    3130echo $localdir | grep modipsl >& /dev/null
     
    4746      set NCDFINC=`grep fjvpp ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"`
    4847      set NCDFLIB=`grep fjvpp ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'`
     48    else if ( `hostname` == mercure ) then
     49      set NCDFINC=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"`
     50      set NCDFLIB=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'`
    4951    else
    5052      echo 'Probleme de definition des variables NCDFINC et NCDFLIB'
     
    9496set NEC=0
    9597set XNEC=0
     98set X6NEC=0
    9699if ( `uname` == HP-UX ) then
    97100   set machine=HP
     
    109112   set machine=ALPHA
    110113   set DEC=1
    111 else if ( `uname` == Linux ) then
     114else if ( `uname` == Linux && `hostname` != mercure ) then
    112115   set machine=LINUX
    113116   set LINUX=1
     
    121124   set machine=XNEC
    122125   set XNEC=1
     126else if ( `hostname` == mercure) then
     127   set machine=X6NEC
     128   set X6NEC=1
    123129else
    124130   echo Vous travaillez sur une machine non prevue par le reglement
     
    213219   set optimbis=" "
    214220   set mod_suffix="mod"
     221else if $X6NEC then
     222   set optdbl='-dw -Wf\"-A dbl4\"' 
     223   set optim90=' -clear -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume "'
     224   set optimtru90=' -clear -f4 -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R2 -R3 -R4 -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume"'
     225   set optim="$optim90"
     226   set optimbis=" "
     227   set mod_suffix="mod"
    215228else
    216229   set optim=""
     
    464477    set nomlib=F90_${dim_}_t${ntrac}
    465478endif
    466 if ( $NEC || $XNEC ) then
     479if ( $NEC || $XNEC || $X6NEC) then
    467480    set nomlib=F90_${dim_}_t${ntrac}
    468481endif
     
    684697   endif
    685698   set mod_loc_dir="./"
     699else if $X6NEC then
     700   set f77=sxmpif90
     701   set f90=sxmpif90
     702   if $MODIPSL then
     703     set opt_link="-L$MODIPSLDIR"
     704     if ($veget == true) then
     705       set opt_link="$opt_link -lsxsechiba -lsxparameters -lsxstomate"
     706     endif
     707     if ($couple == true) then
     708       set opt_link="$opt_link -lsxioipsl -loasis2.4_mpi2 -float0 -size_t64 $optdbl -P static $NCDFLIB "
     709     else
     710       set opt_link="$opt_link -lsxioipsl -float0 -size_t64 $optdbl -P static $NCDFLIB "
     711     endif
     712   else
     713     set opt_link=" -float0 -size_t64 $optdbl -P static -L$MODIPSLDIR -lsxsechiba -lsxparameters -lsxstomate -lsxioipsl $NCDFLIB "
     714   endif
     715   set mod_loc_dir="./"
    686716else
    687717   set f77=f77
     
    700730set make="make -k RANLIB=ranlib"
    701731else if $XNEC then
     732set make="gmake RANLIB=ls"
     733else if $X6NEC then
    702734set make="gmake RANLIB=ls"
    703735else
     
    758790 set optim90=" $optim90 -I$libo "
    759791 set optimtru90=" $optimtru90 -I$libo "
     792else if $X6NEC then
     793 set optim90=" $optim90 -I$libo "
     794 set optimtru90=" $optimtru90 -I$libo "
    760795else if $LINUX then
    761796 set optim90=" $optim90 -module $libo "
     
    774809  set link="$f90 "
    775810#  set ar=sxar
     811else if $X6NEC then
     812  set link="sxld $opt_link"
     813  set link="$f90 "
    776814endif
    777815
Note: See TracChangeset for help on using the changeset viewer.