aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-11-22 18:04:18 -0800
committerGravatar GitHub <noreply@github.com> 2021-11-22 18:04:18 -0800
commit9e02b95c1f7310550d0ba3d89639b44b72a17de9 (patch)
tree25c7bd7b477e9a502adf640fd6abaa1df70bb538 /Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
parente55fef18dea27108247024fffba4fccd84206ac2 (diff)
downloadWarpX-9e02b95c1f7310550d0ba3d89639b44b72a17de9.tar.gz
WarpX-9e02b95c1f7310550d0ba3d89639b44b72a17de9.tar.zst
WarpX-9e02b95c1f7310550d0ba3d89639b44b72a17de9.zip
Python: Start 1D Support (#2582)
* Python: Start 1D Support Start supporting 1D builds in Python. * Fix 1D: PML FillZero unused ... since PMLs are not yet supported in 1D. * BeamRelevant: Fix unused p_pos0 * FromTXYEFileLaserProfile: Not Impl in 1D * QED Schwinger: 1D not Implemented Fix unused warnings, add aborts. * 1D RealVect/IntVect: Initialization Use explicit scalar constructors, no braces. Fix warning in clang 10. * 1D NCI Filter: Fix unused members & Init Unimplemented, but throws warnings. * PSATD: 1D not Implemented - remove compile warnings - start porting some parts * NCIGodfreyFilter: Clean up 2D & Else
Diffstat (limited to 'Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp')
-rw-r--r--Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
index dd59bd225..d36386591 100644
--- a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
+++ b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
@@ -425,6 +425,11 @@ WarpXLaserProfiles::FromTXYEFileLaserProfile::internal_fill_amplitude_uniform(
p_E_data[idx(idx_t_right, idx_x_right)],
t, Xp[i])*tmp_e_max;
amrex::ignore_unused(Yp);
+#else
+ // TODO: implement WARPX_DIM_1D_Z
+ amrex::ignore_unused(x_0, x_1, tmp_e_max, p_E_data, tmp_idx_first_time,
+ t_left, t_right, Xp, Yp, t, idx_x_left);
+ amrex::Abort("WarpXLaserProfiles::FromTXYEFileLaserProfile Not implemented for the current geometry");
#endif
}
);
@@ -522,6 +527,11 @@ WarpXLaserProfiles::FromTXYEFileLaserProfile::internal_fill_amplitude_nonuniform
p_E_data[idx(idx_t_right, idx_x_left)],
p_E_data[idx(idx_t_right, idx_x_right)],
t, Xp[ip])*tmp_e_max;
+#else
+ // TODO: implement WARPX_DIM_1D_Z
+ amrex::ignore_unused(idx_x_left, idx_t_left, idx_t_right, tmp_e_max,
+ p_E_data, tmp_idx_first_time, t_left, t_right, t);
+ amrex::Abort("WarpXLaserProfiles::FromTXYEFileLaserProfile Not implemented for the current geometry");
#endif
}
);