Skip to content

Commit

Permalink
Fixing const-related compilation problems
Browse files Browse the repository at this point in the history
  • Loading branch information
hombit committed Nov 26, 2024
1 parent 2e36197 commit eaa0c65
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 606 deletions.
4 changes: 4 additions & 0 deletions cpp/include/freddi_evolution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class FreddiEvolution: public FreddiState {
protected:
virtual void truncateOuterRadius();
virtual void truncateInnerRadius() {}
protected:
// To be used inside truncateOuterRadius only
// It is not const because it changes R_dotM0_before_shift
bool check_ring_is_cold(const int i); // check ring hot (false) or cold (true)
protected:
virtual vecd wunction(const vecd& h, const vecd& F, size_t first, size_t last) const;
public:
Expand Down
1 change: 0 additions & 1 deletion cpp/include/freddi_state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ class FreddiState {
double R_vis_struct (double r, double z2r_at_r) const;
double v_cooling_front(double r, double sigma_at_r) const;
double v_visc(double r, double z2r) const;
int check_ring_is_cold(const int i) const; // check ring hot (1) or cold (0)
int Tirr_exceed_critical(const int i) const; // check Tirr > Tcrit (1) or not (0)
};

Expand Down
Loading

0 comments on commit eaa0c65

Please sign in to comment.