diff --git a/opm/simulators/linalg/ISTLSolverBda.hpp b/opm/simulators/linalg/ISTLSolverBda.hpp index 98a03b58c..a3d5761c9 100644 --- a/opm/simulators/linalg/ISTLSolverBda.hpp +++ b/opm/simulators/linalg/ISTLSolverBda.hpp @@ -41,54 +41,54 @@ namespace detail { template struct BdaSolverInfo { - using WellContribFunc = std::function&)>; - using Bridge = BdaBridge; + using WellContribFunc = std::function&)>; + using Bridge = BdaBridge; - BdaSolverInfo(const std::string& accelerator_mode, - const int linear_solver_verbosity, - const int maxit, - const double tolerance, - const int platformID, - const int deviceID, - const bool opencl_ilu_parallel, - const std::string& linsolver); + BdaSolverInfo(const std::string& accelerator_mode, + const int linear_solver_verbosity, + const int maxit, + const double tolerance, + const int platformID, + const int deviceID, + const bool opencl_ilu_parallel, + const std::string& linsolver); - ~BdaSolverInfo(); + ~BdaSolverInfo(); - template - void prepare(const Grid& grid, - const Dune::CartesianIndexMapper& cartMapper, - const std::vector& wellsForConn, - const std::vector& cellPartition, - const std::size_t nonzeroes, - const bool useWellConn); + template + void prepare(const Grid& grid, + const Dune::CartesianIndexMapper& cartMapper, + const std::vector& wellsForConn, + const std::vector& cellPartition, + const std::size_t nonzeroes, + const bool useWellConn); - bool apply(Vector& rhs, - const bool useWellConn, - WellContribFunc getContribs, - const int rank, - Matrix& matrix, - Vector& x, - Dune::InverseOperatorResult& result); + bool apply(Vector& rhs, + const bool useWellConn, + WellContribFunc getContribs, + const int rank, + Matrix& matrix, + Vector& x, + Dune::InverseOperatorResult& result); - bool gpuActive(); + bool gpuActive(); - int numJacobiBlocks_ = 0; + int numJacobiBlocks_ = 0; private: - /// Create sparsity pattern for block-Jacobi matrix based on partitioning of grid. - /// Do not initialize the values, that is done in copyMatToBlockJac() - template - void blockJacobiAdjacency(const Grid& grid, - const std::vector& cell_part, - std::size_t nonzeroes); + /// Create sparsity pattern for block-Jacobi matrix based on partitioning of grid. + /// Do not initialize the values, that is done in copyMatToBlockJac() + template + void blockJacobiAdjacency(const Grid& grid, + const std::vector& cell_part, + std::size_t nonzeroes); - void copyMatToBlockJac(const Matrix& mat, Matrix& blockJac); + void copyMatToBlockJac(const Matrix& mat, Matrix& blockJac); - std::unique_ptr bridge_; - std::string accelerator_mode_; - std::unique_ptr blockJacobiForGPUILU0_; - std::vector> wellConnectionsGraph_; + std::unique_ptr bridge_; + std::string accelerator_mode_; + std::unique_ptr blockJacobiForGPUILU0_; + std::vector> wellConnectionsGraph_; }; }