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 @ 2066

Last change on this file since 2066 was 2016, checked in by rblod, 14 years ago

Come back to an old fashion makefile to compile the conv without FCM on FCM branch

  • Property svn:executable set to *
File size: 1013 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#fcm build ${TOOLS_DIR}/conv.cfg || exit 1
63gmake -C ${MAIN_DIR}/EXTERNAL/AGRIF/LIB
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/
70cp -f -r ${MAIN_DIR}/EXTERNAL/AGRIF/conv  $2/$1/OPAFILES/
71
72fi
Note: See TracBrowser for help on using the repository browser.