Skip to content
Snippets Groups Projects
Commit ce49653e authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing petsc solver safe guard in case of no PETSC

parent 408a41dd
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,10 @@
#ifndef OPENFPM_NUMERICS_SRC_SOLVERS_PETSC_SOLVER_AMG_REPORT_HPP_
#define OPENFPM_NUMERICS_SRC_SOLVERS_PETSC_SOLVER_AMG_REPORT_HPP_
#include "config.h"
#ifdef HAVE_PETSC
#include <fstream>
#include "Solvers/petsc_solver.hpp"
......@@ -585,5 +589,6 @@ public:
}
};
#endif
#endif /* OPENFPM_NUMERICS_SRC_SOLVERS_PETSC_SOLVER_AMG_REPORT_HPP_ */
......@@ -8,6 +8,8 @@
#ifndef OPENFPM_NUMERICS_SRC_SOLVERS_PETSC_SOLVER_UNIT_TESTS_CPP_
#define OPENFPM_NUMERICS_SRC_SOLVERS_PETSC_SOLVER_UNIT_TESTS_CPP_
#ifdef HAVE_PETSC
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
......@@ -132,4 +134,6 @@ BOOST_AUTO_TEST_CASE( laplacian_3D_int_zero_mg )
BOOST_AUTO_TEST_SUITE_END()
#endif
#endif /* OPENFPM_NUMERICS_SRC_SOLVERS_PETSC_SOLVER_UNIT_TESTS_CPP_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment