aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-05-10 14:36:17 -0700
committerGravatar GitHub <noreply@github.com> 2021-05-10 14:36:17 -0700
commit2cdb5453ddd1a1065fcf4b2daf772fece94e7f99 (patch)
treea6d5070b998c085ab62af0c88857e2332a56b2a2 /Source/FieldSolver/SpectralSolver/SpectralAlgorithms
parent0679611e1ab869e27cb832ea72834fc79348afd8 (diff)
downloadWarpX-2cdb5453ddd1a1065fcf4b2daf772fece94e7f99.tar.gz
WarpX-2cdb5453ddd1a1065fcf4b2daf772fece94e7f99.tar.zst
WarpX-2cdb5453ddd1a1065fcf4b2daf772fece94e7f99.zip
NVCC: Fix PSATD+RZ Build Error (#1950)
Work-around for: ``` Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp(145): error #2985: identifier "PhysConst::ep0" is undefined in device code ```
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp
index dd608fa18..a76311db3 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.cpp
@@ -142,7 +142,8 @@ GalileanPsatdAlgorithmRZ::pushSpectralFields (SpectralFieldDataRZ & f)
Complex const divE = kr*(Ep_old - Em_old) + I*kz*Ez_old;
Complex const divJ = kr*(Jp - Jm) + I*kz*Jz;
- rho_diff = T2*(X2 - X3)*PhysConst::ep0*divE + T_rho*X2*divJ;
+ auto const myeps0 = PhysConst::ep0; // temporary for NVCC
+ rho_diff = T2*(X2 - X3)*myeps0*divE + T_rho*X2*divJ;
}
// Update E (see WarpX online documentation: theory section)