Function opensn::CopyVecToSTLvector

Function Documentation

void opensn::CopyVecToSTLvector(Vec x, std::vector<double> &data, size_t N, bool resize_STL = true)

Copies a PETSc vector to a STL vector. Only the local portion is copied.