Bugfix: want non-negative cell index

This commit is contained in:
Ove Saevareid 2012-04-24 12:51:24 +02:00
parent 8a84cd29b7
commit d26a9ee4c8

View File

@ -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);