OGS
CellAverageData.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#pragma once
5
6
#include "
MeshLib/Mesh.h
"
7
#include "
MeshLib/PropertyVector.h
"
8
9
namespace
ProcessLib
10
{
11
struct
CellAverageData
12
{
13
explicit
CellAverageData
(
MeshLib::Mesh
& mesh) :
mesh_
{mesh} {}
14
15
MeshLib::PropertyVector<double>
&
getOrCreatePropertyVector
(
16
std::string
const
& name,
unsigned
const
num_comp);
17
18
private
:
19
MeshLib::Mesh
const
&
mesh_
;
20
std::map<std::string, MeshLib::PropertyVector<double>*>
cell_averages_
;
21
};
22
}
// namespace ProcessLib
Mesh.h
PropertyVector.h
MeshLib::Mesh
Definition
Mesh.h:34
MeshLib::PropertyVector
Definition
PropertyVector.h:52
ProcessLib
Definition
ProjectData.h:40
ProcessLib::CellAverageData::mesh_
MeshLib::Mesh const & mesh_
Definition
CellAverageData.h:19
ProcessLib::CellAverageData::getOrCreatePropertyVector
MeshLib::PropertyVector< double > & getOrCreatePropertyVector(std::string const &name, unsigned const num_comp)
Definition
CellAverageData.cpp:10
ProcessLib::CellAverageData::cell_averages_
std::map< std::string, MeshLib::PropertyVector< double > * > cell_averages_
Definition
CellAverageData.h:20
ProcessLib::CellAverageData::CellAverageData
CellAverageData(MeshLib::Mesh &mesh)
Definition
CellAverageData.h:13
ProcessLib
Output
CellAverageData.h
Generated by
1.14.0