source: LMDZ6/branches/Amaury_dev/build_gcm @ 5325

Last change on this file since 5325 was 5093, checked in by abarral, 4 months ago

Use latest FCM source (2021.05.0) [Note: we still use the legacy FCM1 build system]
Correct UTF8 encoding of french chars


Compil OK (tested: oldrad/rrtm/ecrad, para/seq/1D)
Convergence (ref r5063) bench 33x OK oldrad orch2.0 (tested: para/seq)

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 687 bytes
Line 
1#!/bin/bash
2# Usage:
3# ./build_gcm [path]
4# where 'path' is an optional argument to this script specifying
5# the full path to where the 'fcm' command is to be found
6
7echo "compiling..." > '.lock'
8
9dirname="" #path to where the fcm command will be found
10if (( $# >= 1 )) ; then
11  dirname=$1
12  # check that "dirname" exists and is a directory
13  if [[ ! -d $dirname ]] ; then
14    echo "$0 error : $dirname is not a directory"
15    exit
16  fi
17  # add a trailing "/" to $dirname
18  dirname=${dirname}"/"
19  shift;
20fi
21
22# run "fcm build" command
23echo "Running <${dirname}fcm build " "$@" ">"
24"${dirname}fcm" build "$@"
25
26build_command_status=$?
27
28# cleanup
29rm -f '.lock'
30
31exit $build_command_status
32
Note: See TracBrowser for help on using the repository browser.