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

◆ write_distributed_array()

void pism::OutputWriter::write_distributed_array ( const std::string &  file_name,
const std::string &  variable_name,
const double input 
)

Write a 2D or 3D array input to the variable variable_name in file file_name.

Write coordinate variables (x, y, z, etc) required by this variable.

May be a no-op if this variable is time-independent and was written already.

The array input is distributed across MPI ranks in the communicator used to create this OutputWriter instance. Uses domain decomposition information provided to define_variable() and initialize(array_variables).

Definition at line 363 of file OutputWriter.cc.

References pism::RuntimeError::add_context(), already_written(), pism::RuntimeError::formatted(), PISM_ERROR_LOCATION, variable_info(), write_dimensions(), and write_distributed_array_impl().