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

◆ regrid()

void pism::Component::regrid ( const std::string &  module_name,
array::Array variable,
RegriddingFlag  flag = NO_REGRID_WITHOUT_REGRID_VARS 
)
protected

Regrid a variable by processing -regrid_file and -regrid_vars.

Parameters
[in]module_nameModule name, used to annotate options when run with -help.
[out]variablepointer to an array::Array; variable has to have metadata set for this to work.
[in]flagRegridding flag. If set to REGRID_WITHOUT_REGRID_VARS, regrid this variable by default, if -regrid_vars was not set. Otherwise a variable is only regridded if both -regrid_file and -regrid_vars are set and the name of the variable is found in the set of names given with -regrid_vars.

Definition at line 159 of file Component.cc.

References pism::VariableMetadata::get_string(), m_config, m_log, pism::member(), pism::array::Array::metadata(), pism::io::Default::Nil(), pism::array::Array::regrid(), REGRID_WITHOUT_REGRID_VARS, and pism::set_split().

Referenced by pism::hydrology::Distributed::bootstrap_impl(), pism::hydrology::Hydrology::bootstrap_impl(), pism::hydrology::Routing::bootstrap_impl(), pism::hydrology::SteadyState::bootstrap_impl(), pism::energy::EnthalpyModel::bootstrap_impl(), pism::energy::TemperatureModel::bootstrap_impl(), pism::ConstantYieldStress::bootstrap_impl(), pism::MohrCoulombYieldStress::finish_initialization(), pism::AgeModel::init(), pism::ocean::InitializationHelper::init_impl(), pism::ocean::sea_level::InitializationHelper::init_impl(), pism::surface::DEBMSimple::init_impl(), pism::surface::InitializationHelper::init_impl(), pism::surface::TemperatureIndex::init_impl(), pism::energy::BedThermalUnit::init_impl(), pism::energy::BTU_Full::init_impl(), pism::bed::BedDef::init_impl(), pism::bed::LingleClark::init_impl(), pism::ConstantYieldStress::init_impl(), pism::energy::EnthalpyModel::initialize_impl(), pism::energy::TemperatureModel::initialize_impl(), pism::FractureDensity::restart(), pism::ConstantYieldStress::restart_impl(), pism::energy::EnthalpyModel::restart_impl(), pism::energy::TemperatureModel::restart_impl(), pism::hydrology::Distributed::restart_impl(), pism::hydrology::Hydrology::restart_impl(), pism::hydrology::Routing::restart_impl(), pism::hydrology::SteadyState::restart_impl(), and pism::RegionalYieldStress::restart_impl().