Skip to content

Commit

Permalink
fix scaling again
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 12, 2024
1 parent 6f7cae4 commit bcb1ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/hydro/advection_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Castro::shock(const Box& bx,
dP_y * q_arr(i,j,k,QV) +
dP_z * q_arr(i,j,k,QW)) / vel;
}
gradPdx_over_P /= (q_arr(i,j,k,QPRES) / std::max(dx[0], std::max(dx[1], dx[2])));
gradPdx_over_P /= q_arr(i,j,k,QPRES);

if (gradPdx_over_P > castro::shock_detection_threshold && div_u < 0.0_rt) {
shk(i,j,k) = 1.0_rt;
Expand Down

0 comments on commit bcb1ff0

Please sign in to comment.