https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GridPartitioner.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
18namespace libMesh
19{
20class SubdomainPartitioner;
21}
22
27{
28public:
29 GridPartitioner(const InputParameters & params);
30 virtual ~GridPartitioner();
31
33
34 virtual std::unique_ptr<Partitioner> clone() const override;
35
36protected:
37 virtual void _do_partition(MeshBase & mesh, const unsigned int n) override;
38
40};
Partitions a mesh using a regular grid.
virtual ~GridPartitioner()
virtual std::unique_ptr< Partitioner > clone() const override
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
static InputParameters validParams()
MooseMesh & _mesh
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
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...