Commit 4ec2017e authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

consistent bnd adv

parent b953997a
Pipeline #5436 passed with stage
in 54 seconds
......@@ -228,8 +228,8 @@ static void f_boundary(WeakBoundary *wbnd, FluidProblem *problem,const double *n
else if(vid>0) unbnd = (unold+unext)/2;
if (unbnd<0) {
for (int id = 0; id < D; ++id) {
f0[U+id] += unbnd*((vid<0 ? 0 : data[vid+id])-u[id])*rho/c;
f00[(U+id)*n_fields+U+id] -= unbnd*rho/c;
f0[U+id] += (unbnd*(vid<0?0:data[vid+id])-unold*u[id])*rho/c;
f00[(U+id)*n_fields+U+id] -= unold*rho/c;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment