Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/initialization/InitParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ namespace impactx::initialization
{
amrex::ParmParse pp_amrex("amrex");

// throw exceptions in asserts, to enable optional error handling, especially in Python
// https://amrex-codes.github.io/amrex/docs_html/RuntimeParameters.html#amrex.throw_exception
bool throw_exception = true; // AMReX' default: false
pp_amrex.queryAdd("throw_exception", throw_exception);

// https://amrex-codes.github.io/amrex/docs_html/GPU.html#inputs-parameters
bool abort_on_out_of_gpu_memory = true; // AMReX' default: false
pp_amrex.queryAdd("abort_on_out_of_gpu_memory", abort_on_out_of_gpu_memory);
Expand Down
Loading