source: trunk/libIGCM/libIGCM_sys/libIGCM_sys.ksh @ 380

Last change on this file since 380 was 380, checked in by sdipsl, 13 years ago
  • Add a IGCM_config_Check function to test coherency between post-processing frequency. See #29. Will exit before execution if incoherency are found (example rebuild every 6 months, having a 1Y PeriodLenght? and a 2 months TimeSeriesFrequency?...)
  • libIGCM_post.ksh refactoring, making general function to handle frequency, easier to read hopefully. Still some simplification to add
  • DRYRUN was not maintain since a long time. Fix that. Minor adaptation still need to be done for sx8 and sx9 (ie when you want to DRYRUN from a machine initially devoted to the post-processing). DRYRUN is aimed for developpement purpose, prefer StandAlone? method to post-process after the fact.
  • we clean SUBMIT_DIR keeping only the 5 youngest Script_Output_* files. Good for workdir quota.
  • simplify rebuildFrom* options : remove R_SAVE and config_UserChoices_JobName used by IGCM_Patch_20091118_mask.ksh. rebuild.ksh will define that ; AA_create* already know that.
  • when exiting because of a RErun an old job : be more explicit and point the files who initiated this action, together with a link to clean_month.job
  • remove some redundant typeset
  • clean libIGCM_sys.ksh : remove machines
  • and cosmetics.
  • Property licence set to
    The following licence information concerns ONLY the libIGCM tools
    ==================================================================

    Copyright © Centre National de la Recherche Scientifique CNRS
    Commissariat à l'Énergie Atomique CEA

    libIGCM : Library for Portable Models Computation of IGCM Group.

    IGCM Group is the french IPSL Global Climate Model Group.

    This library is a set of shell scripts and functions whose purpose is
    the management of the initialization, the launch, the transfer of
    output files, the post-processing and the monitoring of datas produce
    by any numerical program on any plateforme.

    This software is governed by the CeCILL license under French law and
    abiding by the rules of distribution of free software. You can use,
    modify and/ or redistribute the software under the terms of the CeCILL
    license as circulated by CEA, CNRS and INRIA at the following URL
    "http://www.cecill.info".

    As a counterpart to the access to the source code and rights to copy,
    modify and redistribute granted by the license, users are provided only
    with a limited warranty and the software's author, the holder of the
    economic rights, and the successive licensors have only limited
    liability.

    In this respect, the user's attention is drawn to the risks associated
    with loading, using, modifying and/or developing or reproducing the
    software by the user in light of its specific status of free software,
    that may mean that it is complicated to manipulate, and that also
    therefore means that it is reserved for developers and experienced
    professionals having in-depth computer knowledge. Users are therefore
    encouraged to load and test the software's suitability as regards their
    requirements in conditions enabling the security of their systems and/or
    data to be ensured and, more generally, to use and operate it in the
    same conditions as regards security.

    The fact that you are presently reading this means that you have had
    knowledge of the CeCILL license and that you accept its terms.
  • Property svn:keywords set to Revision Author Date
File size: 2.4 KB
Line 
1#!/bin/ksh
2
3#**************************************************************
4# Author: Martial Mancip
5# Contact: Martial.Mancip__at__ipsl.jussieu.fr
6# $Revision::                                          $ Revision of last commit
7# $Author::                                            $ Author of last commit
8# $Date::                                              $ Date of last commit
9# IPSL (2006)
10#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
11#
12#**************************************************************
13
14# bypass specific internationalization (for awk)
15export LC_ALL="C"
16
17# By default, all libIGCM_sys save functions will protect output datas (RUN execution mode)
18# other values : DEB(ug), DEV(elopment).
19JobType=${JobType:=RUN}
20
21echo
22echo "===================================================="
23echo "Where do we run ?" $( hostname )
24uname -a
25echo "===================================================="
26echo
27
28
29if [ X${JobType} = XDEB ] ; then
30    echo "DEBUG mode : activation of 'set -vx' mode."
31    set -vx
32    DEBUG_debug=true
33    DEBUG_sys=true
34    echo "===================================================="
35fi
36
37case $( hostname -s ) in
38
39    brodie*)
40        echo "sys source brodie Nec SX8 lib."
41        . ${libIGCM}/libIGCM_sys/libIGCM_sys_brodie.ksh;;
42
43    vargas*)
44        echo "sys source vargas IBM P6 lib."
45        . ${libIGCM}/libIGCM_sys/libIGCM_sys_vargas.ksh;;
46
47    ulam)
48        echo "sys source ulam Intel X-64 lib."
49        . ${libIGCM}/libIGCM_sys/libIGCM_sys_ulam.ksh;;
50
51    mercure0?)
52        echo "sys source mercure frontend X-64 lib."
53        . ${libIGCM}/libIGCM_sys/libIGCM_sys_mercure.ksh;;
54
55    mercure1?)
56        echo "sys source mercure Nec SX8-R lib."
57        . ${libIGCM}/libIGCM_sys/libIGCM_sys_mercurex8.ksh;;
58
59    mercure2?)
60        echo "sys source mercure Nec SX9 lib."
61        . ${libIGCM}/libIGCM_sys/libIGCM_sys_mercurex9.ksh;;
62
63    platine*)
64        echo "sys source platine Intel IA-64 lib."
65        . ${libIGCM}/libIGCM_sys/libIGCM_sys_platine.ksh;;
66
67    titane*)
68        echo "sys source platine Intel X-64 lib."
69        . ${libIGCM}/libIGCM_sys/libIGCM_sys_titane.ksh;;
70
71    cesium*)
72        echo "sys source cesium Intel X-64 lib."
73        . ${libIGCM}/libIGCM_sys/libIGCM_sys_cesium.ksh;;
74
75    obelix*)
76        echo "sys source obelix lib."
77        . ${libIGCM}/libIGCM_sys/libIGCM_sys_obelix.ksh;;
78
79    *)
80        echo "sys source default lib."
81        . ${libIGCM}/libIGCM_sys/libIGCM_sys_default.ksh;;
82esac
83
84# Set default umask (umask is 0027 on some machines : CCRT machine at least)
85umask 0022
Note: See TracBrowser for help on using the repository browser.