diff --git a/src/electrophysiology/assemble/IElphyAssemble.cpp b/src/electrophysiology/assemble/IElphyAssemble.cpp index 2a737e4bf37873871697934e63f26947e0482c13..14654da70ad6f0e1be694dde202e5462ebd1efd2 100644 --- a/src/electrophysiology/assemble/IElphyAssemble.cpp +++ b/src/electrophysiology/assemble/IElphyAssemble.cpp @@ -304,20 +304,22 @@ void IElphyAssemble::PrintIteration(const Vector &u) const { } void IElphyAssemble::PlotIteration(const Vector &u) const { - if (Step() == 0) - PlotExcitation(); - PlotStatic({{"V", u}}, Step(), "V"); - if(IsFinished()) - PlotActivation(); + if (Step() == 0) + PlotExcitation(); + PlotStatic({{"V", u}}, Step(), "V"); + if (IsFinished()) + PlotActivation(); } void IElphyAssemble::PlotIteration(const Vectors &elphyValues, int step) const { - step = step<0? Step() : step; + step = step < 0 ? Step() : step; if (step == 0) PlotExcitation(); - PlotStatic({{"Potential", elphyValues[0]}, {"Stretch", elphyValues[1]}, {"Iota4", elphyValues[2]}}, step, "V"); - if(IsFinished()) + PlotStatic({{"Potential", elphyValues[0]}, + {"Stretch", elphyValues[1]}, + {"Iota4", elphyValues[2]}}, step, "V"); + if (IsFinished()) PlotActivation(); }