www.mooseframework.org
PETScDMDAMesh.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "MooseMesh.h"
13 
22 class PETScDMDAMesh : public MooseMesh
23 {
24 public:
26 
28  PETScDMDAMesh(const PETScDMDAMesh & /* other_mesh */) = default;
29 
30  // No copy
31  PETScDMDAMesh & operator=(const PETScDMDAMesh & other_mesh) = delete;
32 
33  virtual std::unique_ptr<MooseMesh> safeClone() const override;
34 
35  virtual void buildMesh() override;
36 
37 protected:
38  DM _dmda;
39 };
static InputParameters validParams()
Definition: PETScDMDAMesh.C:33
PETScDMDAMesh & operator=(const PETScDMDAMesh &other_mesh)=delete
virtual std::unique_ptr< MooseMesh > safeClone() const override
Definition: PETScDMDAMesh.C:58
Generate a parallel (distributed) mesh from PETSc DMDA.
Definition: PETScDMDAMesh.h:22
const InputParameters & parameters() const
virtual void buildMesh() override
PETScDMDAMesh(const InputParameters &parameters)
Definition: PETScDMDAMesh.C:45