Skip to content

Commit

Permalink
Fix AirParcel data initialization (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengcli authored Oct 19, 2023
1 parent 8f8ac47 commit 8fcf4fe
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/air_parcel.hpp
Original file line number Diff line number Diff line change
@@ -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<Real, Size> 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<Real, Size> data_;

// type
Type mytype_;
};

#endif // SRC_AIR_PARCEL_HPP_

0 comments on commit 8fcf4fe

Please sign in to comment.