[929] | 1 | #!/bin/ksh |
---|
[2] | 2 | |
---|
| 3 | #************************************************************** |
---|
| 4 | # Author: Patrick Brockmann |
---|
[373] | 5 | # Contact: Patrick.Brockmann__at__cea.fr |
---|
| 6 | # $Revision:: $ Revision of last commit |
---|
| 7 | # $Author:: $ Author of last commit |
---|
| 8 | # $Date:: $ Date of last commit |
---|
[2] | 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 : |
---|
[929] | 15 | # IGCM_debug_Test.ksh > IGCM_debug_Test.ref 2>&1 |
---|
[2] | 16 | # The reference file produced is used by the function IGCM_debug_Check |
---|
| 17 | # to verify that the libIGCM_debug produce the same results |
---|
| 18 | |
---|
| 19 | #================================================= |
---|
| 20 | libIGCM=`dirname $0`/.. |
---|
[926] | 21 | typeset TaskType=checking |
---|
[2] | 22 | . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh |
---|
| 23 | |
---|
| 24 | #================================================= |
---|
| 25 | Verbosity=3 |
---|
| 26 | |
---|
| 27 | Option1="Hello Earth" |
---|
| 28 | Option2="Hello Mars" |
---|
| 29 | |
---|
| 30 | List="${R_ENTREE}/flux_iceberg . ${R_ENTREE}/Albedo.nc ." |
---|
| 31 | |
---|
| 32 | #================================================= |
---|
| 33 | # function IGCM_debug_Print |
---|
| 34 | |
---|
| 35 | IGCM_debug_Print 1 ${Option1} |
---|
| 36 | IGCM_debug_Print 1 ${Option2} |
---|
| 37 | |
---|
| 38 | IGCM_debug_Print 2 "A comment at level 2" |
---|
| 39 | IGCM_debug_Print 3 "A comment at level 3" "Another comment at level 3" |
---|
| 40 | IGCM_debug_Print 1 "A comment at level 1" |
---|
| 41 | IGCM_debug_Print 3 "Another comment at level 3" |
---|
| 42 | IGCM_debug_Print 2 "Another comment at level 2" |
---|
| 43 | |
---|
| 44 | IGCM_debug_Print 1 ${List} |
---|
| 45 | |
---|
| 46 | #================================================= |
---|
| 47 | # function IGCM_debug_PrintVariables |
---|
| 48 | |
---|
| 49 | IGCM_debug_PrintVariables 1 Option |
---|