Merge pull request #4193 from hnil/amgcl_fix

- fix compilation of amgcl bindings in bda by not doing anything for …
This commit is contained in:
Bård Skaflestad 2023-01-16 11:23:39 +01:00 committed by GitHub
commit 11c0e085f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,6 +374,23 @@ SolverStatus amgclSolverBackend<block_size>::solve_system(std::shared_ptr<Blocke
return SolverStatus::BDA_SOLVER_SUCCESS;
}
template <>
SolverStatus amgclSolverBackend<1>::solve_system(std::shared_ptr<BlockedMatrix> matrix,
double *b,
[[maybe_unused]] std::shared_ptr<BlockedMatrix> jacMatrix,
[[maybe_unused]] WellContributions& wellContribs,
BdaResult &res)
{
OPM_THROW(std::logic_error, "amgclSolverBackend not implemented for sz 1");
// if (initialized == false) {
// initialize(matrix->Nb, matrix->nnzbs);
// convert_sparsity_pattern(matrix->rowPointers, matrix->colIndices);
// }
// convert_data(matrix->nnzValues, matrix->rowPointers);
// solve_system(b, res);
// return SolverStatus::BDA_SOLVER_SUCCESS;
}
#define INSTANTIATE_BDA_FUNCTIONS(n) \
template amgclSolverBackend<n>::amgclSolverBackend(int, int, double, unsigned int, unsigned int); \