PISM, A Parallel Ice Sheet Model
stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
|
◆ solve()
Solve the SSA system of equations. The FEM solver computes values of the various coefficients (most notably: the vertically-averaged ice hardness) at each of the element nodes only once. When running in an ice-model context, at each time step, SSA::update() is called, which calls SSAFEM::solve(). Since coefficients have generally changed between time steps, we need to recompute coefficients. On the other hand, in the context of inversion, coefficients will not change between iteration and there is no need to recompute their values. So there are two different solve methods, SSAFEM::solve() and SSAFEM::solve_nocache(). The only difference is that SSAFEM::solve() recomputes the cached values of the coefficients before calling SSAFEM::solve_nocache(). Implements pism::stressbalance::SSA. Definition at line 171 of file SSAFEM.cc. References pism::RuntimeError::formatted(), pism::Component::m_log, pism::stressbalance::SSA::m_stdout_ssa, PISM_ERROR_LOCATION, and solve_with_reason(). |