aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2020-01-10 11:36:34 +0100
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2020-01-10 11:36:34 +0100
commit1d1e34bac4cb1d0ca6cde0e10811d58d76671026 (patch)
treebeacf7b61404f8468d6429b40ca64ec0f57303bc /Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
parent0ac1744e46aa29ea935f39112d6de295124c32b6 (diff)
downloadWarpX-1d1e34bac4cb1d0ca6cde0e10811d58d76671026.tar.gz
WarpX-1d1e34bac4cb1d0ca6cde0e10811d58d76671026.tar.zst
WarpX-1d1e34bac4cb1d0ca6cde0e10811d58d76671026.zip
added a missing static_cast
Diffstat (limited to 'Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp')
-rw-r--r--Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
index 855065f92..8f44c2d5f 100644
--- a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
+++ b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp
@@ -227,8 +227,8 @@ FromTXYEFileLaserProfile::find_left_right_time_indices(amrex::Real t) const
if(m_params.is_grid_uniform){
const auto t_min = m_params.t_coords.front();
const auto t_max = m_params.t_coords.back();
- const int temp_idx_t_right =
- ceil( (m_params.nt-1)*(t-t_min)/(t_max-t_min));
+ const auto temp_idx_t_right = static_cast<int>(
+ ceil( (m_params.nt-1)*(t-t_min)/(t_max-t_min)));
idx_t_right = max(min(temp_idx_t_right, m_params.nt-1),1);
}
else{