Skip to content

Commit

Permalink
[lohner] corrected bug on input/output gates
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Mar 23, 2022
1 parent 59e8e3e commit 044535f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/contractors/dyn/codac_CtcLohner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ void CtcLohner::contract(codac::TubeVector &tube, TimePropag t_propa) {
}
lo.integrate(1, h);
lo.contractStep(output_gate);
tube.set(slice & lo.getGlobalEnclosure(), i);
for (int j = 0; j < dim; ++j)
tube[j].slice(i)->set_envelope(slice[j] & lo.getGlobalEnclosure()[j]);
}
tube.set(output_gate & lo.getLocalEnclosure(), tube.tdomain().ub());
}
Expand All @@ -231,7 +232,8 @@ void CtcLohner::contract(codac::TubeVector &tube, TimePropag t_propa) {
}
lo2.integrate(1, h);
lo2.contractStep(output_gate);
tube.set(slice & lo2.getGlobalEnclosure(), i); // tube update
for (int j = 0; j < dim; ++j)
tube[j].slice(i)->set_envelope(slice[j] & lo2.getGlobalEnclosure()[j]);
}
tube.set(output_gate & lo2.getLocalEnclosure(), tube.tdomain().lb());
}
Expand Down

0 comments on commit 044535f

Please sign in to comment.