nextsimhub / nextsimdg

neXtSIM_DG : next generation sea-ice model with DG
https://nextsim-dg.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
10 stars 13 forks source link

Simple 2D ParametricGrid restart file #506

Closed timspainNERSC closed 3 months ago

timspainNERSC commented 4 months ago

Simple 2D ParametricGrid restart file

Fixes #505

Adds a script to generate a simple, two dimensional restart file with the ParametricGrid structure. Also adds the config time hook to generate the file.

MarionBWeinzierl commented 3 months ago

Thanks for adding the corrected config file, @timspainNERSC . Could you please clarify: Do I see it correctly that #511 has to be merged first for this to work? Currently, I am getting terminate called after throwing an instance of 'std::out_of_range' when trying to run this example.

timspainNERSC commented 3 months ago

Thanks for adding the corrected config file, @timspainNERSC . Could you please clarify: Do I see it correctly that #511 has to be merged first for this to work? Currently, I am getting terminate called after throwing an instance of 'std::out_of_range' when trying to run this example.

That should have been fixed by commit ae148e9 in this branch. It was for me, at least.

There shouldn't be any problem using the config file you posted on Slack, as long as you change the value of IceThermodynamicsModule to Nextsim::ThermoIce0.

MarionBWeinzierl commented 3 months ago

Ah, I got it to run now, error on my side.