GEOS
SemistructuredPartitioner.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2018-2019 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2019 The Board of Trustees of the Leland Stanford Junior University
7  * Copyright (c) 2018-2019 Total, S.A
8  * Copyright (c) 2019- GEOS/GEOSX Contributors
9  * All right reserved
10  *
11  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
12  * ------------------------------------------------------------------------------------------------------------
13  */
14 
19 #ifndef GEOS_LINEARALGEBRA_MULTISCALE_SEMISTRUCTUREDPARTITIONER_HPP_
20 #define GEOS_LINEARALGEBRA_MULTISCALE_SEMISTRUCTUREDPARTITIONER_HPP_
21 
23 
24 namespace geos
25 {
26 namespace multiscale
27 {
28 
33 {
34 public:
35 
37 
38  virtual localIndex generate( multiscale::MeshLevel const & mesh,
39  arrayView1d< localIndex > const & partition ) override;
40 
41  virtual void setCoarseData( multiscale::MeshLevel & coarseMesh ) const override;
42 
43 private:
44 
45  integer m_numPart[2]{};
46 
47 };
48 
49 } // namespace multiscale
50 } // namespace geos
51 
52 #endif //GEOS_LINEARALGEBRA_MULTISCALE_SEMISTRUCTUREDPARTITIONER_HPP_
Multiscale mesh level.
Definition: MeshLevel.hpp:47
Base class for partitioner implementations.
PartitionerBase(LinearSolverParameters::Multiscale::Coarsening params)
Constructor.
Semi-structured partitioner that combines layer slicing with a graph partition of the plane.
virtual void setCoarseData(multiscale::MeshLevel &coarseMesh) const override
Store auxiliary partitioning-related data on the coarse mesh.
virtual localIndex generate(multiscale::MeshLevel const &mesh, arrayView1d< localIndex > const &partition) override
Generate a partitioning of fine-scale mesh cells.
ArrayView< T, 1 > arrayView1d
Alias for 1D array view.
Definition: DataTypes.hpp:179
GEOS_LOCALINDEX_TYPE localIndex
Local index type (for indexing objects within an MPI partition).
Definition: DataTypes.hpp:84
int integer
Signed integer type.
Definition: DataTypes.hpp:81