PISM, A Parallel Ice Sheet Model  stable v2.0.4 committed by Constantine Khrulev on 2022-05-25 12:02:27 -0800

◆ copy_to_vec()

void pism::IceModelVec::copy_to_vec ( std::shared_ptr< petsc::DM destination_da,
petsc::Vec destination 
) const
protected

Copies v to a global vector 'destination'. Ghost points are discarded.

This is potentially dangerous: make sure that destination has the same dimensions as the current IceModelVec.

DMLocalToGlobalBegin/End is broken in PETSc 3.5, so we roll our own.

Definition at line 266 of file iceModelVec.cc.

References pism::IceModelVec::Impl::dof, get_dof(), m_impl, pism::max(), and pism::IceModelVec::Impl::zlevels.

Referenced by put_on_proc0(), and write_impl().