Skip to content

Commit

Permalink
0.9.8 updates: regularise "weighted" quality const
Browse files Browse the repository at this point in the history
  • Loading branch information
dengwirda authored Jan 30, 2019
1 parent 456a600 commit 765bd16
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/libcpp/geom_base/tria_elem_k.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
*
--------------------------------------------------------
*
* Last updated: 20 August, 2018
* Last updated: 29 January, 2019
*
* Copyright 2013-2018
* Copyright 2013-2019
* Darren Engwirda
* [email protected]
* https://github.com/dengwirda/
Expand Down Expand Up @@ -229,8 +229,9 @@
else
_scrB = (data_type)+0. ;

return (data_type).67* _scrA +
(data_type).33* _scrB ;
return
((data_type)+1.0-.33)*_scrA +
((data_type)+0.0+.33)*_scrB ;
}

template <
Expand Down Expand Up @@ -289,8 +290,9 @@
else
_scrB = (data_type)+0. ;

return (data_type).67* _scrA +
(data_type).33* _scrB ;
return
((data_type)+1.0-.33)*_scrA +
((data_type)+0.0+.33)*_scrB ;
}

template <
Expand Down Expand Up @@ -427,8 +429,8 @@
*/

data_type _qq =
(data_type)+.75 * _qb +
(data_type)+.25 * _qe ;
((data_type)+1.-.33) * _qb +
((data_type)+0.+.33) * _qe ;

return _qq ;
}
Expand Down Expand Up @@ -527,8 +529,8 @@
*/

data_type _qq =
(data_type)+.75 * _qb +
(data_type)+.25 * _qe ;
((data_type)+1.-.33) * _qb +
((data_type)+0.+.33) * _qe ;

return _qq ;
}
Expand Down

0 comments on commit 765bd16

Please sign in to comment.