16 #include "libmesh/elem.h" 25 params.
addParam<
unsigned int>(
"seed", 0,
"Seed for the random generator");
40 std::unique_ptr<Partitioner>
50 for (
auto & elem_ptr :
mesh.active_element_ptr_range())
virtual ~RandomPartitioner()
static InputParameters validParams()
RandomPartitioner(const InputParameters ¶ms)
Factory & getFactory()
Retrieve a writable reference to the Factory associated with this App.
static InputParameters validParams()
MooseApp & _app
The MOOSE application this is associated with.
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
const unsigned int _num_procs
Total number of processors.
virtual std::unique_ptr< Partitioner > clone() const override
static void seed(unsigned int seed)
The method seeds the random number generator.
Base class for MOOSE partitioner.
static Real rand()
This method returns the next random number (Real format) from the generator.
registerMooseObject("MooseApp", RandomPartitioner)
std::unique_ptr< T > clone(const T &object)
Clones the object object.
Partitions a mesh randomly using element ids as the seed for the generator.