Skip to content

Commit

Permalink
MyTRIMMesh class updates
Browse files Browse the repository at this point in the history
  • Loading branch information
permcody committed Jan 30, 2019
1 parent 1a02994 commit 441265d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/mesh/MyTRIMMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MyTRIMMesh : public GeneratedMesh

// No copy assignment
MooseMesh & operator=(const MooseMesh & other_mesh) = delete;
MooseMesh & clone() const override;
virtual std::unique_ptr<MooseMesh> safeClone() const override;

/// obtain a specialized PointLocator for the current mesh
std::unique_ptr<PointLocatorBase> getPointLocator() const override;
Expand Down
8 changes: 4 additions & 4 deletions src/mesh/MyTRIMMesh.C
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MyTRIMMesh::MyTRIMMesh(const InputParameters & parameters)
_min_corner(_xmin, _ymin, _zmin),
_max_corner(_xmax, _ymax, _zmax)
{
_cell_count.resize(dimension());
_cell_count.resize(_dim);

if (isParamValid("elem_type"))
{
Expand Down Expand Up @@ -67,10 +67,10 @@ MyTRIMMesh::MyTRIMMesh(const MyTRIMMesh & other_mesh)
{
}

MooseMesh &
MyTRIMMesh::clone() const
std::unique_ptr<MooseMesh>
MyTRIMMesh::safeClone() const
{
return *(new MyTRIMMesh(*this));
return libmesh_make_unique<MyTRIMMesh>(*this);
}

std::unique_ptr<PointLocatorBase>
Expand Down

0 comments on commit 441265d

Please sign in to comment.