Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Oct 11, 2024
1 parent 934042e commit 7dca9c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Exec/science/xrb_spherical/problem_initialize_state_data.H
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ void problem_initialize_state_data (int i, int j, int k,

Real f;

if (r < problem::theta_half_max) {
if (theta < problem::theta_half_max) {
f = 1.0_rt;

} else if (r > problem::theta_half_max + problem::theta_half_width) {
} else if (theta > problem::theta_half_max + problem::theta_half_width) {
f = 0.0_rt;

} else {
f = -(r - problem::theta_half_max) / problem::theta_half_width + 1.0_rt;
f = -(theta - problem::theta_half_max) / problem::theta_half_width + 1.0_rt;
}

state(i,j,k,URHO) = f * interpolate(r, model::idens, 1) +
Expand Down

0 comments on commit 7dca9c5

Please sign in to comment.