Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dorie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
dorie
dorie
Commits
909727c7
Commit
909727c7
authored
Jun 21, 2018
by
Lukas Riedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make FlowParameters::bind work with entities of refined grids
parent
4a0af80d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
dune/dorie/solver/param_interface.hh
dune/dorie/solver/param_interface.hh
+8
-3
No files found.
dune/dorie/solver/param_interface.hh
View file @
909727c7
...
...
@@ -85,7 +85,7 @@ private:
void
verify_cache
()
const
{
if
(
not
std
::
get
<
std
::
shared_ptr
<
Parameterization
>>
(
_cache
.
second
))
{
DUNE_THROW
(
Dune
::
Exception
,
"No parameterization cached."
DUNE_THROW
(
Dune
::
Exception
,
"No parameterization cached.
"
<<
"Call 'bind' before accessing the parameterization."
);
}
}
...
...
@@ -123,8 +123,12 @@ public:
/** \param entity Grid entity (codim 0) to bind to
*/
template
<
class
Entity
>
void
bind
(
const
Entity
&
entity
)
const
void
bind
(
Entity
entity
)
const
{
// retrieve index of top father element of chosen entity
while
(
entity
.
hasFather
())
{
entity
=
entity
.
father
();
}
const
auto
index
=
_mapper
.
index
(
entity
);
// done if index is already cached
...
...
@@ -134,9 +138,10 @@ public:
return
;
}
// otherwise find the index in the stored map and cache the values
const
auto
it
=
_param
.
find
(
index
);
if
(
it
==
_param
.
end
())
{
DUNE_THROW
(
Dune
::
Exception
,
"Could not retrieve parameterization"
DUNE_THROW
(
Dune
::
Exception
,
"Could not retrieve parameterization
"
<<
"for entity "
<<
index
);
}
_cache
=
*
it
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment