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.
Fprep_agrif.sh in branches/UKMO/r8395_India_uncoupled/NEMOGCM/TOOLS/COMPILE – NEMO

source: branches/UKMO/r8395_India_uncoupled/NEMOGCM/TOOLS/COMPILE/Fprep_agrif.sh @ 10684

Last change on this file since 10684 was 10684, checked in by jcastill, 5 years ago

Remove svn keywords

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7#
8# ==============
9# Fprep_agrif.sh
10# ==============
11#
12# ---------------------
13# Preparation for AGRIF
14# ---------------------
15#
16# SYNOPSIS
17# ========
18#
19# ::
20#
21#  $ Fprep_agrif.sh
22#
23#
24# DESCRIPTION
25# ===========
26#
27#
28# Prepare directories for AGRIF and copy files needed
29#
30# Compile the conv
31#
32# EXAMPLES
33# ========
34#
35# ::
36#
37#  $ ./Fprep_agrif.sh CONFIG_NAME
38#
39#
40# TODO
41# ====
42#
43# option debug
44#
45#
46# EVOLUTIONS
47# ==========
48#
49# $Id: Fprep_agrif.sh 5656 2015-07-31 08:55:56Z timgraham $
50#
51#
52#
53#   * creation
54#
55#-
56
57#- AGRIF conv
58if [ "$AGRIFUSE" == 1 ]; then
59#-MPI for AGRIF
60if [ ! -f ${MAIN_DIR}/EXTERNAL/AGRIF/nemo_mpi.h ];then
61   echo '#if defined key_mpp_mpi' > ${MAIN_DIR}/EXTERNAL/AGRIF/nemo_mpi.h
62   echo '#define AGRIF_MPI'      >> ${MAIN_DIR}/EXTERNAL/AGRIF/nemo_mpi.h
63   echo '#endif'                 >> ${MAIN_DIR}/EXTERNAL/AGRIF/nemo_mpi.h
64fi
65
66 #- CONV
67fcm build ${COMPIL_DIR}/conv.cfg || exit 1
68#C_COMPILER=${CC-cc}
69#gmake CC=${C_COMPILER} -C ${MAIN_DIR}/EXTERNAL/AGRIF/LIB
70
71#- 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
75cp -f -r ${MAIN_DIR}/EXTERNAL/AGRIF/agrif_opa.in  $2/$1/OPAFILES/
76#cp -f -r ${MAIN_DIR}/EXTERNAL/AGRIF/conv  $2/$1/OPAFILES/
77cp -f -r $2/$1/AGRIFLIB/bin/conv  $2/$1/OPAFILES/
78
79fi
Note: See TracBrowser for help on using the repository browser.