source: branches/libIGCM_MPI_OpenMP/libIGCM_date/IGCM_date_Test.ksh

Last change on this file was 373, checked in by sdipsl, 14 years ago

Remove libIGCM_sys_claude.ksh and libIGCM_sys_calculo.ksh
Update/homogenize all headers usgin the new fixed-length keyword syntax regarding properties keywords
$Rev:: 13 i $: Revision of last commit
$Author:: harry $: Author of last commit
$Date:: 2006-03-15 02:33:03 -0500 (Wed, 15 Mar 2006) $: Date of last commit
Add / update original author and contact when missing

  • 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: 3.7 KB
Line 
1#!/bin/ksh
2
3#**************************************************************
4# Author: Sebastien Denvil
5# Contact: Sebastien.Denvil__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# This script is used to generate a reference file with command :
15# IGCM_date_Test.ksh > IGCM_date_Test.ref 2>&1
16# The reference file produced is used by the function IGCM_date_Check
17# to verify that the libIGCM_date produce the same results
18
19#=================================================
20libIGCM=`dirname $0`/..
21. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
22. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
23
24if [ X${config_UserChoices_CalendarType} = X ] ; then
25    config_UserChoices_CalendarType="leap"
26fi
27
28echo "#=================================#"
29echo "IGCM_date_DaysInYear test"
30echo "#=================================#"
31
32echo ""
33echo "#"
34echo "IGCM_date_DaysInYears 1998"
35echo "#"
36IGCM_date_DaysInYear 1998
37
38echo ""
39echo "#"
40echo "IGCM_date_DaysInYears 2000"
41echo "#"
42IGCM_date_DaysInYear 2000
43
44echo "#=================================#"
45echo "IGCM_date_DaysInMonth test"
46echo "#=================================#"
47
48echo ""
49echo "#"
50echo "IGCM_date_DaysInMonth 1998 02"
51echo "#"
52IGCM_date_DaysInMonth 1998 02
53
54echo ""
55echo "#"
56echo "IGCM_date_DaysInMonth 20000206"
57echo "#"
58IGCM_date_DaysInMonth 20000206
59
60echo "#==========================================#"
61echo "IGCM_date_ConvertGregorianDateToJulian test"
62echo "#==========================================#"
63
64echo ""
65echo "#"
66echo "IGCM_date_ConvertGregorianDateToJulian 19980312"
67echo "#"
68IGCM_date_ConvertGregorianDateToJulian 19980312
69
70echo ""
71echo "#"
72echo "IGCM_date_ConvertGregorianDateToJulian 19980830"
73echo "#"
74IGCM_date_ConvertGregorianDateToJulian 19980830
75
76echo "#==========================================#"
77echo "IGCM_date_ConvertJulianDateToGregorian test"
78echo "#==========================================#"
79
80echo ""
81echo "#"
82echo "IGCM_date_ConvertJulianDateToGregorian 1998326"
83echo "#"
84IGCM_date_ConvertJulianDateToGregorian 1998326
85
86echo ""
87echo "#"
88echo "IGCM_date_ConvertJulianDateToGregorian 2000298"
89echo "#"
90IGCM_date_ConvertJulianDateToGregorian 2000298
91
92echo "#==================================#"
93echo "IGCM_date_AddDaysToJulianDate test"
94echo "#==================================#"
95
96echo ""
97echo "#"
98echo "IGCM_date_AddDaysToJulianDate 1998312 14"
99echo "#"
100IGCM_date_AddDaysToJulianDate 1998312 14
101
102echo ""
103echo "#"
104echo "IGCM_date_AddDaysToJulianDate 2000312 -14"
105echo "#"
106IGCM_date_AddDaysToJulianDate 2000312 -14
107
108echo "#====================================#"
109echo "IGCM_date_AddDaysToGregorianDate test"
110echo "#====================================#"
111
112echo ""
113echo "#"
114echo "IGCM_date_AddDaysToGregorianDate 19980312 44"
115echo "#"
116IGCM_date_AddDaysToGregorianDate 19980312 44
117
118echo ""
119echo "#"
120echo "IGCM_date_AddDaysToGregorianDate 20000228 -44"
121echo "#"
122IGCM_date_AddDaysToGregorianDate 20000228 -44
123
124echo "#====================================#"
125echo "IGCM_date_DaysBetweenJulianDate test"
126echo "#====================================#"
127
128echo ""
129echo "#"
130echo "IGCM_date_DaysBetweenJulianDate 1860001 1865365"
131echo "#"
132IGCM_date_DaysBetweenJulianDate 1860001 1865365
133
134echo "#======================================#"
135echo "IGCM_date_DaysBetweenGregorianDate test"
136echo "#======================================#"
137
138echo ""
139echo "#"
140echo "IGCM_date_DaysBetweenGregorianDate 18801231 18750101"
141echo "#"
142IGCM_date_DaysBetweenGregorianDate 18801231 18750101
Note: See TracBrowser for help on using the repository browser.