Skip to content

Commit

Permalink
CI: Trap NaNs, Divisions by Zero, Overflows
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Aug 25, 2021
1 parent a2ffa48 commit 6ca3075
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Regression/prepare_file_travis.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@
text = re.sub('addToCompileString =',
'addToCompileString = USE_CCACHE=TRUE ', text)

# Add runtime option: crash for unused variables
# Add runtime options: crash for unused variables; trap NaNs, divisions by zero, and overflows
text = re.sub('runtime_params =',
'runtime_params = amrex.abort_on_unused_inputs=1 ',
'runtime_params = amrex.abort_on_unused_inputs=1 ' + 'amrex.fpe_trap_invalid=1 ' +
'amrex.fpe_trap_zero=1 ' + 'amrex.fpe_trap_overflow=1 ',
text)

# Use less/more cores for compiling, e.g. public CI only provides 2 cores
Expand Down

0 comments on commit 6ca3075

Please sign in to comment.