Skip to content

Commit

Permalink
break loop over time steps for max_time (#986)
Browse files Browse the repository at this point in the history
* break loop over time steps for max_time

* fix EOL
  • Loading branch information
SeverinDiederichs authored Jun 23, 2023
1 parent 14581bc commit 7849852
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Hipace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ Hipace::Evolve ()
WriteDiagnostics(step, it, OpenPMDWriterCallType::fields);
Notify(step, it);
}
// exit loop over time steps, if max time is exceeded
if (m_physical_time > m_max_time) break;

m_multi_beam.InSituWriteToFile(step, m_physical_time, m_3D_geom[0]);
m_multi_plasma.InSituWriteToFile(step, m_physical_time, m_3D_geom[0]);
Expand Down

0 comments on commit 7849852

Please sign in to comment.