diff options
author | 2020-10-02 22:38:34 +0200 | |
---|---|---|
committer | 2020-10-02 13:38:34 -0700 | |
commit | c2080c8edc7bd8370da64272fb421c373d5708df (patch) | |
tree | 6b76f939fe0cb789c8b03b6f249368af47468119 /Source | |
parent | 8c6fe5adae45d278a0c37ee675afb966c7fb2b73 (diff) | |
download | WarpX-c2080c8edc7bd8370da64272fb421c373d5708df.tar.gz WarpX-c2080c8edc7bd8370da64272fb421c373d5708df.tar.zst WarpX-c2080c8edc7bd8370da64272fb421c373d5708df.zip |
[mini] Add clean error message when user makes a typo in fields to output (#1409)
* Add clean error message when user makes a typo in fields to output
* Add a space
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Diagnostics/FullDiagnostics.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Diagnostics/FullDiagnostics.cpp b/Source/Diagnostics/FullDiagnostics.cpp index 62e8da74e..aa58ecd42 100644 --- a/Source/Diagnostics/FullDiagnostics.cpp +++ b/Source/Diagnostics/FullDiagnostics.cpp @@ -404,6 +404,9 @@ FullDiagnostics::InitializeFieldFunctors (int lev) } else if ( m_varnames[comp] == "divE" ){ m_all_field_functors[lev][comp] = std::make_unique<DivEFunctor>(warpx.get_array_Efield_aux(lev), lev, m_crse_ratio); } + else { + amrex::Abort("Error: " + m_varnames[comp] + " is not a known field output type"); + } } AddRZModesToDiags( lev ); } |