Changeset 487


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

Location:
LMDZ.3.3/branches/rel-LF
Files:
2 edited

Legend:

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

    r328 r487  
    1414  XNEC=1
    1515fi
     16X6NEC=0
     17if [ "$machine" = "mercure" ] ; then
     18  X6NEC=1
     19fi
    1620VPP=0
    1721if [ "$machine" = "nymphea0" ] ; then
     
    5155echo '# Les differentes librairies pour l"edition des liens:'
    5256echo
    53 if [ "$XNEC" = '1' ] ; then
     57if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] ) ; then
    5458  echo 'dyn3d      = $(LIBO)/libsxdyn3d.a $(LIBO)/libsx$(FILTRE).a'
    5559  echo 'dyn2d      = $(LIBO)/libsxdyn2d.a'
     
    170174         F90=0 ; egrep -i '^ *use ' $trufile > /dev/null 2>&1 && F90=1
    171175                 egrep -i '^ *module ' $trufile > /dev/null 2>&1 && F90=1
     176                 egrep -i '#include*.inc ' $trufile > /dev/null 2>&1 && F90=1
    172177         str1='$(LIBO)/lib'$diri'.a('$fili'.o) : $(LIBF)/'$diri/$trufile
    173178         [ "$fili" = "chem.subs" ] && str1=$str1' $(LIBF)/'$diri/chem.mods.F
     
    213218            fi
    214219         fi
    215          if [ "$XNEC" -eq '1' ] ; then
     220         if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] ) ; then
    216221           echo '       sxar r $(LIBO)/libsx'$diri'.a '$fili'.o ; \'
    217222         fi
  • 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.