Skip to content

Commit

Permalink
Fix Trilinos nullspace
Browse files Browse the repository at this point in the history
  • Loading branch information
xDarkLemon committed Aug 12, 2024
1 parent 8ab068d commit f920ea4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions src/polysolve/linear/Solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

#include <memory>

#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <vector>

#define POLYSOLVE_DELETE_MOVE_COPY(Base) \
Base(Base &&) = delete; \
Expand Down
10 changes: 0 additions & 10 deletions src/polysolve/linear/TrilinosSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ namespace polysolve::linear
TrilinosSolver::TrilinosSolver()
{
precond_num_ = 0;
// #ifdef HAVE_MPI
int done_already;
MPI_Initialized(&done_already);
if (!done_already)
Expand All @@ -25,9 +24,6 @@ namespace polysolve::linear
MPI_Init(&argc, &argvv);
CommPtr = new Epetra_MpiComm(MPI_COMM_WORLD);
}
// #else
// CommPtr=new Epetra_SerialComm;
// #endif
}

////////////////////////////////////////////////////////////////
Expand All @@ -50,10 +46,6 @@ namespace polysolve::linear
{
conv_tol_ = params["Trilinos"]["tolerance"];
}
if (params["Trilinos"].contains("is_nullspace"))
{
is_nullspace_ = params["Trilinos"]["is_nullspace"];
}
}
}

Expand Down Expand Up @@ -289,9 +281,7 @@ namespace polysolve::linear
delete A;
delete rowMap;
delete MLPrec;
// #ifdef HAVE_MPI
MPI_Finalize() ;
// #endif
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/polysolve/linear/TrilinosSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ namespace polysolve::linear
double conv_tol_ = 1e-8;
size_t iterations_;
double residual_error_;
bool is_nullspace_ = true;
Eigen::MatrixXd reduced_vertices;
ML_Epetra::MultiLevelPreconditioner* MLPrec=NULL;
Epetra_Map *rowMap=NULL;

Expand Down

0 comments on commit f920ea4

Please sign in to comment.