-
Notifications
You must be signed in to change notification settings - Fork 56
Update deal.II context with fe capabilities in FEValues fashion #996
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
Open
marksidoro
wants to merge
5
commits into
4C-multiphysics:main
Choose a base branch
from
marksidoro:update-deal-context-with-fe-capabilities
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0916187
Update already existing functionality
marksidoro 511523c
Add mapping class with isogeometric mapping
marksidoro 8a41bb6
Add FEValues Wrapper usable with the 4C layout
marksidoro cb31978
Add helper function to create a sparsity pattern
marksidoro ea52227
Update tests and add new ones
marksidoro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // This file is part of 4C multiphysics licensed under the | ||
| // GNU Lesser General Public License v3.0 or later. | ||
| // | ||
| // See the LICENSE.md file in the top-level for license information. | ||
| // | ||
| // SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
|
||
| #include "4C_deal_ii_context.hpp" | ||
|
|
||
| FOUR_C_NAMESPACE_OPEN | ||
|
|
||
|
|
||
| namespace DealiiWrappers | ||
| { | ||
|
|
||
| namespace Internal | ||
| { | ||
| void get_dof_indices_with_local_reorder(const Core::FE::Discretization& discretization, | ||
| const Core::Elements::Element* element, const std::span<const int>& local_reorder, | ||
| std::vector<dealii::types::global_dof_index>& dof_indices) | ||
| { | ||
| Core::Elements::LocationArray location_array(discretization.num_dof_sets()); | ||
| element->location_vector(discretization, location_array); | ||
| dof_indices.resize(location_array[0].lm_.size()); | ||
| for (unsigned int i = 0; i < location_array[0].lm_.size(); ++i) | ||
| { | ||
| dof_indices[i] = location_array[0].lm_[local_reorder[i]]; | ||
| } | ||
| } | ||
|
|
||
| void get_dof_indices(const Core::FE::Discretization& discretization, | ||
| const Core::Elements::Element* element, | ||
| std::vector<dealii::types::global_dof_index>& dof_indices) | ||
| { | ||
| Core::Elements::LocationArray location_array(discretization.num_dof_sets()); | ||
| element->location_vector(discretization, location_array); | ||
| dof_indices.resize(location_array[0].lm_.size()); | ||
| std::copy(location_array[0].lm_.begin(), location_array[0].lm_.end(), dof_indices.begin()); | ||
| } | ||
| } // namespace Internal | ||
| } // namespace DealiiWrappers | ||
|
|
||
|
|
||
| FOUR_C_NAMESPACE_CLOSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.