PISM, A Parallel Ice Sheet Model
2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches
src
icebin
VecBundleWriter.hh
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
#include <vector>
5
#include <memory>
6
7
namespace
pism
{
8
class
Grid;
9
namespace
array {
10
class
Array
;
11
}
12
13
class
OutputWriter;
14
15
namespace
icebin
{
16
17
/** Sets up to easily write out a bundle of PISM variables to a file. */
18
class
VecBundleWriter
{
19
std::shared_ptr<const pism::Grid>
m_grid
;
20
std::string
const
fname
;
// Name of the file to write
21
std::vector<pism::array::Array const *>
vecs
;
// The vectors we will write
22
std::shared_ptr<OutputWriter>
output_writer
;
23
public
:
24
VecBundleWriter
(std::shared_ptr<pism::Grid> grid, std::string
const
&_fname, std::vector<pism::array::Array const *> &_vecs);
25
26
void
init
();
27
28
/** Dump the value of the Vectors at curent PISM simulation time. */
29
void
write
(
double
time_s);
30
};
31
}
// end of namespace icebin
32
}
// end of namespace pism
pism::icebin::VecBundleWriter::write
void write(double time_s)
Definition
VecBundleWriter.cc:41
pism::icebin::VecBundleWriter::output_writer
std::shared_ptr< OutputWriter > output_writer
Definition
VecBundleWriter.hh:22
pism::icebin::VecBundleWriter::m_grid
std::shared_ptr< const pism::Grid > m_grid
Definition
VecBundleWriter.hh:19
pism::icebin::VecBundleWriter::fname
std::string const fname
Definition
VecBundleWriter.hh:20
pism::icebin::VecBundleWriter::vecs
std::vector< pism::array::Array const * > vecs
Definition
VecBundleWriter.hh:21
pism::icebin::VecBundleWriter::init
void init()
Definition
VecBundleWriter.cc:28
pism::icebin::VecBundleWriter
Definition
VecBundleWriter.hh:18
icebin
Definition
IBIceModel.hh:11
pism::connected_components::Array
connected_components::details::PISMArray Array
Definition
label_components_parallel.cc:357
pism
Definition
AgeColumnSystem.cc:23
Generated by
1.9.8