Skip to content

Commit

Permalink
Use bout::globals::mesh in test-snb
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed May 29, 2020
1 parent 9cdab6c commit e74fd7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integrated/test-snb/test_snb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ bool IsFieldClose(const T& field, const U& reference,

int main(int argc, char** argv) {
using bout::HeatFluxSNB;
using bout::globals::mesh;

BoutInitialise(argc, argv);

Expand All @@ -76,7 +77,7 @@ int main(int argc, char** argv) {
auto Te = factory.create3D("5 + cos(y)");
auto Ne = factory.create3D("1e18 * (1 + 0.5*sin(y))");

Ne.getMesh()->communicate(Te, Ne);
mesh->communicate(Te, Ne);

HeatFluxSNB snb;

Expand All @@ -96,7 +97,7 @@ int main(int argc, char** argv) {
auto Te = factory.create3D("1.5");
auto Ne = factory.create3D("1e18 * (1 + 0.5*sin(y))");

Ne.getMesh()->communicate(Te, Ne);
mesh->communicate(Te, Ne);

HeatFluxSNB snb;

Expand All @@ -115,7 +116,7 @@ int main(int argc, char** argv) {
FieldFactory factory;
auto Te = factory.create3D("1 + 0.01*sin(y)");
auto Ne = factory.create3D("1e20 * (1 + 0.5*sin(y))");
Ne.getMesh()->communicate(Te, Ne);
mesh->communicate(Te, Ne);

HeatFluxSNB snb;

Expand All @@ -133,7 +134,7 @@ int main(int argc, char** argv) {
FieldFactory factory;
auto Te = factory.create3D("1e3 + 0.01*sin(y)");
auto Ne = factory.create3D("1e19 * (1 + 0.5*sin(y))");
Ne.getMesh()->communicate(Te, Ne);
mesh->communicate(Te, Ne);

HeatFluxSNB snb;

Expand All @@ -152,7 +153,6 @@ int main(int argc, char** argv) {

FieldFactory factory;
auto Te = factory.create3D("10 + 0.01*sin(y)");
auto* mesh = Te.getMesh();
mesh->communicate(Te);

HeatFluxSNB snb;
Expand Down

0 comments on commit e74fd7d

Please sign in to comment.