Lower constant tet_volume multiplication below
accumulation loop.
This commit is contained in:
parent
0e308c3be1
commit
5d5404aebf
@ -200,8 +200,9 @@ compute_cell_geometry(int ndims, double *coords,
|
||||
|
||||
tet_volume = 0;
|
||||
for(i=0; i<ndims; ++i){
|
||||
tet_volume += 0.5/3 * w[i]*(x[i]-xcell[i]);
|
||||
tet_volume += w[i] * (x[i] - xcell[i]);
|
||||
}
|
||||
tet_volume *= 0.5 / 3;
|
||||
|
||||
subnormal_sign=0.0;
|
||||
for(i=0; i<ndims; ++i){
|
||||
|
Loading…
Reference in New Issue
Block a user