-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
115 lines (94 loc) · 4.57 KB
/
README
File metadata and controls
115 lines (94 loc) · 4.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Some basic scripts are gather here.
a) the restart test: "2+2=4"
script: tst_2+2
- to use in a run dir. after a successful "testreport"
- input argument: '0','1','2','3','4' or 'All':
proceed step by step or all steps at once
- tst_2+2 (no argument) -> print "usage"
- know problems: specific restart procedure (with fizhi pkg or offline pkg)
not yet implemented
script: do_test_2+2
- call restart test "tst_2+2" multiple times, in every test experiment.
- needs to be in MITgcm/verification (with a copy of tst_2+2i script)
and can only be used after a successful "testreport"
- do_test_2+2 -help -> print "usage"
NOTE: scripts "tst_2+2" & "do_test_2+2" have been moved (Dec 25, 2007)
to: MITgcm/tools/
script: tst_2+2_cpl
= version of tst_2+2 adapted for coupled set-up (e.g., verification/cpl_aim+ocn)
b) PBS-batch script that re-submit itself (loop).
script: runScript
- used (and tested) on myrinet-3 cluster.
- suffer from a lack of meaningful comments.
- not specially design to be general and obviously
need to be modified/customized for each set-up.
c) A short script to split the ASCII Diagnostics-Stats output file
into separated files (one per field) that are easy to read/load
(e.g., in matlab, just use "load" command)
script: extract_StD
no known dependency
+ A matlab script to load in 1 array all the separated files:
matlab-script: read_StD.m
no known dependency
+ 2 example scripts to make simple plots from Stat-Diags output:
matlab-script: grph_StD.m (uses read_StD.m)
matlab-script: plot_StD.m (uses read_StD.m, c_levs.m)
NOTE: scripts "extract_StD" & "read_StD.m" have been moved (Feb 12, 2020)
to main MITgcm (git) repos, respectively in
MITgcm/utils/scripts/ - and - MITgcm/utils/matlab/
d) script: rn_pickup
- Rename 'pickup*.ckpt[A,B].*' files to 'pickup*.[10-digits-iter].*'
with several selection options.
- rn_pickup (no argument) -> print "usage"
e) script: mk_mkfile
- run genmake2 with the same options as when "Makefile" was generated
(needs an existing previous "Makefile") ; this replaces "make makefile".
in addition, link *_mpi files from the MODS directory when -mpi was
used to generate the previous Makefile.
f) script: derive_other_types
from 1 src file, derive other type (R4,RS,RL,RS) version. For now, can
only be applied to the 4 src files: "mdsio_pass_r{4,8}tor{l,s}.F"
g) script: mk_options_list
generate list of CPP Options used in Fortran source files
h) script: comp_res
to compare MONITOR output from 2 STDOUT files (outside of testreport).
Note: use executable "cmpnum" compiled from tiny fortran code: cmpnum.f
i) script: mod
to perform automatic substitution (useful to maintain src code) using
command "sed" and set of rules from file (default rule file: "mod.sed")
----------------------------------------------------------------------
shell & matlab scripts to process MONITOR output from STDOUT files
and make simple time-series plots:
--------------------
a) shell script: select_MON
get all MONITOR output from a single file and split into many
single-variable output files (easier to load and plot)
b) shell scripts: do_extract_MON & extract_MON
collect into a single file all MONITOR output from consecutive
STDOUT output files (from a single experiment with one or more restart)
c) matlab script: grph_MON.m
plot MONITOR time-series of one or more experiment (with lines of different
color). Note: experiment with larger number of records needs to come first.
Uses: read_MON.m
to load-in single-variable output files (--> many files per experiment)
and/or: readnc_MON.m
to load-in netcdf (MNC) MONITOR output files
----------------------------------------------------------------------
shell & matlab scripts to process CG2D & CG3D output from STDOUT files
and make simple time-series plots:
--------------------
a) shell script: get_cg_outp
from STDOUT, get CG output printed to screen, either (option "k") in original
sequence or (default) sorted by variable (Iter, initial and last Residual)
b) shell script: get_cg_stats
get CG statistics from STDOUT and output 1 file per variable ;
this enable to plot time-series, e.g., using following matlab scripts.
Note: internal function "get_parms_fr_StdOut" inside "get_cg_stats" could
easily be taken out as a stand alone script and used to extract
a different set of parameters.
c) matlab script: grph_cg.m
plot CG stats time-series of one or more experiment (with lines of different
color); read-in 1 file per variable and per experiment (output of
"get_cg_stats" processing).
Uses: load_parms.m
to load-in short parameter-output file into a matlab structure.