PISM, A Parallel Ice Sheet Model
2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
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
namespace
icebin
{
14
15
/** Sets up to easily write out a bundle of PISM variables to a file. */
16
class
VecBundleWriter
{
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
21
public
:
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
pism::icebin::VecBundleWriter::write
void write(double time_s)
Definition
VecBundleWriter.cc:40
pism::icebin::VecBundleWriter::m_grid
std::shared_ptr< const pism::Grid > m_grid
Definition
VecBundleWriter.hh:17
pism::icebin::VecBundleWriter::fname
std::string const fname
Definition
VecBundleWriter.hh:18
pism::icebin::VecBundleWriter::vecs
std::vector< pism::array::Array const * > vecs
Definition
VecBundleWriter.hh:19
pism::icebin::VecBundleWriter::init
void init()
Definition
VecBundleWriter.cc:25
pism::icebin::VecBundleWriter
Definition
VecBundleWriter.hh:16
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