Skip to content

Commit

Permalink
change data types from double to amrex::Real, and thus we can use sin…
Browse files Browse the repository at this point in the history
…gle precision for the hypre IJ interface (AMReX-Codes#2896)

Co-authored-by: yzeng <[email protected]>
  • Loading branch information
ruohai0925 and yzeng authored Aug 4, 2022
1 parent 9ed4f59 commit ed23627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Src/Extern/HYPRE/AMReX_HypreIJIface.H
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ private:
HypreIntType (*m_precondSolvePtr)(
HYPRE_Solver, HYPRE_ParCSRMatrix, HYPRE_ParVector, HYPRE_ParVector){nullptr};

HypreIntType (*m_solverSetTolPtr)(HYPRE_Solver, double){nullptr};
HypreIntType (*m_solverSetAbsTolPtr)(HYPRE_Solver, double){nullptr};
HypreIntType (*m_solverSetTolPtr)(HYPRE_Solver, amrex::Real){nullptr};
HypreIntType (*m_solverSetAbsTolPtr)(HYPRE_Solver, amrex::Real){nullptr};
HypreIntType (*m_solverSetMaxIterPtr)(HYPRE_Solver, HypreIntType){nullptr};
HypreIntType (*m_solverNumItersPtr)(HYPRE_Solver, HypreIntType*){nullptr};
HypreIntType (*m_solverFinalResidualNormPtr)(HYPRE_Solver, double*){nullptr};
HypreIntType (*m_solverFinalResidualNormPtr)(HYPRE_Solver, amrex::Real*){nullptr};

HypreIntType m_ilower{0};
HypreIntType m_iupper{0};
Expand Down
2 changes: 1 addition & 1 deletion Src/Extern/HYPRE/AMReX_HypreIJIface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void HypreIJIface::boomeramg_precond_configure (const std::string& prefix)

if (hpp.pp.contains("bamg_non_galerkin_level_tols")) {
std::vector<int> levels;
std::vector<double> tols;
std::vector<amrex::Real> tols;
hpp.pp.getarr("bamg_non_galerkin_level_levels", levels);
hpp.pp.getarr("bamg_non_galerkin_level_tols", tols);

Expand Down

0 comments on commit ed23627

Please sign in to comment.