Skip to content

Latest commit

 

History

History
76 lines (64 loc) · 2.5 KB

workflow.org

File metadata and controls

76 lines (64 loc) · 2.5 KB

First run with run_ocean:

Run run_ocean with the default xml settings in this directory (run/ocean): ../../build/src/main/run_ocean (single core)

Check run status:

Best way is to look at cdata.txt More detailed run output is in info_0.txt

Run results

Runtime on a single core is around 2m30 on my computer. This is (approximately) what you should get in info_0.txt:

-----------------------------------------
Model view:
     norm state :  542.3414237
     norm rhs   :  0.1590434284
     norm sol   :  0.01717931036
    parameter   :  1.000006854
-----------------------------------------

Saving the result

Use the available script save.sh and create a directory structure to save your work in. For instance ./save.sh test_run 0. Then describe the experiment when prompted.

Basic Visualization of the results

  • Open matlab in the current directory.
  • Make sure the matlab scripts directory is added to the matlab path.
  • An empty call to plot_ocean() should give 6 figures, showing streamfunctions and other things.

Visualize the diagnosed salinity flux and other available fluxes

opts.readFluxes=true
plot_ocean('ocean_output.h5', opts);

Second run: a continuation with flux forcing starting at the previous equilibrium

Load the run that we saved previously: ./load.sh test_run 0 Now an input file ocean_input.h5 is available.

To restart from this input and use the diagnosed salinity flux as forcing, change the following in the xmls.

In ocean_params.xml:

<Parameter name="Load state" type="bool" value="true"/>
<Parameter name="Load salinity flux" type="bool" value="true"/>
<Parameter name="Combined Forcing"    type="double" value="1.0"/>
<Parameter name="Restoring Salinity Profile" type="int" value="0"/>
<Parameter name="Levitus S" type="int" value="0"/>

In continuation_params.xml

<Parameter name="continuation parameter" type="string" value="Salinity Forcing"/>
<Parameter name="destination 0" type="double" value="0.2"/>

Run results

-----------------------------------------
Model view: 
     norm state :  537.1967589
     norm rhs   :  0.0009001565501
     norm sol   :  0.01815325666
    parameter   :  0.2000417883
-----------------------------------------

Saving the result

Again save your results. For instance ./save.sh test_run 1 and describe the experiment when prompted.