Ignore:
Timestamp:
Jan 18, 2007, 4:54:58 PM (18 years ago)
Author:
Laurent Fairhead
Message:

Pour compiler IPPC_branch sur brodie
LF

Location:
LMDZ4/branches/IPSL-CM4_IPCC_branch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/IPSL-CM4_IPCC_branch/create_make_gcm

    r588 r744  
    2020if [ "$machine" = "mercure" ] ; then
    2121  X6NEC=1
     22fi
     23X8BRODIE=0
     24if [ "$machine" = "brodie" ] ; then
     25  X8BRODIE=1
    2226fi
    2327VPP=0
     
    5862echo '# Les differentes librairies pour l"edition des liens:'
    5963echo
    60 if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] ) ; then
     64if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] || [ "$X8BRODIE" = '1' ] ) ; then
    6165  echo 'dyn3d      = $(LIBO)/libsxdyn3d.a $(LIBO)/libsx$(FILTRE).a'
    6266  echo 'dyn2d      = $(LIBO)/libsxdyn2d.a'
     
    221225            fi
    222226         fi
    223          if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] ) ; then
     227         if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] || [ "$X8BRODIE" = '1' ] ) ; then
    224228           echo '       sxar r $(LIBO)/libsx'$diri'.a '$fili'.o ; \'
    225229         fi
  • LMDZ4/branches/IPSL-CM4_IPCC_branch/makegcm

    r628 r744  
    5353      set NCDFINC=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"`
    5454      set NCDFLIB=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'`
     55    else  if ( `hostname` == brodie ) then
     56      set NCDFINC=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"`
     57      set NCDFLIB=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'`
    5558    else
    5659      echo 'Probleme de definition des variables NCDFINC et NCDFLIB'
     
    101104set XNEC=0
    102105set X6NEC=0
     106set X8BRODIE=0
    103107if ( `uname` == HP-UX ) then
    104108   set machine=HP
     
    116120   set machine=ALPHA
    117121   set DEC=1
    118 else if ( `uname` == Linux && `hostname` != mercure ) then
     122else if ( `uname` == Linux && `hostname` != mercure  && `hostname` != brodie ) then
    119123   set machine=LINUX
    120124   set LINUX=1
     
    131135   set machine=X6NEC
    132136   set X6NEC=1
     137else if ( `hostname` == brodie) then
     138   set machine=X8BRODIE
     139   set X8BRODIE=1
    133140else
    134141   echo Vous travaillez sur une machine non prevue par le reglement
     
    246253   set optim90=' -clear -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume "'
    247254   set optimtru90=' -clear -f4 -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R2 -R3 -R4 -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume"'
     255   set optim="$optim90"
     256   set optimbis=" "
     257   set mod_suffix="mod"
     258   set mod_loc_dir="./"
     259#################
     260else if $X8BRODIE then
     261##################
     262   set optdbl='-dw -Wf\"-A dbl4\"' 
     263   set optim90='-P stack -Wf,-pvctl res=whole,-A dbl4,-ptr byte -EP -R5 -float0 -dw -Wf,"-pvctl loopcnt=999999 fullmsg noassume" -I/SX/usr/include'
     264   set optimtru90="$optim90"
     265   set optim90="$optim90"
    248266   set optim="$optim90"
    249267   set optimbis=" "
     
    458476########################################################################
    459477
     478set cppflags=''
     479
     480if $X8BRODIE then
     481  set cppflags="$cppflags -DNC_DOUBLE -DBLAS -DSGEMV=DGEMV -DSGEMM=DGEMM"
     482endif
     483
    460484if ( $io == ioipsl ) then
    461485   set optim="$optim -DCPP_IOIPSL"
     
    478502   set optimtru90="$optimtru90 -DCPP_VEGET"
    479503   set link_veget=" -lsechiba -lparameters -lstomate"
    480    if ( $XNEC ) then
     504   if ( $XNEC || $X6NEC || $X8BRODIE ) then
    481505      set link_veget=" -lsxsechiba -lsxparameters -lsxstomate"
    482506   endif
     
    549573    set nomlib=F90_${dim_}_t${ntrac}
    550574endif
    551 if ( $NEC || $XNEC || $X6NEC) then
     575if ( $NEC || $XNEC || $X6NEC || $X8BRODIE ) then
    552576    set nomlib=F90_${dim_}_t${ntrac}
    553577endif
     
    843867   endif
    844868   set mod_loc_dir="./"
     869##################
     870else if $X8BRODIE then
     871##################
     872   set f77=sxmpif90
     873   set f90=sxmpif90
     874   set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas"
     875   set opt_link="$opt_link  $link_veget"
     876   if $MODIPSL then
     877#     set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas"
     878     if ($veget == true) then
     879#       set opt_link="$opt_link  $link_veget"
     880     endif
     881     if ($couple == true) then
     882        if ($psmile == true) then
     883        set opt_link="$opt_link -lsxioipsl $optdbl -P static $NCDFLIB "
     884        else
     885        set opt_link="$opt_link -lsxioipsl -loasis2.4_mpi2 $optdbl -P static $NCDFLIB "
     886        endif
     887     else
     888       set opt_link="$opt_link -lsxioipsl $optdbl -P static $NCDFLIB "
     889     endif
     890   else
     891     set opt_link="$opt_link $optdbl -P static -lsxioipsl $NCDFLIB "
     892   endif
     893   set mod_loc_dir="./"
    845894#################
    846895else
     
    863912set make="gmake RANLIB=ls"
    864913else if $X6NEC then
     914set make="gmake RANLIB=ls"
     915else if $X8BRODIE then
    865916set make="gmake RANLIB=ls"
    866917else
     
    924975 set optim90=" $optim90 -I$libo "
    925976 set optimtru90=" $optimtru90 -I$libo "
     977else if $X8BRODIE then
     978 set optim90=" $optim90 -I$libo "
     979 set optimtru90=" $optimtru90 -I$libo "
    926980else if $LINUX then
    927981 set optimtru90=" $optimtru90 -module $libo "
     
    943997else if $X6NEC then
    944998  set link="sxld $opt_link"
    945   set link="$f90 "
     999  set link="$f90 -Wl,-hlib_cyclic "
     1000else if $X8BRODIE then
     1001  set link="sxld $opt_link"
     1002  set link="$f90 -Wl,-hlib_cyclic "
    9461003endif
    9471004
Note: See TracChangeset for help on using the changeset viewer.