Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 10 additions & 30 deletions include/mesh/mesh_refinement.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,31 +499,13 @@ class MeshRefinement : public ParallelObject
*/
bool make_flags_parallel_consistent ();

/**
* \returns The value of the \p _enforce_mismatch_limit_prior_to_refinement flag,
* false by default.
*
* \deprecated Use enforce_mismatch_limit_prior_to_refinement() instead.
*/
#ifdef LIBMESH_ENABLE_DEPRECATED
bool get_enforce_mismatch_limit_prior_to_refinement();
#endif

/**
* Set _enforce_mismatch_limit_prior_to_refinement option.
* Defaults to false.
*
* \deprecated Use enforce_mismatch_limit_prior_to_refinement() instead.
*/
#ifdef LIBMESH_ENABLE_DEPRECATED
void set_enforce_mismatch_limit_prior_to_refinement(bool enforce);
#endif

/**
* Get/set the _enforce_mismatch_limit_prior_to_refinement flag.
* The default value for this flag is false.
*/
bool & enforce_mismatch_limit_prior_to_refinement();
bool enforce_mismatch_limit_prior_to_refinement() const;
void enforce_mismatch_limit_prior_to_refinement(bool enforce);

private:

Expand Down Expand Up @@ -969,23 +951,21 @@ inline bool & MeshRefinement::allow_unrefined_patches()
return _allow_unrefined_patches;
}

#ifdef LIBMESH_ENABLE_DEPRECATED
inline bool MeshRefinement::get_enforce_mismatch_limit_prior_to_refinement()
inline bool & MeshRefinement::enforce_mismatch_limit_prior_to_refinement()
{
libmesh_deprecated();
return enforce_mismatch_limit_prior_to_refinement();
return _enforce_mismatch_limit_prior_to_refinement;
}

inline void MeshRefinement::set_enforce_mismatch_limit_prior_to_refinement(bool enforce)
inline bool
MeshRefinement::enforce_mismatch_limit_prior_to_refinement() const
{
libmesh_deprecated();
enforce_mismatch_limit_prior_to_refinement() = enforce;
return _enforce_mismatch_limit_prior_to_refinement;
}
#endif

inline bool & MeshRefinement::enforce_mismatch_limit_prior_to_refinement()
inline void
MeshRefinement::enforce_mismatch_limit_prior_to_refinement(bool enforce)
{
return _enforce_mismatch_limit_prior_to_refinement;
_enforce_mismatch_limit_prior_to_refinement = enforce;
}


Expand Down