source: branches/2015/dev_r5021_UKMO1_CICE_coupling/NEMOGCM/TOOLS/COMPILE/Fprep_agrif.sh @ 5445

Last change on this file since 5445 was 5445, checked in by davestorkey, 5 years ago

Clear SVN keywords from 2015/dev_r5021_UKMO1_CICE_coupling branch.

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