Commit 961ac979 authored by incardon's avatar incardon

Numerics tuned for GPU version

parent 33821d70
...@@ -61,9 +61,11 @@ install(FILES Vector/Vector_eigen.hpp ...@@ -61,9 +61,11 @@ install(FILES Vector/Vector_eigen.hpp
Vector/Vector_petsc.hpp Vector/Vector_petsc.hpp
Vector/Vector_util.hpp Vector/Vector_util.hpp
Vector/Vector.hpp Vector/Vector.hpp
DESTINATION openfpm_numerics/Vector ) DESTINATION openfpm_numerics/include/Vector )
install(FILES Solvers/umfpack_solver.hpp Solvers/petsc_solver.hpp install(FILES Solvers/umfpack_solver.hpp
Solvers/petsc_solver.hpp
Solvers/petsc_solver_AMG_report.hpp
DESTINATION openfpm_numerics/include/Solvers ) DESTINATION openfpm_numerics/include/Solvers )
install(FILES util/petsc_util.hpp install(FILES util/petsc_util.hpp
......
...@@ -98,7 +98,7 @@ class petsc_AMG_report ...@@ -98,7 +98,7 @@ class petsc_AMG_report
double time1 = tm_solve.getwct(); double time1 = tm_solve.getwct();
double time2 = tm_solve2.getwct(); double time2 = tm_solve2.getwct();
Vcluster & v_cl = create_vcluster(); Vcluster<> & v_cl = create_vcluster();
v_cl.max(time1); v_cl.max(time1);
v_cl.max(time2); v_cl.max(time2);
v_cl.execute(); v_cl.execute();
...@@ -123,7 +123,7 @@ class petsc_AMG_report ...@@ -123,7 +123,7 @@ class petsc_AMG_report
*/ */
void test_coarsener(SparseMatrix<double,int,PETSC_BASE> & A, const Vector<double,PETSC_BASE> & b) void test_coarsener(SparseMatrix<double,int,PETSC_BASE> & A, const Vector<double,PETSC_BASE> & b)
{ {
Vcluster & v_cl = create_vcluster(); Vcluster<> & v_cl = create_vcluster();
petsc_solver<double> pts; petsc_solver<double> pts;
...@@ -351,7 +351,7 @@ class petsc_AMG_report ...@@ -351,7 +351,7 @@ class petsc_AMG_report
const Vector<double,PETSC_BASE> & b, const Vector<double,PETSC_BASE> & b,
openfpm::vector<std::string> & coarsener_to_test) openfpm::vector<std::string> & coarsener_to_test)
{ {
Vcluster & v_cl = create_vcluster(); Vcluster<> & v_cl = create_vcluster();
petsc_solver<double> pts; petsc_solver<double> pts;
...@@ -406,7 +406,7 @@ class petsc_AMG_report ...@@ -406,7 +406,7 @@ class petsc_AMG_report
openfpm::vector<size_t> & ids_ts, openfpm::vector<size_t> & ids_ts,
openfpm::vector<std::string> & coarsener_to_test) openfpm::vector<std::string> & coarsener_to_test)
{ {
Vcluster & v_cl = create_vcluster(); Vcluster<> & v_cl = create_vcluster();
petsc_solver<double> pts; petsc_solver<double> pts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment