Skip to content

Commit 765bd16

Browse files
authored
0.9.8 updates: regularise "weighted" quality const
1 parent 456a600 commit 765bd16

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/libcpp/geom_base/tria_elem_k.hpp

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
*
3232
--------------------------------------------------------
3333
*
34-
* Last updated: 20 August, 2018
34+
* Last updated: 29 January, 2019
3535
*
36-
* Copyright 2013-2018
36+
* Copyright 2013-2019
3737
* Darren Engwirda
3838
3939
* https://github.com/dengwirda/
@@ -229,8 +229,9 @@
229229
else
230230
_scrB = (data_type)+0. ;
231231

232-
return (data_type).67* _scrA +
233-
(data_type).33* _scrB ;
232+
return
233+
((data_type)+1.0-.33)*_scrA +
234+
((data_type)+0.0+.33)*_scrB ;
234235
}
235236

236237
template <
@@ -289,8 +290,9 @@
289290
else
290291
_scrB = (data_type)+0. ;
291292

292-
return (data_type).67* _scrA +
293-
(data_type).33* _scrB ;
293+
return
294+
((data_type)+1.0-.33)*_scrA +
295+
((data_type)+0.0+.33)*_scrB ;
294296
}
295297

296298
template <
@@ -427,8 +429,8 @@
427429
*/
428430

429431
data_type _qq =
430-
(data_type)+.75 * _qb +
431-
(data_type)+.25 * _qe ;
432+
((data_type)+1.-.33) * _qb +
433+
((data_type)+0.+.33) * _qe ;
432434

433435
return _qq ;
434436
}
@@ -527,8 +529,8 @@
527529
*/
528530

529531
data_type _qq =
530-
(data_type)+.75 * _qb +
531-
(data_type)+.25 * _qe ;
532+
((data_type)+1.-.33) * _qb +
533+
((data_type)+0.+.33) * _qe ;
532534

533535
return _qq ;
534536
}

0 commit comments

Comments
 (0)