Skip to content

Commit

Permalink
In the viscous tensor solve, do better for the initial guess given
Browse files Browse the repository at this point in the history
to the solver
  • Loading branch information
cgilet committed Apr 18, 2024
1 parent 308603c commit d4a8d9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,9 @@ Diffusion::diffuse_tensor_velocity (Real dt,
if ( has_delta_rhs ) {
rhs(i,j,k,n) += deltarhs(i,j,k,n) * dt;
}
// Put unew back since it's a reference to the MF that
// ultimately gets used as an initial guess for the solve
unew(i,j,k,n) /= rho(i,j,k);
}
});
}
Expand Down

0 comments on commit d4a8d9f

Please sign in to comment.