Skip to content
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

Merged
merged 2 commits into from May 17, 2017

Conversation

tjhei
Copy link
Member

@tjhei tjhei commented May 16, 2017

This does not change functionality but allows me to use the function in other .cc files later.

@tjhei tjhei force-pushed the move_extract_component_subset branch from 67d7aad to 709b6b9 Compare May 16, 2017 15:08
Copy link
Contributor

@bangerth bangerth left a 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?

// 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))
Copy link
Contributor

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

/**
* This is an internal deal.II function stolen from dof_tools.cc
*/
template <int dim, int spacedim>
Copy link
Contributor

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?


template <int dim>
IndexSet extract_component_subset(const DoFHandler<dim> &dof_handler,
const ComponentMask &component_mask)
Copy link
Contributor

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?

@tjhei tjhei force-pushed the move_extract_component_subset branch 2 times, most recently from bb95b3c to b35629a Compare May 16, 2017 15:43
@tjhei tjhei changed the title move extract_component_subset move and rename extract_component_subset May 16, 2017
@tjhei
Copy link
Member Author

tjhei commented May 16, 2017

addressed your comments

@bangerth
Copy link
Contributor

OK.

@tjhei tjhei force-pushed the move_extract_component_subset branch from 17c5354 to eafb313 Compare May 16, 2017 18:23
@gassmoeller gassmoeller merged commit 0fb89a8 into geodynamics:master May 17, 2017
@tjhei tjhei deleted the move_extract_component_subset branch May 17, 2017 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants