https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
16class MooseMesh;
17
24{
25public:
28
30
31 virtual std::unique_ptr<Partitioner> clone() const override;
32
33protected:
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};
Partitions a mesh into sub-partitions for each computational node then into partitions within that no...
unsigned int _nx_nodes
Number of nodes in the X direction.
MooseMesh & _mesh
Mesh to partition.
unsigned int _ny_procs
Number of processors on each node in the Y direction.
virtual std::unique_ptr< Partitioner > clone() const override
unsigned int _nx_procs
Number of processors on each node in the X direction.
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
unsigned int _nz_procs
Number of processors on each node in the Z direction.
unsigned int _ny_nodes
Number of nodes in the Y direction.
unsigned int _nz_nodes
Number of nodes in the Z direction.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition MooseMesh.h:95
Base class for MOOSE partitioner.
MeshBase & mesh