20#ifndef OPM_GRID_DATA_OUTPUT_HPP
21#define OPM_GRID_DATA_OUTPUT_HPP
23#include <opm/common/ErrorMacros.hpp>
25#include <dune/grid/common/partitionset.hh>
88namespace Opm::GridDataOutput
95template <
class Gr
idView,
unsigned int partitions>
132 Dune::PartitionSet<partitions> dunePartition);
165 template <
typename T>
166 long writeGridPoints(T* x_inout, T* y_inout, T* z_inout,
long max_size = 0)
const;
181 template <
typename VectType>
182 long writeGridPoints(VectType& x_inout, VectType& y_inout, VectType& z_inout)
const;
194 template <
typename T>
206 template <
typename VectType>
219 template <
typename T>
231 template <
typename VectType>
245 template <
typename Integer>
261 template <
typename VectType>
276 template <
typename Integer>
289 template <
typename VectType>
302 template <
typename Integer>
303 long writeCellTypes(Integer* types_inout,
long max_size = 0)
const;
313 template <
typename VectType>
316 std::string getPartitionTypeString()
const;
318 Dune::PartitionSet<partitions> getPartition(
void)
320 return this->dunePartition_;
323 void printGridDetails(std::ostream& outstr)
const;
325 int getNCells()
const
330 int getNVertices()
const
335 int getNCorners()
const
340 std::string getError()
const
350 bool hasError()
const
352 return !error_.empty();
358 Dune::PartitionSet<partitions> dunePartition_;
359 unsigned int partition_value_;
ConnectivityVertexOrder
Allows selection of order of vertices in writeConnectivity()
Definition GridDataOutput.hpp:93
Definition GridDataOutput.hpp:97
int ncorners_
Current partition grid information.
Definition GridDataOutput.hpp:372
long writeGridPoints_AOS(T *xyz_inout, long max_size=0) const
Write the positions of vertices - directly to the pointers given in parameters as Array of Structures...
Definition GridDataOutput_impl.hpp:159
int nvertices_
Current partition grid information.
Definition GridDataOutput.hpp:368
SimMeshDataAccessor(const GridView &gridView, Dune::PartitionSet< partitions > dunePartition)
Construct a SimMeshDataAccessor working on a specific GridView and specialize to a Dune::PartitionSet...
Definition GridDataOutput_impl.hpp:35
void countEntities()
Count the vertices, cells and corners.
Definition GridDataOutput_impl.hpp:57
long writeGridPoints(T *x_inout, T *y_inout, T *z_inout, long max_size=0) const
Write the positions of vertices - directly to the pointers given in parameters.
Definition GridDataOutput_impl.hpp:76
long writeOffsetsCells(Integer *offsets_inout, long max_size=0) const
Write the offsets values - directly to the pointer given in parameter 1.
Definition GridDataOutput_impl.hpp:396
long writeConnectivity(Integer *connectivity_inout, ConnectivityVertexOrder whichOrder, long max_size=0) const
Write the connectivity array - directly to the pointer given in parameter 1 Reorders the indices as s...
Definition GridDataOutput_impl.hpp:311
int ncells_
Current partition grid information.
Definition GridDataOutput.hpp:364
bool polyhedralCellPresent() const
Checks for cells that have polyhedral type within the current partition of cells.
Definition GridDataOutput_impl.hpp:45
long writeCellTypes(Integer *types_inout, long max_size=0) const
Write the cell types values - directly to the pointer given in parameter 1.
Definition GridDataOutput_impl.hpp:445
long writeGridPoints_SOA(T *xyz_inout, long max_size=0) const
Write the positions of vertices - directly to the pointers given in parameters as Structure of Arrays...
Definition GridDataOutput_impl.hpp:229