Bugfix: want non-negative cell index
This commit is contained in:
parent
8a84cd29b7
commit
d26a9ee4c8
@ -903,10 +903,10 @@ compute_flux(struct UnstructuredGrid *G,
|
||||
}
|
||||
|
||||
if (c1 < 0) {
|
||||
dp = bc->value[ i ] - cpress[c1];
|
||||
dp = bc->value[ i ] - cpress[c2];
|
||||
}
|
||||
else {
|
||||
dp = cpress[c2] - bc->value[ i ];
|
||||
dp = cpress[c1] - bc->value[ i ];
|
||||
}
|
||||
|
||||
fflux[f] = trans[f] * (t*dp + g);
|
||||
|
Loading…
Reference in New Issue
Block a user