PISM, A Parallel Ice Sheet Model
stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
|
◆ define_model_state_impl()
Define model state variables. All yield stress models have to write basal yield stress to output files and read it from and input file during initialization because yield stress may be used by PISM's stress balance model. The stress balance code has to be executed early during an update of the model because its output (ice velocity) is used to compute the maximum allowed time step. Now that PISM's yield stress models are time-dependent YieldStress::update() will be called after the maximum time step is found. This means that during the first time step basal_material_yield_stress() gets called before update(). Reimplemented from pism::MohrCoulombYieldStress. Definition at line 274 of file OptTillphiYieldStress.cc. References pism::calendar(), pism::MohrCoulombYieldStress::define_model_state_impl(), pism::File::define_variable(), pism::File::find_variable(), m_time_name, pism::io::PISM_DOUBLE, pism::Component::time(), and pism::File::write_attribute(). |