Skip to content
Snippets Groups Projects
Commit c63b8e63 authored by Reuther, Sebastian's avatar Reuther, Sebastian
Browse files

added one more constructor in CouplingBaseProblem.h to couple more than 5 (or 10) base problems

parent 4e3b2026
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,17 @@ public:
if (prob3_) baseProblems.push_back(prob3_);
if (prob4_) baseProblems.push_back(prob4_);
}
CouplingBaseProblem(std::string name_,
std::vector<BaseProblemType*> probs_)
: CProblemStat(name_), name(name_)
{
dow = Global::getGeo(WORLD);
TEST_EXIT(probs_.size()>1)("You should have at least one base problem!\n");
for ( int i = 0 ; i < probs_.size() ; ++i )
if ( probs_[i] )
baseProblems.push_back( probs_[i] );
}
~CouplingBaseProblem() { }
......
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