Evaluate cell pressure in an existing cell rather than outside...

This commit is contained in:
Bård Skaflestad 2010-11-15 12:25:43 +01:00
parent 0ffaafc9ee
commit 43de7f5d23

View File

@ -256,7 +256,7 @@ compute_flux(grid_t *G,
if (c1 < 0) {
dp = bc->bcval[f] - cpress[c2];
} else {
dp = cpress[c2] - bc->bcval[f];
dp = cpress[c1] - bc->bcval[f];
}
}