PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
|
◆ write_spatial_variable()
Write a double array to a file. Converts units if internal and "output" units are different. Definition at line 645 of file io_helpers.cc. References pism::units::Converter::convert_doubles(), pism::RuntimeError::formatted(), pism::VariableMetadata::get_name(), pism::VariableMetadata::get_time_independent(), pism::File::get_variable_was_written(), pism::k, pism::SpatialVariableMetadata::levels(), pism::File::name(), pism::VariableMetadata::output_units(), PISM_ERROR_LOCATION, pism::File::set_variable_was_written(), pism::VariableMetadata::unit_system(), pism::File::variable_exists(), write_dimensions(), and pism::File::write_distributed_array(). Referenced by pism::array::Array::write_impl(). |