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
move and rename extract_component_subset #1709
move and rename extract_component_subset #1709
Conversation
67d7aad
to
709b6b9
Compare
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.
Wouldn't the function fit better into namespace Utilities
?
source/simulator/introspection.cc
Outdated
// is simple and we can just associate it with | ||
// what system_to_component_index gives us | ||
for (unsigned int i=0; i<fe.dofs_per_cell; ++i) | ||
if (fe.is_primitive(i)) |
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.
are we ever using non-primitive elements? we could avoid a lot of complexity if we assume that
source/simulator/introspection.cc
Outdated
/** | ||
* This is an internal deal.II function stolen from dof_tools.cc | ||
*/ | ||
template <int dim, int spacedim> |
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.
can you add the deal.II documentation of the function here?
source/simulator/introspection.cc
Outdated
|
||
template <int dim> | ||
IndexSet extract_component_subset(const DoFHandler<dim> &dof_handler, | ||
const ComponentMask &component_mask) |
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.
I don't like the name. Can we call it extract_dofs_for_component_subset()
or something?
bb95b3c
to
b35629a
Compare
addressed your comments |
OK. |
b35629a
to
17c5354
Compare
17c5354
to
eafb313
Compare
This does not change functionality but allows me to use the function in other .cc files later.