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.
Fcheck_archfile.sh in branches/DEV_r1879_FCM/NEMOGCM/TOOLS – NEMO

source: branches/DEV_r1879_FCM/NEMOGCM/TOOLS/Fcheck_archfile.sh @ 1972

Last change on this file since 1972 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: 909 bytes
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7#
8# ==================
9# Fcheck_archfile.sh
10# ==================
11#
12# --------------------------
13# Check the compilation file
14# --------------------------
15#
16# SYNOPSIS
17# ========
18#
19# ::
20#
21#  $ Fcheck_archfile.sh
22#
23#
24# DESCRIPTION
25# ===========
26#
27#
28# Check the choice of the compiler.
29# Three cases : 
30
31# - There was a previous choice
32# - A new one has be specified
33# - No information, exit
34#
35# EXAMPLES
36# ========
37#
38# ::
39#
40#  $ ./Fcheck_archfile.sh COMPILER
41#
42#
43# TODO
44# ====
45#
46# option debug
47#
48#
49# EVOLUTIONS
50# ==========
51#
52# $Id$
53#
54#
55# - rblod 2010-06-20T16:11:47Z
56#
57#   * creation
58#
59#-
60
61if [ ${#1} -eq 0 ]; then
62   if [ ! -f ${TOOLS_DIR}/arch.fcm ]; then
63   echo "Warning !!!"
64   echo "NO compiler chosen"
65   echo "Try makenemo_fcm -h for help"
66   echo "EXITING..."
67   exit 1
68   fi
69else
70   ln -sf ${MAIN_DIR}/ARCH/arch-${1}.fcm ${TOOLS_DIR}/arch.fcm
71fi
Note: See TracBrowser for help on using the repository browser.