Skip to content

Commit ecb8523

Browse files
committed
Update public accesses of old_dof_object dumb pointer
TODO: this variable should probably be behind an accessor. Perhaps we can deprecate its public access in a relatively seamless way (see MeshBase::get_boundary_info()), although technically we are already breaking backwards compatibility with this change.
1 parent 9174204 commit ecb8523

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

include/systems/generic_projector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ class OldSolutionValue : public OldSolutionBase<Output, point_output>
887887
// zero.
888888
if (nc != 0)
889889
{
890-
const DofObject *old_dof_object = old_elem.old_dof_object;
890+
const DofObject *old_dof_object = old_elem.old_dof_object.get();
891891
libmesh_assert(old_dof_object);
892892
libmesh_assert_greater(elem.n_systems(), sys_num);
893893

src/base/dof_map.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,7 @@ void DofMap::old_dof_indices (const Elem & elem,
22602260
std::vector<dof_id_type> & di,
22612261
const unsigned int vn) const
22622262
{
2263-
const DofObject * old_obj = elem.node_ref(n).old_dof_object;
2263+
const DofObject * old_obj = elem.node_ref(n).old_dof_object.get();
22642264
libmesh_assert(old_obj);
22652265
this->_node_dof_indices(elem, n, *old_obj, di, vn);
22662266
}
@@ -2687,7 +2687,7 @@ void DofMap::old_dof_indices (const Elem * const elem,
26872687
for (unsigned int n=0; n<n_nodes; n++)
26882688
{
26892689
const Node * node = nodes_ptr[n];
2690-
const DofObject * old_dof_obj = node->old_dof_object;
2690+
const DofObject * old_dof_obj = node->old_dof_object.get();
26912691
libmesh_assert(old_dof_obj);
26922692

26932693
// There is a potential problem with h refinement. Imagine a
@@ -2765,7 +2765,7 @@ void DofMap::old_dof_indices (const Elem * const elem,
27652765

27662766
if (nc != 0)
27672767
{
2768-
const DofObject * old_dof_obj = elem->old_dof_object;
2768+
const DofObject * old_dof_obj = elem->old_dof_object.get();
27692769
libmesh_assert(old_dof_obj);
27702770

27712771
const unsigned int n_comp =

src/systems/system_projection.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ void BuildProjectionList::operator()(const ConstElemRange & range)
13791379

13801380
for (auto & node : elem->node_ref_range())
13811381
{
1382-
const DofObject * old_dofs = node.old_dof_object;
1382+
const DofObject * old_dofs = node.old_dof_object.get();
13831383

13841384
if (old_dofs)
13851385
{

0 commit comments

Comments
 (0)