Skip to content

Commit

Permalink
add some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Nov 26, 2024
1 parent 886e09a commit 9c50837
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/hydro/trans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,12 @@ Castro::actual_trans_single(const Box& bx, // NOLINT(readability-convert-member
qo_arr(i,j,k,QREINT) = q_arr(i,j,k,QREINT);
}

// Pretend QREINT has been fixed and transverse_use_eos != 1.
// If we are wrong, we will fix it later.
// Pretend QREINT has been fixed
// We can get pressure update via eos or using p-evolution equation

if (transverse_use_eos) {

// With the EOS route:
eos_rep_t eos_state;
eos_state.rho = rrnewn;
eos_state.e = qo_arr(i,j,k,QREINT) / rrnewn;
Expand All @@ -459,6 +460,7 @@ Castro::actual_trans_single(const Box& bx, // NOLINT(readability-convert-member
qo_arr(i,j,k,QPRES) = amrex::max(pnewn, small_p);

} else {

// Add the transverse term to the p evolution eq here.
#if AMREX_SPACEDIM == 2
// the divergences here, dup and du, already have area factors
Expand Down

0 comments on commit 9c50837

Please sign in to comment.