@@ -193,7 +193,7 @@ Castro::do_old_sources (Real time, Real dt, bool apply_to_state)
193
193
Bx_old, By_old, Bz_old,
194
194
#endif
195
195
old_source, Sborder, S_new, time, dt,
196
- apply_to_state);
196
+ apply_to_state);
197
197
198
198
return status;
199
199
}
@@ -557,41 +557,41 @@ Castro::pre_advance_operators (Real time, Real dt) // NOLINT(readability-conver
557
557
FArrayBox q (The_Async_Arena ()), qaux (The_Async_Arena ());
558
558
559
559
for (MFIter mfi (Sborder, TilingIfNotGPU ()); mfi.isValid (); ++mfi) {
560
- const Box& bx = mfi.tilebox ();
561
- const Box& obx = mfi.growntilebox (1 );
560
+ const Box& bx = mfi.tilebox ();
561
+ const Box& obx = mfi.growntilebox (1 );
562
562
563
- shk.resize (bx, 1 );
563
+ shk.resize (bx, 1 );
564
564
#ifdef RADIATION
565
- q.resize (obx, NQ);
565
+ q.resize (obx, NQ);
566
566
#else
567
- q.resize (obx, NQTHERM);
567
+ q.resize (obx, NQTHERM);
568
568
#endif
569
- qaux.resize (obx, NQAUX);
569
+ qaux.resize (obx, NQAUX);
570
570
571
- Array4<Real> const shk_arr = shk.array ();
572
- Array4<Real> const q_arr = q.array ();
573
- Array4<Real> const qaux_arr = qaux.array ();
571
+ Array4<Real> const shk_arr = shk.array ();
572
+ Array4<Real> const q_arr = q.array ();
573
+ Array4<Real> const qaux_arr = qaux.array ();
574
574
575
- Array4<Real const > const Sborder_old_arr = Sborder.array (mfi);
576
- Array4<Real> const S_old_arr = S_old.array (mfi);
577
- Array4<Real> const old_src_arr = old_source.array (mfi);
575
+ Array4<Real const > const Sborder_old_arr = Sborder.array (mfi);
576
+ Array4<Real> const S_old_arr = S_old.array (mfi);
577
+ Array4<Real> const old_src_arr = old_source.array (mfi);
578
578
579
- ctoprim (obx, time, Sborder_old_arr, q_arr, qaux_arr);
579
+ ctoprim (obx, time, Sborder_old_arr, q_arr, qaux_arr);
580
580
581
581
shock (bx, q_arr, old_src_arr, shk_arr);
582
582
583
- // now store it in S_old -- we'll fillpatch into Sborder in a bit
583
+ // now store it in S_old -- we'll fillpatch into Sborder in a bit
584
584
585
- // Note: we still compute the shock flag in the hydro for the
586
- // hybrid-Riemann (for now) since that version will have seen the
587
- // effect of the burning in the first dt), but that version is
588
- // never stored in State_Type
585
+ // Note: we still compute the shock flag in the hydro for the
586
+ // hybrid-Riemann (for now) since that version will have seen the
587
+ // effect of the burning in the first dt), but that version is
588
+ // never stored in State_Type
589
589
590
- amrex::ParallelFor (bx,
590
+ amrex::ParallelFor (bx,
591
591
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
592
592
{
593
- S_old_arr (i,j,k,USHK) = shk_arr (i,j,k);
594
- });
593
+ S_old_arr (i,j,k,USHK) = shk_arr (i,j,k);
594
+ });
595
595
596
596
}
597
597
0 commit comments