18 PetscFunctionBeginUser;
22 ierr = PetscFinalized(&finalized); CHKERRV(ierr);
23 if (finalized)
return;
30 PetscFunctionBeginUser;
32 std::vector<std::vector<type::SingleBoundary>>().swap(
bds);
38 PetscFunctionReturn(0);
44 PetscFunctionBeginUser;
46 boundary = std::make_shared<BoundarySimple>(mesh, node);
48 PetscFunctionReturn(0);
boundary::BoundaryBase, type::Boundary, and factory function.
Definition of boundary::BoundarySimple.
PetscMPIInt mpiSize
Size of MPI communicator.
MPI_Comm comm
MPI communicator.
type::Mesh mesh
A shared_ptr to underlying mesh.
virtual ~BoundaryBase()
Default destructor.
virtual PetscErrorCode destroy()
Manually destroy data.
std::vector< std::vector< type::SingleBoundary > > bds
A 2D vector holding all single boundaries.
PetscMPIInt mpiRank
The rank of this process.
PetscErrorCode createBoundary(const type::Mesh &mesh, const YAML::Node &node, type::Boundary &boundary)
Create a Boundary object.
std::shared_ptr< boundary::BoundaryBase > Boundary
Type definition of petibm::type::Boundary.
std::shared_ptr< mesh::MeshBase > Mesh
Type definition of Mesh.
A toolbox for building flow solvers.