Negate quantity by unary minus rather than multiplication by "-1".

git-svn-id: http://svn.sintef.no/simmatlab/branches/mrst-reorg/mex/libgeometry@9311 ea62cf4e-aff8-4dd6-bb37-af94872dbd4c

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
Bård Skaflestad
2012-06-25 20:00:25 +00:00
committed by Bård Skaflestad
parent 4e4666a2de
commit 37d7f4d8e2

View File

@@ -210,10 +210,10 @@ compute_cell_geometry(int ndims, double *coords,
}
if(subnormal_sign<0){
tet_volume*=-1.0;
tet_volume = - tet_volume;
}
if (neighbors[2*face + 0] != c) {
tet_volume*=-1.0;
tet_volume = - tet_volume;
}
volume += tet_volume;