Merge pull request #5591 from multitalentloes/fix_gpubicgstab_name

update the name of the solver to fit with gpuistl
This commit is contained in:
Arne Morten Kvarving 2024-09-10 15:26:18 +02:00 committed by GitHub
commit 15c111f942
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ namespace Dune
}
#endif
#if HAVE_CUDA
} else if (solver_type == "cubicgstab") {
} else if (solver_type == "gpubicgstab") {
linsolver_.reset(new Opm::gpuistl::SolverAdapter<Operator, Dune::BiCGSTABSolver, VectorType>(
*linearoperator_for_solver_,
*scalarproduct_,

View File

@ -31,7 +31,7 @@ setDevice(int mpiRank, [[maybe_unused]] int numberOfMpiRanks)
[[maybe_unused]] auto cuError = cudaGetDeviceCount(&deviceCount);
if (deviceCount <= 0) {
// If they have CUDA enabled (ie. using a component that needs CUDA, eg. cubicgstab or CUILU0), this will fail
// If they have CUDA enabled (ie. using a component that needs CUDA, eg. gpubicgstab or CUILU0), this will fail
// later down the line. At this point in the simulator, we can not determine if CUDA is enabled, so we can only
// issue a warning.
OpmLog::warning("Could not find any CUDA devices.");