Skip to content
Snippets Groups Projects
Commit e5c44a83 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'feature/gridmanager-const-grid' into 'master'

[gridmanager] Add const overload for grid

See merge request !3635
parents a25737fe 44883f96
No related branches found
No related tags found
1 merge request!3635[gridmanager] Add const overload for grid
Pipeline #35397 passed
+5
...@@ -80,6 +80,17 @@ public: ...@@ -80,6 +80,17 @@ public:
return *gridPtr(); return *gridPtr();
} }
/*!
* \brief Returns a const reference to the grid.
*/
const Grid& grid() const
{
if(enableDgfGridPointer_)
return *dgfGridPtr();
else
return *gridPtr();
}
/*! /*!
* \brief Call loadBalance() function of the grid. * \brief Call loadBalance() function of the grid.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment