Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
6229c8c7
Commit
6229c8c7
authored
Mar 25, 2021
by
Timo Koch
Browse files
[gridmanager] Add interface to query for existence of grid data
parent
c7192d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/io/grid/gridmanager_base.hh
View file @
6229c8c7
...
...
@@ -118,6 +118,10 @@ public:
}
}
/*!
* \brief Get an owning pointer to grid data associated with the grid
* \note Throws if no grid data is available
*/
std
::
shared_ptr
<
GridData
>
getGridData
()
const
{
if
(
!
gridData_
)
...
...
@@ -125,7 +129,12 @@ public:
return
gridData_
;
}
/*!
* \brief Check whether there is data associated with the grid
*/
bool
hasGridData
()
const
{
return
static_cast
<
bool
>
(
gridData_
);
}
protected:
...
...
Write
Preview
Supports
Markdown
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