source:
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/TOOLS/COMPILE/agrifpp.sh
@
9298
Last change on this file since 9298 was 6487, checked in by davestorkey, 8 years ago | |
---|---|
|
|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[2437] | 1 | #!/bin/bash |
2 | #set -x | |
3 | set -o posix | |
4 | #set -u | |
5 | #set -e | |
6 | #+ | |
7 | # | |
8 | # ========== | |
9 | # agrifpp.sh | |
10 | # ========== | |
11 | # | |
12 | # ---------------------------- | |
13 | # Preform AGrif pre-processing | |
14 | # ---------------------------- | |
15 | # | |
16 | # SYNOPSIS | |
17 | # ======== | |
18 | # | |
19 | # :: | |
20 | # | |
21 | # $ agrifpp.sh | |
22 | # | |
23 | # | |
24 | # DESCRIPTION | |
25 | # =========== | |
26 | # | |
27 | # | |
[3680] | 28 | # Preprocess file using the conv in OPAFILES directory |
29 | # Standard preprocessed files are stored in OPAFILES/ppsrc/nemo | |
30 | # Source files are stored under OPAFILES/obj | |
31 | # Include filess in OPAFILES/inc | |
32 | # Note that agrif2model.F90 should not be preprocess (standard one) | |
[2437] | 33 | # |
34 | # EXAMPLES | |
35 | # ======== | |
36 | # | |
37 | # :: | |
38 | # | |
[3680] | 39 | # $ ./agrifpp.sh FILE_TO_PROCESS |
[2437] | 40 | # |
41 | # TODO | |
42 | # ==== | |
43 | # | |
44 | # option debug | |
45 | # | |
46 | # | |
47 | # EVOLUTIONS | |
48 | # ========== | |
49 | # | |
50 | # $Id: agrifpp.sh 2143 2010-10-04 12:49:55Z rblod $ | |
51 | # | |
52 | # | |
53 | # | |
54 | # * creation | |
55 | # | |
56 | #- | |
[3680] | 57 | MYFILE=$(basename "$1") |
58 | if [ "$MYFILE" == "agrif2model.f90" ];then | |
59 | \cp ${NEMO_TDIR}/${NEW_CONF}/WORK/${MYFILE/.f90/.F90} ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/obj/$MYFILE | |
[2437] | 60 | else |
[3680] | 61 | cd ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/ppsrc/nemo ; ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/conv ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/agrif_opa.in -rm -incdir ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/inc -comdirout ${NEMO_TDIR}/${NEW_CONF}/OPAFILES/obj -convfile ${MYFILE} > /dev/null |
[6487] | 62 | fi |
Note: See TracBrowser
for help on using the repository browser.