Commit 207aba03 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

worked on problem

parent 41e898fe
......@@ -3,12 +3,20 @@
template<>
Tensor StochasticLaplace1DT<Vector>::Permeability(const cell &c) const {
mout << *this->fineSample << endl;
mout << this->fineSample->size() << endl;
return this->fineSample->operator()(c(), 0) * One;
if (fineSample && !coarseSample)
return this->fineSample->operator()(c(), 0) * One;
else if (coarseSample && !fineSample)
return this->coarseSample->operator()(c(), 0) * One;
else
Exit("Check generators")
}
template<>
Tensor StochasticLaplace2DT<Vector>::Permeability(const cell &c) const {
return this->fineSample->operator()(c(), 0) * One;
if (fineSample && !coarseSample)
return this->fineSample->operator()(c(), 0) * One;
else if (coarseSample && !fineSample)
return this->coarseSample->operator()(c(), 0) * One;
else
Exit("Check generators")
}
\ No newline at end of file
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