Skip to content

Commit

Permalink
DifferentialOperators field 'location' can't be a reference type.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchapman committed Nov 26, 2023
1 parent 12ead24 commit 3c7cc70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/bout/differential_operators.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class DifferentialOperators {
using FieldMetric = MetricTensor::FieldMetric;

public:
DifferentialOperators(Mesh* mesh, FieldMetric intShiftTorsion, const CELL_LOC& location,
DifferentialOperators(Mesh* mesh, FieldMetric intShiftTorsion, const CELL_LOC location,
FieldMetric& dx, FieldMetric& dy, FieldMetric& dz);

// DifferentialOperators(DifferentialOperators operators,
Expand Down Expand Up @@ -124,7 +124,7 @@ public:
private:
Mesh* mesh;
FieldMetric intShiftTorsion;
const CELL_LOC& location;
const CELL_LOC location;
FieldMetric& dx;
FieldMetric& dy;
FieldMetric& dz;
Expand Down
2 changes: 1 addition & 1 deletion src/mesh/differential_operators.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <bout/derivs.hxx>

DifferentialOperators::DifferentialOperators(Mesh* mesh, FieldMetric intShiftTorsion,
const CELL_LOC& location, FieldMetric& dx,
const CELL_LOC location, FieldMetric& dx,
FieldMetric& dy, FieldMetric& dz)
: mesh(mesh), intShiftTorsion(intShiftTorsion), location(location), dx(dx), dy(dy),
dz(dz) {}
Expand Down

0 comments on commit 3c7cc70

Please sign in to comment.