Skip to content

Commit ae4254d

Browse files
authored
Merge pull request #54 from CEED/artv3/nvcc-build-fix
build fixes for nvcc
2 parents 9f46138 + 24bd0a6 commit ae4254d

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

remhos.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,8 @@ AdvectionOperator::AdvectionOperator(const Array<int> &offsets,
12961296
ho_solver(hos), lo_solver(los), fct_solver(fct), mono_solver(mos) { }
12971297

12981298
void check_violation(const Vector &u_new,
1299-
const Vector &u_min, const Vector &u_max,
1300-
string info, double tol, const Array<bool> *active_dofs)
1299+
const Vector &u_min, const Vector &u_max,
1300+
string info, double tol, const Array<bool> *active_dofs)
13011301
{
13021302
const int size = u_new.Size();
13031303
for (int i = 0; i < size; i++)
@@ -1315,8 +1315,8 @@ void check_violation(const Vector &u_new,
13151315
}
13161316

13171317
void check_violation(const Vector &u, double dt, const Vector &du_new,
1318-
const Vector &u_min, const Vector &u_max,
1319-
string info, double tol, const Array<bool> *active_dofs)
1318+
const Vector &u_min, const Vector &u_max,
1319+
string info, double tol, const Array<bool> *active_dofs)
13201320
{
13211321
const int size = u.Size();
13221322
for (int i = 0; i < size; i++)

remhos_solvers.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ class RKIDPSolver : public IDPODESolver
105105
// This function does not depend on the Operator f in any way.
106106
void ConstructD();
107107

108-
/// Adds only DOFs that have mask = true.
109-
void AddMasked(const Array<bool> &mask, real_t b,
110-
const Vector &vb, Vector &va);
111-
112108
void UpdateMask(const Vector &x, const Vector &dx, real_t dt,
113109
Array<bool> &mask);
114110

@@ -118,6 +114,11 @@ class RKIDPSolver : public IDPODESolver
118114

119115
void UseMask(bool mask_on) { use_masks = mask_on; }
120116

117+
/// Adds only DOFs that have mask = true.
118+
/// Must be public due to NVCC
119+
void AddMasked(const Array<bool> &mask, real_t b,
120+
const Vector &vb, Vector &va);
121+
121122
void Init(LimitedTimeDependentOperator &f) override;
122123
void Step(Vector &x, double &t, double &dt) override;
123124
};

0 commit comments

Comments
 (0)