New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 9573 for branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE – NEMO

Ignore:
Timestamp:
2018-05-11T14:25:02+02:00 (6 years ago)
Author:
nicolasmartin
Message:

Global renaming for compilation scripts (./TOOLS/COMPILE): tools scripts have been modified but not been tested

Location:
branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE/Fcopy_dir.sh

    r4990 r9573  
    2727# 
    2828# When a reference configuration is set,  
    29 # Copy NEMO sub-directories needed (OPA_SRC, TOP_SRC ...) 
     29# Copy NEMO sub-directories needed (OCE_SRC, TOP_SRC ...) 
    3030# 
    3131# EXAMPLES 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE/Fcopy_extdir.sh

    r4990 r9573  
    1818# =========== 
    1919# When an unsupported configuration is requested,  
    20 # Prepare sources for the NEMO sub-directories needed (OPA_SRC, TOP_SRC ...) 
     20# Prepare sources for the NEMO sub-directories needed (OCE_SRC, TOP_SRC ...) 
    2121# EXAMPLES 
    2222# ======== 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE/Fmake_WORK.sh

    r8527 r9573  
    4545# :: 
    4646# 
    47 #  $ ./Fmake_WORK.sh ORCA2_LIM OPA_SRC LIM_SRC_2 
     47#  $ ./Fmake_WORK.sh ORCA2_LIM OCE_SRC ICE_SRC 
    4848# 
    4949# 
     
    8989while [ $i -lt $NDIR ] 
    9090do 
    91    [ "${ZTAB[i]}" = "OPA_SRC" ] && ln -sf ${NEMO_DIR}/OPA_SRC/*.[Ffh]90 ${ZCONF}/WORK 
    92    [ "${ZTAB[i]}" = "OPA_SRC" ] && ln -sf ${NEMO_DIR}/OPA_SRC/*/*.[Ffh]90 ${ZCONF}/WORK && break 
     91   [ "${ZTAB[i]}" = "OCE_SRC" ] && ln -sf ${NEMO_DIR}/OCE_SRC/*.[Ffh]90 ${ZCONF}/WORK 
     92   [ "${ZTAB[i]}" = "OCE_SRC" ] && ln -sf ${NEMO_DIR}/OCE_SRC/*/*.[Ffh]90 ${ZCONF}/WORK && break 
    9393   let i=$i+1 
    9494done 
     
    9797while [ $i -lt $NDIR ] 
    9898do 
    99    if [ "${ZTAB[i]}" != "OPA_SRC" ]; then 
     99   if [ "${ZTAB[i]}" != "OCE_SRC" ]; then 
    100100      ln -sf ${NEMO_DIR}/${ZTAB[i]}/*.[Ffh]90 ${ZCONF}/WORK 
    101101      ln -sf ${NEMO_DIR}/${ZTAB[i]}/*/*.[Ffh]90 ${ZCONF}/WORK  
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE/Fprep_agrif.sh

    r5656 r9573  
    7070 
    7171#- AGRIF sources 
    72 [ ! -d $2/$1/OPAFILES ] && mkdir  $2/$1/OPAFILES 
    73 [ ! -d $2/$1/OPAFILES/AGRIF_INC ] && mkdir  $2/$1/OPAFILES/AGRIF_INC 
    74 [ ! -d $2/$1/OPAFILES/AGRIF_MODELFILES ] && mkdir  $2/$1/OPAFILES/AGRIF_MODELFILES 
    75 cp -f -r ${MAIN_DIR}/EXTERNAL/AGRIF/agrif_opa.in  $2/$1/OPAFILES/ 
    76 #cp -f -r ${MAIN_DIR}/EXTERNAL/AGRIF/conv  $2/$1/OPAFILES/ 
    77 cp -f -r $2/$1/AGRIFLIB/bin/conv  $2/$1/OPAFILES/ 
     72[ ! -d $2/$1/NEMOFILES ] && mkdir  $2/$1/NEMOFILES 
     73[ ! -d $2/$1/NEMOFILES/AGRIF_INC ] && mkdir  $2/$1/NEMOFILES/AGRIF_INC 
     74[ ! -d $2/$1/NEMOFILES/AGRIF_MODELFILES ] && mkdir  $2/$1/NEMOFILES/AGRIF_MODELFILES 
     75cp -f -r ${MAIN_DIR}/EXTERNAL/AGRIF/agrif_oce.in  $2/$1/NEMOFILES/ 
     76#cp -f -r ${MAIN_DIR}/EXTERNAL/AGRIF/conv  $2/$1/NEMOFILES/ 
     77cp -f -r $2/$1/AGRIFLIB/bin/conv  $2/$1/NEMOFILES/ 
    7878 
    7979fi 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE/agrifpp.sh

    r3680 r9573  
    2626# 
    2727# 
    28 # Preprocess file using the conv in OPAFILES directory 
    29 # Standard preprocessed files are stored in OPAFILES/ppsrc/nemo 
    30 # Source files are stored under OPAFILES/obj 
    31 # Include filess  in OPAFILES/inc 
     28# Preprocess file using the conv in NEMOFILES directory 
     29# Standard preprocessed files are stored in NEMOFILES/ppsrc/nemo 
     30# Source files are stored under NEMOFILES/obj 
     31# Include filess  in NEMOFILES/inc 
    3232# Note that agrif2model.F90 should not be preprocess (standard one)  
    3333# 
     
    5757MYFILE=$(basename "$1") 
    5858if [ "$MYFILE" == "agrif2model.f90" ];then 
    59    \cp ${NEMO_TDIR}/${NEW_CONF}/WORK/${MYFILE/.f90/.F90} ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/obj/$MYFILE 
     59   \cp ${NEMO_TDIR}/${NEW_CONF}/WORK/${MYFILE/.f90/.F90} ${NEMO_TDIR}/${NEW_CONF}/NEMOFILES/obj/$MYFILE 
    6060else 
    61 cd ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/ppsrc/nemo ; ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/conv ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/agrif_opa.in -rm -incdir ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/inc -comdirout ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/obj -convfile ${MYFILE} > /dev/null  
     61cd ${NEMO_TDIR}/${NEW_CONF}/NEMOFILES/ppsrc/nemo ; ${NEMO_TDIR}/${NEW_CONF}/NEMOFILES/conv ${NEMO_TDIR}/${NEW_CONF}/NEMOFILES/agrif_oce.in -rm -incdir ${NEMO_TDIR}/${NEW_CONF}/NEMOFILES/inc -comdirout ${NEMO_TDIR}/${NEW_CONF}/NEMOFILES/obj -convfile ${MYFILE} > /dev/null  
    6262fi 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE/bld.cfg

    r5656 r9573  
    1515src::ioipsl               $MAIN_DIR/EXTERNAL/IOIPSL/src 
    1616src::agrif                $MAIN_DIR/EXTERNAL/AGRIF/AGRIF_FILES 
    17 src::nemo                 $CONFIG_DIR/$NEW_CONF/OPAFILES/obj 
     17src::nemo                 $CONFIG_DIR/$NEW_CONF/NEMOFILES/obj 
    1818 
    1919bld::target  nemo.exe 
     
    3939bld::pp::nemo     1 
    4040bld::pp::agrif    1 
    41 bld::tool::fppflags::nemo      %FPPFLAGS -I$CONFIG_DIR/$NEW_CONF/OPAFILES/inc 
     41bld::tool::fppflags::nemo      %FPPFLAGS -I$CONFIG_DIR/$NEW_CONF/NEMOFILES/inc 
    4242bld::tool::fppflags::ioipsl    %FPPFLAGS 
    4343bld::tool::fppflags::agrif     %FPPFLAGS -include ${MAIN_DIR}/EXTERNAL/AGRIF/nemo_mpi.h 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/COMPILE/bld_preproagr.cfg

    r5656 r9573  
    1616bld::target  lib_cray.f90 nemo.f90 agrif_user.f90 agrif2model.f90  
    1717 
    18 dir::root            $NEMO_TDIR/$NEW_CONF/OPAFILES 
     18dir::root            $NEMO_TDIR/$NEW_CONF/NEMOFILES 
    1919 
    2020bld::tool::fc_output 
Note: See TracChangeset for help on using the changeset viewer.