edoddridge / aronnax

An idealised isopycnal model that can be run either with n+1/2 layers, or with n layers and variable bathymetry.
http://aronnax.readthedocs.io/en/latest/
MIT License
23 stars 5 forks source link

Add restart functionality #160

Closed edoddridge closed 7 years ago

edoddridge commented 7 years ago

This PR implements a restart feature - given the appropriate checkpoint files and value for niter0 the model will continue with a simulation.

There is no requirement that parameters, apart from domain size, remain consistent between runs. The restarted simulation takes in parameters in exactly the same way as a normal run - i.e. through the call to driver.simulate or the aronnax.conf file.

Other small changes:

codecov[bot] commented 7 years ago

Codecov Report

Merging #160 into master will increase coverage by 0.26%. The diff coverage is 98.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #160      +/-   ##
==========================================
+ Coverage   94.09%   94.36%   +0.26%     
==========================================
  Files           5        5              
  Lines        1134     1206      +72     
  Branches       57       61       +4     
==========================================
+ Hits         1067     1138      +71     
  Misses         52       52              
- Partials       15       16       +1
Impacted Files Coverage Δ
aronnax/driver.py 93.45% <100%> (ø) :arrow_up:
aronnax.f90 94.62% <98.37%> (+0.34%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update de16d89...e66a132. Read the comment docs.