changed: do all assembleTracerEquations_() in one call

by looping over the tracer batches. this trades memory
for runtime efficiency as we cannot reuse one matrix
but rather need to have one matrix for each phase
This commit is contained in:
Arne Morten Kvarving
2022-10-06 10:16:56 +02:00
parent 2b2b0b085c
commit 83b7aec1f1
3 changed files with 61 additions and 29 deletions

View File

@@ -103,7 +103,7 @@ protected:
std::vector<int> tracerPhaseIdx_;
std::vector<Dune::BlockVector<Dune::FieldVector<Scalar, 1>>> tracerConcentration_;
TracerMatrix *tracerMatrix_;
std::unique_ptr<TracerMatrix> tracerMatrix_;
TracerVector tracerResidual_;
std::vector<int> cartToGlobal_;
std::vector<Dune::BlockVector<Dune::FieldVector<Scalar, 1>>> storageOfTimeIndex1_;