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

new method that sets the entire rod to a single value

[[Imported from SVN: r6751]]
parent 1e290e5a
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,18 @@ template <int dim>
}
}
/** \brief Make a rod by setting each entry to the same value
\param[out] rod The new rod
*/
template <int spaceDim>
void create(std::vector<RigidBodyMotion<spaceDim> >& rod,
const RigidBodyMotion<spaceDim,double>& value)
{
rod.resize(gridView_.size(1));
std::fill(rod.begin(), rod.end(), value);
}
private:
const GridView& gridView_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment