PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ add_contribution() [2/2]

template<typename T >
void pism::fem::Element3::add_contribution ( const T *  local,
T ***  y_global 
) const
inline

Add the values of element-local contributions y to the global vector y_global.

The element-local array local should be an array of Nk values.

Use this to add residual contributions.

Definition at line 328 of file Element.hh.

References I, local_to_global(), pism::fem::Element::m_invalid_dof, pism::fem::Element::m_n_chi, pism::fem::Element::m_row, and n.

Referenced by pism::stressbalance::Blatter::compute_jacobian(), and pism::stressbalance::Blatter::compute_residual().