1#ifndef DUNE_COPASI_GRID_CELL_DATA_PARSER_HH
2#define DUNE_COPASI_GRID_CELL_DATA_PARSER_HH
8#include <dune/grid/common/rangegenerators.hh>
10#include <spdlog/spdlog.h>
12#include <dune/common/exceptions.hh>
13#include <dune/common/parametertree.hh>
23 template<Dune::Concept::Gr
idView GV,
class T>
42 if (
line.empty() ||
line[0] ==
'#') {
58 std::map<std::size_t, T>
data;
93template<Dune::Concept::Gr
idView GV,
class T>
108 if (
type ==
"scalar") {
110 }
else if (
type ==
"vector") {
112 }
else if (
type ==
"tensor") {
Container for cell data of a grid view.
Definition cell_data.hh:25
Definition axis_names.hh:7
auto format_exception(Exception &&e, fmt::format_string< Args... > format, Args &&... args)
Definition exceptions.hh:23
constexpr bool is_bitflags_v
Alias for Bitflag indicator.
Definition bit_flags.hh:24
void cell_data_parser(const ParameterTree &grid_config, CellData< GV, T > &cell_data)
Parse data file with cell data and add its values to cell data.
Definition cell_data_parser.hh:94