diff options
author | 2020-01-10 11:26:00 +0100 | |
---|---|---|
committer | 2020-01-10 11:26:00 +0100 | |
commit | 81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e (patch) | |
tree | dcfd8ae0d9222b62b5cde0f9d10949d4eb382528 /Source/Filter/NCIGodfreyFilter.cpp | |
parent | 0b25b1b68f1b70e965295505d1503a3e57b6c2cc (diff) | |
download | WarpX-81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e.tar.gz WarpX-81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e.tar.zst WarpX-81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e.zip |
added explicit static_cast where needed
Diffstat (limited to 'Source/Filter/NCIGodfreyFilter.cpp')
-rw-r--r-- | Source/Filter/NCIGodfreyFilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Filter/NCIGodfreyFilter.cpp b/Source/Filter/NCIGodfreyFilter.cpp index 8723322f6..41ae67768 100644 --- a/Source/Filter/NCIGodfreyFilter.cpp +++ b/Source/Filter/NCIGodfreyFilter.cpp @@ -35,7 +35,7 @@ void NCIGodfreyFilter::ComputeStencils(){ "ERROR: NCI filter requires 5 points in z"); // Interpolate coefficients from the table, and store into prestencil. - int index = tab_length*m_cdtodz; + auto index = static_cast<int>(tab_length*m_cdtodz); index = min(index, tab_length-2); index = max(index, 0); Real weight_right = m_cdtodz - index/tab_length; |