mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ISTLSolverBda: fix indent
This commit is contained in:
parent
ad1d862426
commit
0e537a8ae3
@ -41,54 +41,54 @@ namespace detail {
|
|||||||
template<class Matrix, class Vector>
|
template<class Matrix, class Vector>
|
||||||
struct BdaSolverInfo
|
struct BdaSolverInfo
|
||||||
{
|
{
|
||||||
using WellContribFunc = std::function<void(WellContributions<double>&)>;
|
using WellContribFunc = std::function<void(WellContributions<double>&)>;
|
||||||
using Bridge = BdaBridge<Matrix,Vector,Matrix::block_type::rows>;
|
using Bridge = BdaBridge<Matrix,Vector,Matrix::block_type::rows>;
|
||||||
|
|
||||||
BdaSolverInfo(const std::string& accelerator_mode,
|
BdaSolverInfo(const std::string& accelerator_mode,
|
||||||
const int linear_solver_verbosity,
|
const int linear_solver_verbosity,
|
||||||
const int maxit,
|
const int maxit,
|
||||||
const double tolerance,
|
const double tolerance,
|
||||||
const int platformID,
|
const int platformID,
|
||||||
const int deviceID,
|
const int deviceID,
|
||||||
const bool opencl_ilu_parallel,
|
const bool opencl_ilu_parallel,
|
||||||
const std::string& linsolver);
|
const std::string& linsolver);
|
||||||
|
|
||||||
~BdaSolverInfo();
|
~BdaSolverInfo();
|
||||||
|
|
||||||
template<class Grid>
|
template<class Grid>
|
||||||
void prepare(const Grid& grid,
|
void prepare(const Grid& grid,
|
||||||
const Dune::CartesianIndexMapper<Grid>& cartMapper,
|
const Dune::CartesianIndexMapper<Grid>& cartMapper,
|
||||||
const std::vector<Well>& wellsForConn,
|
const std::vector<Well>& wellsForConn,
|
||||||
const std::vector<int>& cellPartition,
|
const std::vector<int>& cellPartition,
|
||||||
const std::size_t nonzeroes,
|
const std::size_t nonzeroes,
|
||||||
const bool useWellConn);
|
const bool useWellConn);
|
||||||
|
|
||||||
bool apply(Vector& rhs,
|
bool apply(Vector& rhs,
|
||||||
const bool useWellConn,
|
const bool useWellConn,
|
||||||
WellContribFunc getContribs,
|
WellContribFunc getContribs,
|
||||||
const int rank,
|
const int rank,
|
||||||
Matrix& matrix,
|
Matrix& matrix,
|
||||||
Vector& x,
|
Vector& x,
|
||||||
Dune::InverseOperatorResult& result);
|
Dune::InverseOperatorResult& result);
|
||||||
|
|
||||||
bool gpuActive();
|
bool gpuActive();
|
||||||
|
|
||||||
int numJacobiBlocks_ = 0;
|
int numJacobiBlocks_ = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Create sparsity pattern for block-Jacobi matrix based on partitioning of grid.
|
/// Create sparsity pattern for block-Jacobi matrix based on partitioning of grid.
|
||||||
/// Do not initialize the values, that is done in copyMatToBlockJac()
|
/// Do not initialize the values, that is done in copyMatToBlockJac()
|
||||||
template<class Grid>
|
template<class Grid>
|
||||||
void blockJacobiAdjacency(const Grid& grid,
|
void blockJacobiAdjacency(const Grid& grid,
|
||||||
const std::vector<int>& cell_part,
|
const std::vector<int>& cell_part,
|
||||||
std::size_t nonzeroes);
|
std::size_t nonzeroes);
|
||||||
|
|
||||||
void copyMatToBlockJac(const Matrix& mat, Matrix& blockJac);
|
void copyMatToBlockJac(const Matrix& mat, Matrix& blockJac);
|
||||||
|
|
||||||
std::unique_ptr<Bridge> bridge_;
|
std::unique_ptr<Bridge> bridge_;
|
||||||
std::string accelerator_mode_;
|
std::string accelerator_mode_;
|
||||||
std::unique_ptr<Matrix> blockJacobiForGPUILU0_;
|
std::unique_ptr<Matrix> blockJacobiForGPUILU0_;
|
||||||
std::vector<std::set<int>> wellConnectionsGraph_;
|
std::vector<std::set<int>> wellConnectionsGraph_;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user