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:
committed by
Bård Skaflestad
parent
4e4666a2de
commit
37d7f4d8e2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user