Skip to content

Commit 113493f

Browse files
authored
Merge pull request #132 from adrn/template-quadls
A few tweaks to build exp with clang++ on mac via gala build
2 parents 5612d2c + 90ecfe9 commit 113493f

4 files changed

Lines changed: 21 additions & 11 deletions

File tree

expui/BiorthBasis.H

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <BiorthBess.H>
1515
#include <BasisFactory.H>
1616
#include <BiorthCube.H>
17+
#include <sltableMP2.H>
1718
#include <SLGridMP2.H>
1819
#include <YamlCheck.H>
1920
#include <BiorthCyl.H>

exputil/SLGridMP2.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,11 @@ SLGridSph::~SLGridSph()
696696

697697
// Members
698698

699+
double SLGridSph::eigenvalue(int l, int n)
700+
{
701+
return table.get()[l].ev[n];
702+
}
703+
699704
double SLGridSph::r_to_xi(double r)
700705
{
701706
double ret;
@@ -2313,6 +2318,10 @@ SLGridSlab::~SLGridSlab()
23132318
// Nothing
23142319
}
23152320

2321+
double SLGridSlab::eigenvalue(int kx, int ky, int n) {
2322+
return table.get()[kx].get()[ky].ev[n];
2323+
}
2324+
23162325
// Coordinate transformation member functions for tanh map
23172326
double SLGridSlab::TanhMap::z_to_xi (double z) { return tanh(z/H); }
23182327
double SLGridSlab::TanhMap::xi_to_z (double xi) { return H*atanh(xi); }

include/PseudoAccel.H

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ public:
6363
if (queue.size()==Nsize) {
6464

6565
if (CENTER) {
66-
accel <<
67-
2.0*std::get<0>(QuadLS(t, x).coefs()),
68-
2.0*std::get<0>(QuadLS(t, y).coefs()),
69-
2.0*std::get<0>(QuadLS(t, z).coefs());
66+
accel <<
67+
2.0*std::get<0>(QuadLS<std::vector<double>>(t, x).coefs()),
68+
2.0*std::get<0>(QuadLS<std::vector<double>>(t, y).coefs()),
69+
2.0*std::get<0>(QuadLS<std::vector<double>>(t, z).coefs());
7070
}
7171

7272
if (AXIS) {
73-
auto [a, b, c] = QuadLS(t, u).coefs();
74-
auto [d, e, f] = QuadLS(t, v).coefs();
75-
auto [g, h, i] = QuadLS(t, w).coefs();
76-
73+
auto [a, b, c] = QuadLS<std::vector<double>>(t, u).coefs();
74+
auto [d, e, f] = QuadLS<std::vector<double>>(t, v).coefs();
75+
auto [g, h, i] = QuadLS<std::vector<double>>(t, w).coefs();
76+
7777
double T = t.back(); // Last eval time
7878

7979
Eigen::Vector3d n, dndt, d2ndt2;

include/SLGridMP2.H

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public:
129129
// Members
130130

131131
//! Eigenvalue for index and harmonic order l
132-
double eigenvalue(int l, int n) {return table[l].ev[n];}
132+
double eigenvalue(int l, int n);
133133

134134
//! Map radial coordinate to nondimensional coordinate
135135
double r_to_xi(double r);
@@ -396,12 +396,12 @@ public:
396396
//! Destructor
397397
~SLGridSlab();
398398

399-
399+
400400
//@{
401401
//! Members
402402

403403
//! Get n^th eigenvalue for given wave number indices
404-
double eigenvalue(int kx, int ky, int n) {return table[kx][ky].ev[n];}
404+
double eigenvalue(int kx, int ky, int n);
405405

406406
//! Map from vertical coordinate to dimensionless coordinate
407407
double z_to_xi(double z) { return mM->z_to_xi(z); }

0 commit comments

Comments
 (0)