Skip to content

Commit

Permalink
Decrease of the clang chatter; add 24.04 explicitly to the CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Oct 15, 2024
1 parent 60ffa3d commit 7d9cf63
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
exp:
strategy:
matrix:
os: [ubuntu-latest, ubuntu-22.04]
os: [ubuntu-24.04, ubuntu-22.04]
cc: [gcc, clang]
cxx: [g++, clang++]
include:
Expand Down
6 changes: 3 additions & 3 deletions include/DiskWithHalo.H
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public:
dur = dur1 + dur2;
}

double get_mass(const double x1, const double x2, const double x3)
double get_mass(const double x1, const double x2, const double x3) override
{ return get_mass(sqrt(x1*x1 + x2*x2 + x3*x3)); }

double get_density(const double x1, const double x2, const double x3)
double get_density(const double x1, const double x2, const double x3) override
{ return get_density(sqrt(x1*x1 + x2*x2 + x3*x3)); }

double get_pot(const double x1, const double x2, const double x3)
double get_pot(const double x1, const double x2, const double x3) override
{ return get_pot(sqrt(x1*x1 + x2*x2 + x3*x3)); }

// Addiional member functions
Expand Down
3 changes: 2 additions & 1 deletion include/EXPini.H
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ cxxopts::ParseResult LoadConfig(cxxopts::Options& options,
{
YAML::Node conf = YAML::LoadFile(config);

int count = conf.size()*2+1, cnt = 1;
const int count = conf.size()*2+1;
char* data[count];
int cnt = 1;

data[0] = new char [11];
strcpy(data[0], "LoadConfig"); // Emulate the caller name
Expand Down
3 changes: 3 additions & 0 deletions include/SLGridMP2.H
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ private:
//! Constructor
CoordMap(double H) : H(H) {}

//! Destructor
virtual ~CoordMap() {}

//! Convert from vertical to mapped coordinate
virtual double z_to_xi (double z) = 0;

Expand Down
6 changes: 3 additions & 3 deletions include/massmodel.H
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ public:
virtual double get_dpot2(const double) = 0;
virtual void get_pot_dpot(const double, double&, double&) = 0;

double get_mass(const double x1, const double x2, const double x3)
double get_mass(const double x1, const double x2, const double x3) override
{ return get_mass(sqrt(x1*x1 + x2*x2 + x3*x3)); }

double get_density(const double x1, const double x2, const double x3)
double get_density(const double x1, const double x2, const double x3) override
{ return get_density(sqrt(x1*x1 + x2*x2 + x3*x3)); }

double get_pot(const double x1, const double x2, const double x3)
double get_pot(const double x1, const double x2, const double x3) override
{ return get_pot(sqrt(x1*x1 + x2*x2 + x3*x3)); }
//@}

Expand Down

0 comments on commit 7d9cf63

Please sign in to comment.