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/DEV_r1879_FCM/NEMOGCM/TOOLS – NEMO

source: branches/DEV_r1879_FCM/NEMOGCM/TOOLS/Fprep_agrif.sh @ 1985

Last change on this file since 1985 was 1972, checked in by flavoni, 14 years ago

Add TOOLS directory and scripts to compile with FCM, see ticket: #685

  • Property svn:executable set to *
File size: 964 bytes
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
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$
50#
51#
52# - rblod 2010-06-20T16:11:47Z
53#
54#   * creation
55#
56#-
57
58#- AGRIF conv
59if [ "$AGRIFUSE" == 1 ]; then
60
61#- CONV
62[ ! -d $2/$1/AGRIFLIB ] && mkdir -p $2/$1/AGRIFLIB
63fcm build ${TOOLS_DIR}/conv.cfg || exit 1
64
65#- AGRIF sources
66[ ! -d $2/$1/OPAFILES ] && mkdir  $2/$1/OPAFILES
67[ ! -d $2/$1/OPAFILES/AGRIF_INC ] && mkdir  $2/$1/OPAFILES/AGRIF_INC
68[ ! -d $2/$1/OPAFILES/AGRIF_MODELFILES ] && mkdir  $2/$1/OPAFILES/AGRIF_MODELFILES
69cp -f -r ${MAIN_DIR}/EXTERNAL/AGRIF/agrif_opa.in  $2/$1/OPAFILES/
70
71fi
Note: See TracBrowser for help on using the repository browser.