https://mooseframework.inl.gov
HierarchicalGridPartitioner.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 // MOOSE includes
13 #include "MooseEnum.h"
14 #include "MoosePartitioner.h"
15 
16 class MooseMesh;
17 
24 {
25 public:
28 
30 
31  virtual std::unique_ptr<Partitioner> clone() const override;
32 
33 protected:
34  virtual void _do_partition(MeshBase & mesh, const unsigned int n) override;
35 
38 
40  unsigned int _nx_nodes;
42  unsigned int _ny_nodes;
44  unsigned int _nz_nodes;
46  unsigned int _nx_procs;
48  unsigned int _ny_procs;
50  unsigned int _nz_procs;
51 };
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
unsigned int _ny_nodes
Number of nodes in the Y direction.
Partitions a mesh into sub-partitions for each computational node then into partitions within that no...
MeshBase & mesh
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
unsigned int _nz_nodes
Number of nodes in the Z direction.
MooseMesh & _mesh
Mesh to partition.
unsigned int _ny_procs
Number of processors on each node in the Y direction.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:88
static InputParameters validParams()
unsigned int _nz_procs
Number of processors on each node in the Z direction.
virtual std::unique_ptr< Partitioner > clone() const override
Base class for MOOSE partitioner.
unsigned int _nx_procs
Number of processors on each node in the X direction.
unsigned int _nx_nodes
Number of nodes in the X direction.
HierarchicalGridPartitioner(const InputParameters &params)