BioCMAMC-ST
partial_exporter.hpp
1#ifndef __CORE_PARTIAL_EXPORTER_HPP__
2#define __CORE_PARTIAL_EXPORTER_HPP__
3
4#include <common/execinfo.hpp>
5#include <core/post_process.hpp>
6#include <cstddef>
7#include <cstdint>
8#include <dataexporter/data_exporter.hpp>
9#include <optional>
10#include <span>
11#include <string>
12#include <string_view>
13#include <vector>
14
15namespace Core
16{
27 {
28 public:
38 const ExecInfo& info,
39 std::string_view _filename,
40 std::optional<export_metadata_t> user_description = std::nullopt);
41
48 void init_fields(uint64_t n_iter, uint64_t n_compartments);
49
57 const std::string& ds_name,
58 bool compress_data);
64 void write_number_particle(const std::vector<size_t>& distribution);
65
71 void write_probe(std::span<const double> data);
72
73 private:
76 };
77
78}; // namespace Core
79
80#endif
DataExporter(const DataExporter &)=delete
void init_fields(uint64_t n_iter, uint64_t n_compartments)
Initializes the fields required for exporting data.
Definition partial_exporter.cpp:22
void write_particle_data(PostProcessing::BonceBuffer &&bonce, const std::string &ds_name, bool compress_data)
Writes particle data to the output.
Definition partial_exporter.cpp:73
PartialExporter(const ExecInfo &info, std::string_view _filename, std::optional< export_metadata_t > user_description=std::nullopt)
Constructs a PartialExporter instance.
Definition partial_exporter.cpp:12
void write_number_particle(const std::vector< size_t > &distribution)
Writes the number of particles in each compartment.
Definition partial_exporter.cpp:60
void write_probe(std::span< const double > data)
Writes probe data to the export.
Definition partial_exporter.cpp:67
uint64_t probe_counter_n_element
Definition partial_exporter.hpp:74
Core component to perform simulation.
Definition data_exporter.hpp:19
Definition execinfo.hpp:12
Definition post_process.hpp:20