Skip to content

Commit

Permalink
Fix mix up between the two shear factor variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchapman committed Nov 19, 2024
1 parent cb9c39e commit 43c0aee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion include/bout/tokamak_coordinates_factory.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public:
if (include_curvature) {
b0xcv_m.z += ShearFactor_m * b0xcv_m.x;
}
ShearFactor_m = 0.0;
}

// if (ShiftXderivs and not!mesh->IncIntShear) {
Expand Down
2 changes: 1 addition & 1 deletion tests/integrated/test-drift-instability/2fluid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class TwoFluid : public PhysicsModel {

protected:
int init(bool UNUSED(restarting)) override {
Field2D I; // Shear factor

output.write("Solving 6-variable 2-fluid equations\n");

Expand Down Expand Up @@ -129,6 +128,7 @@ class TwoFluid : public PhysicsModel {
bool noshear = false;
const bool ShiftXderivs = (*globalOptions)["ShiftXderivs"].withDefault(false);
if (ShiftXderivs) {
ShearFactor = 0.0; // I disappears from metric
noshear = true;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/integrated/test-interchange-instability/2fluid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class Interchange : public PhysicsModel {

protected:
int init(bool UNUSED(restarting)) override {
Field2D I; // Shear factor

output << "Solving 2-variable equations\n";

Expand Down Expand Up @@ -76,6 +75,7 @@ class Interchange : public PhysicsModel {
bool noshear = false;
const bool ShiftXderivs = (*globalOptions)["ShiftXderivs"].withDefault(false);
if (ShiftXderivs) {
ShearFactor = 0.0; // I disappears from metric
noshear = true;
}

Expand Down

0 comments on commit 43c0aee

Please sign in to comment.