Skip to content

Commit

Permalink
Merge pull request #474 from TravisMitchell/arb-fix/d2q9_pf_velocity
Browse files Browse the repository at this point in the history
Fix minor bug in last pull request for d2q9_pf_velocity
  • Loading branch information
llaniewski authored Dec 21, 2023
2 parents 0689a48 + 1e67f65 commit b38b8dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions models/multiphase/d2q9_pf_velocity/Dynamics.c.Rt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ CudaDeviceFunction vector_t calcGradPhi(){
real_t phi_a = PhaseF(0,0);
real_t phi_b, denom = 0.0;

for (int i = 1; i<9; i++) {
for (int i = 0; i<9; i++) {
phi_b = PhaseF_dyn(d2q9_ex[i],d2q9_ey[i]);
if (!isnan(phi_b)){
gradPhi.x += wf[i]*d2q9_ex[i]*(phi_b-phi_a);
Expand Down Expand Up @@ -1131,7 +1131,7 @@ CudaDeviceFunction void WVelocity()
real_t rho = calcRho(PhaseF);
real_t tau = calcTau(PhaseF, rho);
real_t p = getNormalizedPressure() ; // normalized pressure
vector_t Fhydro;
vector_t Fhydro={0.0,0.0,0.0};
#ifdef OPTIONS_BGK
if (NodeType & NODE_BGK) { // Not Implemented
}
Expand Down Expand Up @@ -1211,7 +1211,7 @@ CudaDeviceFunction void NVelocity()
real_t rho = calcRho(PhaseF);
real_t tau = calcTau(PhaseF, rho);
real_t p = getNormalizedPressure() ; // normalized pressure
vector_t Fhydro;
vector_t Fhydro={0.0,0.0,0.0};
#ifdef OPTIONS_BGK
if (NodeType & NODE_BGK) { // Not Implemented
}
Expand Down Expand Up @@ -1322,7 +1322,7 @@ CudaDeviceFunction void BounceBack()
real_t rho = calcRho(PhaseF);
real_t tau = calcTau(PhaseF, rho);
real_t p = getNormalizedPressure() ; // normalized pressure
vector_t Fhydro;
vector_t Fhydro={0.0,0.0,0.0};
#ifdef OPTIONS_BGK
if (NodeType & NODE_BGK) { // Not Implemented
}
Expand Down Expand Up @@ -1371,7 +1371,7 @@ CudaDeviceFunction void BounceBack()
real_t rho = calcRho(PhaseF);
real_t tau = calcTau(PhaseF, rho);
real_t p = getNormalizedPressure() ; // normalized pressure
vector_t Fhydro;
vector_t Fhydro={0.0,0.0,0.0};
#ifdef OPTIONS_BGK
if (NodeType & NODE_BGK) { // Not Implemented
}
Expand Down

0 comments on commit b38b8dd

Please sign in to comment.