Skip to content
Snippets Groups Projects
Commit 2d2d8f31 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

add simple const access to various members

[[Imported from SVN: r6800]]
parent bdb627f9
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,27 @@ class RodContinuumComplex ...@@ -29,6 +29,27 @@ class RodContinuumComplex
}; };
public: public:
/** \brief Simple const access to rod grids */
const Dune::shared_ptr<RodGrid> rodGrid(const std::string& name) const
{
assert(rodGrids_.find(name) != rodGrids_.end());
return rodGrids_.find(name)->second;
}
/** \brief Simple const access to continuum grids */
const Dune::shared_ptr<ContinuumGrid> continuumGrid(const std::string& name) const
{
assert(continuumGrids_.find(name) != continuumGrids_.end());
return continuumGrids_.find(name)->second;
}
/** \brief Simple const access to couplings */
const Coupling& coupling(const std::pair<std::string,std::string>& name) const
{
assert(couplings_.find(name) != couplings_.end());
return couplings_.find(name)->second;
}
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
// Data concerning the individual rod problems // Data concerning the individual rod problems
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment