From 50a35cf7f3c9ef6c20a910fbfdffc53ce4515e8c Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 2 Mar 2022 15:31:02 -0600 Subject: [PATCH] Make ParticleData::alive() a const method --- include/openmc/particle_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openmc/particle_data.h b/include/openmc/particle_data.h index e32451f3a..ddf072517 100644 --- a/include/openmc/particle_data.h +++ b/include/openmc/particle_data.h @@ -363,7 +363,7 @@ public: const double& time() const { return time_; } double& time_last() { return time_last_; } const double& time_last() const { return time_last_; } - bool alive() { return wgt_ != 0.0; } + bool alive() const { return wgt_ != 0.0; } Position& r_last_current() { return r_last_current_; } const Position& r_last_current() const { return r_last_current_; }