PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ copy_to_vec()

void pism::array::Array::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 Array.

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

Definition at line 241 of file Array.cc.

References get_dof(), levels(), ndof(), and size().

Referenced by put_on_proc0(), and write_impl().