-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove hp::DoFHandler::get_fe() #9734
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Removed: The deprecated method hp::DoFHandler::get_fe() has been removed. Please use | ||
hp::DoFHandler::get_fe_collection() instead. | ||
<br> | ||
(Peter Munch, 2020/03/26) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -286,7 +286,7 @@ namespace VectorTools | |
const ComponentMask & component_mask) | ||
{ | ||
Assert(component_mask.represents_n_components( | ||
dof_handler.get_fe().n_components()), | ||
dof_handler.get_fe_collection().n_components()), | ||
ExcMessage( | ||
"The number of components in the mask has to be either " | ||
"zero or equal to the number of components in the finite " | ||
|
@@ -296,7 +296,7 @@ namespace VectorTools | |
ExcDimensionMismatch(vec.size(), dof_handler.n_dofs())); | ||
|
||
Assert(component_mask.n_selected_components( | ||
dof_handler.get_fe().n_components()) > 0, | ||
dof_handler.get_fe_collection().n_components()) > 0, | ||
ComponentMask::ExcNoComponentSelected()); | ||
|
||
// | ||
|
@@ -427,9 +427,10 @@ namespace VectorTools | |
dof_values.resize(n_dofs); | ||
|
||
// Get all function values: | ||
Assert(n_components == function(cell)->n_components, | ||
ExcDimensionMismatch(dof_handler.get_fe().n_components(), | ||
function(cell)->n_components)); | ||
Assert( | ||
n_components == function(cell)->n_components, | ||
ExcDimensionMismatch(dof_handler.get_fe_collection().n_components(), | ||
function(cell)->n_components)); | ||
function(cell)->vector_value_list(generalized_support_points, | ||
function_values); | ||
|
||
|
@@ -553,8 +554,9 @@ namespace VectorTools | |
VectorType & vec, | ||
const ComponentMask & component_mask) | ||
{ | ||
Assert(dof_handler.get_fe().n_components() == function.n_components, | ||
ExcDimensionMismatch(dof_handler.get_fe().n_components(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't quite understand why you need to duplicate this function into one for the hp and one for the non-hp case. Can't you just replace this call to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! |
||
Assert(dof_handler.get_fe_collection().n_components() == | ||
function.n_components, | ||
ExcDimensionMismatch(dof_handler.get_fe_collection().n_components(), | ||
function.n_components)); | ||
|
||
// Create a small lambda capture wrapping function and call the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you actually need to introduce your new two
internal::interpolate(...)
functions? BothDoFHandler
andhp::DoFHandler
have the member functionget_fe_collection()
.I guess if you just replace
dof_handler.get_fe()
withdof_handler.get_fe_collection()
in this assertion, you should be fine!