Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
agnumpde
dune-fufem
Commits
0d5f8e79
Commit
0d5f8e79
authored
6 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Add readBoundaryPatch for arbitrary patches and deprecate the levelview one
parent
75894c4f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fufem/readbitfield.hh
+13
-0
13 additions, 0 deletions
dune/fufem/readbitfield.hh
with
13 additions
and
0 deletions
dune/fufem/readbitfield.hh
+
13
−
0
View file @
0d5f8e79
...
@@ -67,6 +67,7 @@ inline void readBitField(Dune::BitSetVector<ncomp>& field, int size, const std::
...
@@ -67,6 +67,7 @@ inline void readBitField(Dune::BitSetVector<ncomp>& field, int size, const std::
//! Read level boundarypatch from an AmiraMesh file. */
//! Read level boundarypatch from an AmiraMesh file. */
template
<
class
GridType
>
template
<
class
GridType
>
DUNE_DEPRECATED_MSG
(
"This method is deprecated. Please use the version with GridView as template."
)
void
readBoundaryPatch
(
BoundaryPatch
<
typename
GridType
::
LevelGridView
>&
patch
,
void
readBoundaryPatch
(
BoundaryPatch
<
typename
GridType
::
LevelGridView
>&
patch
,
const
std
::
string
&
filename
)
{
const
std
::
string
&
filename
)
{
/** \todo Not very memory efficient! */
/** \todo Not very memory efficient! */
...
@@ -75,4 +76,16 @@ void readBoundaryPatch(BoundaryPatch<typename GridType::LevelGridView>& patch,
...
@@ -75,4 +76,16 @@ void readBoundaryPatch(BoundaryPatch<typename GridType::LevelGridView>& patch,
patch
.
setup
(
patch
.
gridView
(),
vertices
);
patch
.
setup
(
patch
.
gridView
(),
vertices
);
}
}
//! Read level boundarypatch from an AmiraMesh file. */
template
<
class
GridView
>
void
readBoundaryPatch
(
BoundaryPatch
<
GridView
>&
patch
,
const
std
::
string
&
filename
)
{
/** \todo Not very memory efficient! */
Dune
::
BitSetVector
<
1
>
vertices
(
patch
.
gridView
().
size
(
GridView
::
dimension
),
false
);
readBitField
(
vertices
,
vertices
.
size
(),
filename
);
patch
.
setup
(
patch
.
gridView
(),
vertices
);
}
#endif
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment