Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Apr 21, 2024
1 parent 956f363 commit 2d0d90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Exec/science/wdmerger/problem_initialize_state_data.H
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ void problem_initialize_state_data (int i, int j, int k,
if (problem::problem != 1) {

if (P_star_test || S_star_test) {
if (rho_P > rho_S && problem::mass_P > 0.0_rt) {
if (rho_P > rho_S && problem::mass_P > 0.0_rt && dist_P < problem::radius_P) {
state(i,j,k,UMX) += problem::vel_P[0] * state(i,j,k,URHO);
state(i,j,k,UMY) += problem::vel_P[1] * state(i,j,k,URHO);
state(i,j,k,UMZ) += problem::vel_P[2] * state(i,j,k,URHO);
} else if (problem::mass_S > 0.0_rt) {
} else if (problem::mass_S > 0.0_rt && dist_S < problem::radius_S) {
state(i,j,k,UMX) += problem::vel_S[0] * state(i,j,k,URHO);
state(i,j,k,UMY) += problem::vel_S[1] * state(i,j,k,URHO);
state(i,j,k,UMZ) += problem::vel_S[2] * state(i,j,k,URHO);
Expand Down

0 comments on commit 2d0d90f

Please sign in to comment.