Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VecBundleWriter.hh
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5#include <memory>
6
7namespace pism {
8class Grid;
9namespace array {
10class Array;
11}
12
13namespace icebin {
14
15/** Sets up to easily write out a bundle of PISM variables to a file. */
17 std::shared_ptr<const pism::Grid> m_grid;
18 std::string const fname; // Name of the file to write
19 std::vector<pism::array::Array const *> vecs; // The vectors we will write
20
21public:
22 VecBundleWriter(std::shared_ptr<pism::Grid> grid, std::string const &_fname, std::vector<pism::array::Array const *> &_vecs);
23
24 void init();
25
26 /** Dump the value of the Vectors at curent PISM simulation time. */
27 void write(double time_s);
28};
29} // end of namespace icebin
30} // end of namespace pism
std::shared_ptr< const pism::Grid > m_grid
std::vector< pism::array::Array const * > vecs
connected_components::details::PISMArray Array