https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SingleRankPartitioner.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 "MoosePartitioner.h"
14
19{
20public:
22
24
25 virtual std::unique_ptr<Partitioner> clone() const override;
26
27protected:
28 virtual void _do_partition(MeshBase & mesh, const unsigned int n) override;
29
31 const processor_id_type _rank;
32};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Base class for MOOSE partitioner.
Partitions a mesh to one MPI rank.
static InputParameters validParams()
const processor_id_type _rank
Rank to assign every element to.
virtual std::unique_ptr< Partitioner > clone() const override
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
MeshBase & mesh