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

Copying in the inner loop and other cleanup #527

Open timspainNERSC opened 7 months ago

timspainNERSC commented 7 months ago

Currently the redesigned dynamics copies three big arrays (DGVector<DGstress> arrays, so the biggest we have) each sub timestep. This is inefficient and the copying must be avoided.

Futhermore, cgParametericMomentum delenda est.