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

◆ convert_vec() [1/2]

void pism::convert_vec ( petsc::Vec v,
std::shared_ptr< units::System system,
const std::string &  spec1,
const std::string &  spec2 
)

Convert a PETSc Vec from the units in from into units in to (in place).

Parameters
vdata to convert
systemunit system
spec1source unit specification string
spec2destination unit specification string