diff options
author | 2022-10-03 16:12:15 -0700 | |
---|---|---|
committer | 2022-10-03 16:12:15 -0700 | |
commit | 43c110c3c3e2e5a1279fe6612c1540713744911f (patch) | |
tree | 92f100497c5c30208cdee1a2088fd2f0b0591756 | |
parent | be97e0d49a18978885174b69a2dabfe27dc64a53 (diff) | |
download | WarpX-43c110c3c3e2e5a1279fe6612c1540713744911f.tar.gz WarpX-43c110c3c3e2e5a1279fe6612c1540713744911f.tar.zst WarpX-43c110c3c3e2e5a1279fe6612c1540713744911f.zip |
BTD: Improve Z-Slice Message (#3440)
Add values that are checked to the msg, e.g., I see:
```
z-slice in lab-frame (0.049998) is outside the buffer domain
physical extent (0.049998 to 0.050000).
```
-rw-r--r-- | Source/Diagnostics/BTDiagnostics.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Diagnostics/BTDiagnostics.cpp b/Source/Diagnostics/BTDiagnostics.cpp index beb367309..77cc9a30d 100644 --- a/Source/Diagnostics/BTDiagnostics.cpp +++ b/Source/Diagnostics/BTDiagnostics.cpp @@ -39,6 +39,7 @@ #include <cmath> #include <cstdio> #include <memory> +#include <string> #include <vector> using namespace amrex::literals; @@ -579,7 +580,14 @@ BTDiagnostics::PrepareFieldDataForOutput () WARPX_ALWAYS_ASSERT_WITH_MESSAGE( m_current_z_lab[i_buffer] >= m_buffer_domain_lab[i_buffer].lo(m_moving_window_dir) and m_current_z_lab[i_buffer] <= m_buffer_domain_lab[i_buffer].hi(m_moving_window_dir), - "z-slice in lab-frame is outside the buffer domain physical extent. "); + "z-slice in lab-frame (" + + std::to_string(m_current_z_lab[i_buffer]) + + ") is outside the buffer domain physical extent (" + + std::to_string(m_buffer_domain_lab[i_buffer].lo(m_moving_window_dir)) + + " to " + + std::to_string(m_buffer_domain_lab[i_buffer].hi(m_moving_window_dir)) + + ")." + ); } m_all_field_functors[lev][i]->PrepareFunctorData ( i_buffer, ZSliceInDomain, |