source: LMDZ6/branches/blowing_snow/build_gcm @ 4794

Last change on this file since 4794 was 4103, checked in by Laurent Fairhead, 3 years ago

Inclusion of some corrections and optimisations for XIOS done by
Arnaud Durocher during his TGCC mission.
Included here are r3703, r3704, r3750, r3751, r3752 from his
LMDZ6/branches/Optimisation_LMDZ branch

  • 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: 996 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
7if [[ -f '.lock' && $force_compile == false ]]
8then
9    echo "WARNING: you are probably already compiling the model somewhere else."
10    echo "Wait until the first compilation is finished before launching this one."
11    echo "If you are sure that you are not compiling elsewhere,"
12    echo "run makelmdz_fcm with option -force_compile"
13    exit 1
14fi
15
16echo "compiling..." > '.lock'
17
18job=1
19dirname="" #path to where the fcm command will be found
20if (( $# >= 1 )) ; then
21  dirname=$1
22  # check that "dirname" exists and is a directory
23  if [[ ! -d $dirname ]] ; then
24    echo "$0 error : $dirname is not a directory"
25    exit
26  fi
27  # add a trailing "/" to $dirname
28  dirname=${dirname}"/"
29  shift;
30fi
31
32# run "fcm build" command
33${dirname}fcm build $*
34
35build_command_status=$?
36
37# cleanup
38\rm -f '.lock' 
39
40exit $build_command_status
41
Note: See TracBrowser for help on using the repository browser.