1 | #!/bin/ksh |
---|
2 | |
---|
3 | #************************************************************** |
---|
4 | # Author: Patrick Brockmann |
---|
5 | # Contact: Patrick.Brockmann@cea.fr |
---|
6 | # $Date$ |
---|
7 | # $Author$ |
---|
8 | # $Revision$ |
---|
9 | # IPSL (2006) |
---|
10 | # This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC |
---|
11 | # History: |
---|
12 | # Modification: |
---|
13 | # |
---|
14 | #************************************************************** |
---|
15 | |
---|
16 | # This script is used to generate a reference file with command : |
---|
17 | # IGCM_debug_Test.ksh > IGCM_debug_Test.ref 2>&1 |
---|
18 | # The reference file produced is used by the function IGCM_debug_Check |
---|
19 | # to verify that the libIGCM_debug produce the same results |
---|
20 | |
---|
21 | #================================================= |
---|
22 | libIGCM=`dirname $0`/.. |
---|
23 | . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh |
---|
24 | |
---|
25 | #================================================= |
---|
26 | Verbosity=3 |
---|
27 | |
---|
28 | Option1="Hello Earth" |
---|
29 | Option2="Hello Mars" |
---|
30 | |
---|
31 | List="${R_ENTREE}/flux_iceberg . ${R_ENTREE}/Albedo.nc ." |
---|
32 | |
---|
33 | #================================================= |
---|
34 | # function IGCM_debug_Print |
---|
35 | |
---|
36 | IGCM_debug_Print 1 ${Option1} |
---|
37 | IGCM_debug_Print 1 ${Option2} |
---|
38 | |
---|
39 | IGCM_debug_Print 2 "A comment at level 2" |
---|
40 | IGCM_debug_Print 3 "A comment at level 3" "Another comment at level 3" |
---|
41 | IGCM_debug_Print 1 "A comment at level 1" |
---|
42 | IGCM_debug_Print 3 "Another comment at level 3" |
---|
43 | IGCM_debug_Print 2 "Another comment at level 2" |
---|
44 | |
---|
45 | IGCM_debug_Print 1 ${List} |
---|
46 | |
---|
47 | #================================================= |
---|
48 | # function IGCM_debug_PrintVariables |
---|
49 | |
---|
50 | IGCM_debug_PrintVariables 1 Option |
---|
51 | |
---|