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.
agrifpp1.sh in branches/nemo_v3_3_beta/NEMOGCM/TOOLS/COMPILE – NEMO

source: branches/nemo_v3_3_beta/NEMOGCM/TOOLS/COMPILE/agrifpp1.sh @ 2384

Last change on this file since 2384 was 2384, checked in by rblod, 13 years ago

Modifications to compile agrif correctly(?) in the beta

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 784 bytes
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7#
8
9# ===========
10# agrifpp1.sh
11# ===========
12#
13# ----------------------------
14# Preform AGrif pre-processing
15# ----------------------------
16#
17# SYNOPSIS
18# ========
19#
20# ::
21#
22#  $ agrifpp1.sh
23#
24#
25# DESCRIPTION
26# ===========
27#
28#
29# Look after key agrif
30#
31# EXAMPLES
32# ========
33#
34# ::
35#
36#  $ ./agrifpp1.sh 1 -Dkey
37#
38#  or
39#
40#  $ ./agrifpp1.sh -Dkey
41#
42# TODO
43# ====
44#
45# option debug
46#
47#
48# EVOLUTIONS
49# ==========
50#
51# $Id$
52#
53#
54#
55#   * creation
56#
57#-
58
59if [ "$1" == "1" ]; then
60   shift
61   MYFILE=`echo $* |awk -F" " '{print $NF}' ` 
62   FPP_OPT=` echo $* |awk '{  for (i=1 ; i<NF ; i++ )  { printf " %s",  $i } }'`
63
64   if [ "${MYFILE}" == agrif2model.F90 ]; then
65      cat ${MYFILE}
66      exit
67   fi
68   cpp $@
69
70else
71   shift
72   cpp $@
73fi
74
Note: See TracBrowser for help on using the repository browser.