Commit 8ace3ea4 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

communicator construction

parent 7c678ccb
......@@ -86,12 +86,7 @@ namespace AMDiS
ParallelGlobalBasis(std::string const& name, Grid const& grid, Args&&... args)
: Super(FWD(args)...)
, Observer<event::adapt>(grid)
, comm_([&]() {
// need to call initialize, before it can be passed to the constructor of
// a communicator.
Super::preBasis().initializeIndices();
return CommunicationCreator<Comm>::create(static_cast<Super const&>(*this), name + "->solver");
}())
, comm_(CommunicationCreator<Comm>::create(static_cast<Super const&>(*this), name + "->solver"))
{}
/// Construct this global basis with empty name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment