Commit 46549311 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

minor changes

parent 5c6ccd4b
......@@ -74,12 +74,11 @@ void MonteCarloTransport::solveTransport(int l,
Vector &solution) {
assemble->logger->StartMethodMsg();
Solver solver;
Preconditioner *BJ = GetPC("PointBlockJacobi", "");
Preconditioner *BJ = GetPC("PointBlockJacobi");
Solver IM(BJ);
DGTimeIntegrator timeIntegrator(solver, solver, solver, IM);
TimeSeries timeSeries = getTimeSeries(fineLevel);
assemble->resetTAssemble();
assemble->PrintInfo(solution);
timeIntegrator(*assemble, timeSeries, solution);
cost = solution.pSize() * assemble->getStep();
......
......@@ -41,7 +41,8 @@ public:
config.get("endTime", endTime);
transfer = new MatrixTransfer(*assemble);
transfer->Construct((solMatrixGraphs)[l - pLevel], (solMatrixGraphs)[l - pLevel - 1]);
if (meshes->dim() != 1)
transfer->Construct((solMatrixGraphs)[l - pLevel], (solMatrixGraphs)[l - pLevel - 1]);
}
~MonteCarloTransport() {
......
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