3 #include "pism/util/array/Scalar.hh"
17 MassEnthVec2S(std::shared_ptr<const pism::Grid> grid,
const std::string &name);
19 void set_attrs(
const std::string &long_name,
const std::string &units);
34 void add_mass(
int i,
int j,
double mass,
double specific_enthalpy) {
36 enthalpy(i,j) +=
mass * specific_enthalpy;
155 std::string
const &contract_name_enth) {
161 MassEnergyBudget(std::shared_ptr<const pism::Grid> grid, std::string
const &prefix);
virtual void end_access() const
Checks if an Array is allocated and calls DAVecRestoreArray.
virtual void begin_access() const
Checks if an Array is allocated and calls DAVecGetArray.
void set(double c)
Result: v[j] <- c for all j.
pism::array::Scalar href_to_h
SMB as seen by PISM in iMgeometry.cc massContExplicitSte(). Used to check icebin_smb....
MassEnergyBudget(std::shared_ptr< const pism::Grid > grid, std::string const &prefix)
pism::array::Scalar nonneg_rule
std::ostream & print_formulas(std::ostream &out)
MassEnthVec2S calving
Equal to IceModel::discharge_flux_2D_cumulative.
pism::array::Scalar geothermal_flux
Total amount of geothermal energy [J/m^2].
MassEnthVec2S internal_advection
static const int ADVECTION
MassEnthVec2S smb
accumulation / ablation, as provided by Icebin
pism::array::Scalar basal_frictional_heating
Total amount of basal friction heating [J/m^2].
std::vector< VecWithFlags > all_vecs
void add_enth(pism::array::Scalar &vec, int flags, std::string const &contract_name)
pism::array::Scalar strain_heating
Total amount of strain heating [J/m^2].
MassEnthVec2S melt_grounded
basal melt (grounded) (from summing meltrate_grounded)
pism::array::Scalar upward_geothermal_flux
Total amount of geothermal energy [J/m^2].
MassEnthVec2S melt_floating
sub-shelf melt (from summing meltrate_floating)
void add_massenth(MassEnthVec2S &massenth, int flags, std::string const &contract_name_mass, std::string const &contract_name_enth)
void add_mass(pism::array::Scalar &vec, int flags, std::string const &contract_name)
pism::array::Scalar deltah
Change in enthalpy of top layer.
virtual void begin_access() const
void set_attrs(const std::string &long_name, const std::string &units)
MassEnthVec2S(std::shared_ptr< const pism::Grid > grid, const std::string &name)
virtual void end_access() const
VecWithFlags(pism::array::Scalar &_vec, int _flags, std::string const &_contract_name)
std::string contract_name
pism::array::Scalar & vec