From 8fcf4fede220de9a003d6aa4bc071e86b41954ff Mon Sep 17 00:00:00 2001 From: Cheng Li <69489965+chengcli@users.noreply.github.com> Date: Thu, 19 Oct 2023 18:47:48 -0400 Subject: [PATCH] Fix AirParcel data initialization (#95) --- src/air_parcel.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/air_parcel.hpp b/src/air_parcel.hpp index 33814526..0e0023a1 100644 --- a/src/air_parcel.hpp +++ b/src/air_parcel.hpp @@ -24,6 +24,14 @@ class AirParcel { friend std::ostream &operator<<(std::ostream &os, Type const &type); friend std::ostream &operator<<(std::ostream &os, AirParcel const &var); + protected: + // data holder + std::array data_; + + // type + Type mytype_; + + public: //! data pointers //! hydro data Real *const w; @@ -113,12 +121,6 @@ class AirParcel { void massFractionToMoleConcentration(); void moleConcentrationToMassFraction(); - - // data holder - std::array data_; - - // type - Type mytype_; }; #endif // SRC_AIR_PARCEL_HPP_