Skip to content

Commit

Permalink
test-solver: Remove BoutInitialise and BoutFinalise
Browse files Browse the repository at this point in the history
BoutFinalise throws an exception when ADIOS is enabled but
BoutInitialise is not called.

BoutInitialise throws an exception if the "data" directory
doesn't exist.

For this test neither BoutInitialise nor BoutFinalise are needed,
so removed.
  • Loading branch information
bendudson committed Dec 15, 2023
1 parent 77eb501 commit af6610f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/integrated/test-solver/test_solver.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class TestSolver : public PhysicsModel {
};

int main(int argc, char** argv) {
BoutInitialise(argc, argv);

// The expected answer to the integral of \f$\int_0^{\pi/2}\sin^2(t)\f$
constexpr BoutReal expected = PI / 4.;
Expand Down Expand Up @@ -147,8 +146,6 @@ int main(int argc, char** argv) {
}
}

BoutFinalise(false);

if (!errors.empty()) {
output_test << "\n => Some failed tests\n\n";
for (auto& error : errors) {
Expand Down

0 comments on commit af6610f

Please sign in to comment.