File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -222,11 +222,9 @@ void main_main ()
222222 aa_num_failed.copyToHost (&num_failed, 1 );
223223 Gpu::synchronize ();
224224
225- #ifndef AMREX_USE_GPU
226225 if (num_failed > 0 ) {
227226 amrex::Abort (" Integration failed" );
228227 }
229- #endif
230228
231229 // Call the timer again and compute the maximum difference between
232230 // the start time and stop time over all processors
Original file line number Diff line number Diff line change @@ -211,6 +211,10 @@ void main_main ()
211211 aa_num_failed.copyToHost (&num_failed, 1 );
212212 Gpu::synchronize ();
213213
214+ if (num_failed > 0 ) {
215+ amrex::Abort (" Integration failed" );
216+ }
217+
214218 // Call the timer again and compute the maximum difference between
215219 // the start time and stop time over all processors
216220 Real stop_time = ParallelDescriptor::second () - strt_time;
You can’t perform that action at this time.
0 commit comments