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

◆ regrid()

double pism::InputInterpolation::regrid ( const VariableMetadata metadata,
const pism::File file,
int  record_index,
const Grid grid,
petsc::Vec output 
) const

Read a record record_index of the variable corresponding to the provided metadata from a file and interpolate onto the target grid. Store results in output.

Set record_index to -1 to read the last record available in file.

Definition at line 46 of file InputInterpolation.cc.

References pism::File::nrecords(), and regrid_impl().

Referenced by pism::InputInterpolationYAC::regrid().