PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ SSAFD()

pism::stressbalance::SSAFD::SSAFD ( std::shared_ptr< const Grid grid)

Because the FD implementation of the SSA uses Picard iteration, a PETSc KSP and Mat are used directly. In particular we set up \(A\) (Mat m_A) and a \(b\) (= Vec m_b) and iteratively solve linear systems

\[ A x = b \]

where \(x\) (= Vec SSAX). A PETSc SNES object is never created.

Definition at line 61 of file SSAFD.cc.

References pism::VariableMetadata::long_name(), m_A, pism::stressbalance::SSA::m_da, pism::stressbalance::ShallowStressBalance::m_flow_law, pism::Component::m_grid, m_hardness, m_KSP, m_nuH, m_nuH_old, m_nuh_viewer_size, m_velocity_old, m_view_nuh, m_work, pism::array::Array::metadata(), PISM_CHK, pism::printf(), pism::Wrapper< T >::rawptr(), pism::VariableMetadata::set_units_without_validation(), and pism::VariableMetadata::units().

Referenced by pism::stressbalance::SSAFDFactory().