IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 51766e1f authored by Remy Prechelt's avatar Remy Prechelt Committed by ralfulrich
Browse files

Remove Init() from NullModel.

parent c2f7e961
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!224Remove Init() methods from Framework and Processes
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
using namespace corsika; using namespace corsika;
namespace corsika::process::null_model { namespace corsika::process::null_model {
void NullModel::Init() {}
NullModel::NullModel(units::si::LengthType maxStepLength) NullModel::NullModel(units::si::LengthType maxStepLength)
: fMaxStepLength(maxStepLength) {} : fMaxStepLength(maxStepLength) {}
......
...@@ -20,8 +20,6 @@ namespace corsika::process::null_model { ...@@ -20,8 +20,6 @@ namespace corsika::process::null_model {
NullModel(corsika::units::si::LengthType maxStepLength = NullModel(corsika::units::si::LengthType maxStepLength =
corsika::units::si::meter * std::numeric_limits<double>::infinity()); corsika::units::si::meter * std::numeric_limits<double>::infinity());
void Init();
template <typename Particle, typename Track> template <typename Particle, typename Track>
process::EProcessReturn DoContinuous(Particle&, Track&) const; process::EProcessReturn DoContinuous(Particle&, Track&) const;
......
...@@ -44,7 +44,6 @@ TEST_CASE("NullModel", "[processes]") { ...@@ -44,7 +44,6 @@ TEST_CASE("NullModel", "[processes]") {
NullModel model(10_m); NullModel model(10_m);
model.Init();
[[maybe_unused]] const process::EProcessReturn ret = [[maybe_unused]] const process::EProcessReturn ret =
model.DoContinuous(particle, track); model.DoContinuous(particle, track);
LengthType const length = model.MaxStepLength(particle, track); LengthType const length = model.MaxStepLength(particle, track);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment