aboutsummaryrefslogtreecommitdiff
path: root/Source/Initialization/WarpXInitData.cpp
diff options
context:
space:
mode:
authorGravatar aveksler1 <124003120+aveksler1@users.noreply.github.com> 2023-08-24 00:07:04 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-24 00:07:04 -0700
commitbe5a3b94383f2cf0139f1e09b3542b0a9c0ee44d (patch)
tree3cc2c366392bcfd913dd6ba58a4a7d6059bde070 /Source/Initialization/WarpXInitData.cpp
parent43d2ac7b54546c87d2cb540df7a2b3cb57592b84 (diff)
downloadWarpX-be5a3b94383f2cf0139f1e09b3542b0a9c0ee44d.tar.gz
WarpX-be5a3b94383f2cf0139f1e09b3542b0a9c0ee44d.tar.zst
WarpX-be5a3b94383f2cf0139f1e09b3542b0a9c0ee44d.zip
add error message if cuda 11.6 is used with the yee solver (#4222)
Diffstat (limited to '')
-rw-r--r--Source/Initialization/WarpXInitData.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp
index 233d03a0c..78b3129c3 100644
--- a/Source/Initialization/WarpXInitData.cpp
+++ b/Source/Initialization/WarpXInitData.cpp
@@ -1347,6 +1347,16 @@ void WarpX::CheckKnownIssues()
"applied directly to particles."
);
}
+
+#if defined(__CUDACC__) && (__CUDACC_VER_MAJOR__ == 11) && (__CUDACC_VER_MINOR__ == 6)
+ if (WarpX::electromagnetic_solver_id == ElectromagneticSolverAlgo::Yee)
+ {
+ WARPX_ABORT_WITH_MESSAGE(
+ "CUDA 11.6 does not work with the Yee Maxwell "
+ "solver: https://github.com/AMReX-Codes/amrex/issues/2607"
+ );
+ }
+#endif
}
#if defined(WARPX_USE_OPENPMD) && !defined(WARPX_DIM_1D_Z) && !defined(WARPX_DIM_XZ)