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

◆ write_array()

void pism::OutputWriter::write_array ( const std::string &  file_name,
const std::string &  variable_name,
const std::vector< unsigned int > &  start,
const std::vector< unsigned int > &  count,
const std::vector< double > &  input 
)

Write a 1D array input to a variable variable_name in the file file_name.

Data in input are written without modification.

The array input is stored redundantly on all MPI ranks.

FIXME: writing to the time variable will change the length of the time dimension.

Definition at line 305 of file OutputWriter.cc.

References count, and write_array_impl().

Referenced by pism::SynchronousOutputWriter::append_time_impl(), write_dimensions(), and write_timeseries().