Skip to content

Commit 019b2ce

Browse files
committed
Merge commit '87fa9239318277ef3e42c422006ff6ceafd327d5'
2 parents 68b11bc + 87fa923 commit 019b2ce

2 files changed

Lines changed: 21 additions & 13 deletions

File tree

external/jigsaw/src/libcpp/iter_mesh/iter_divs_2.inc

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
--------------------------------------------------------
3333
*
34-
* Last updated: 12 Sept., 2020
34+
* Last updated: 14 Sept., 2020
3535
*
3636
* Copyright 2013-2020
3737
* Darren Engwirda
@@ -79,8 +79,8 @@
7979
iptr_type static constexpr
8080
_last = pred_type::geom_dims+0 ;
8181

82-
// iptr_type static constexpr
83-
// _DEG_TRIA3 = (iptr_type)+6 ;
82+
iptr_type static constexpr
83+
_DEG_TRIA3 = (iptr_type)+6 ;
8484
// iptr_type static constexpr
8585
// _DEG_QUAD4 = (iptr_type)+4 ;
8686

@@ -121,7 +121,7 @@
121121
&_iptr->pval(0),&_jptr->pval(0)) ;
122122

123123
real_type _hbar =
124-
std::max(_isiz , _jsiz);
124+
std::max(_isiz , _jsiz ) ;
125125

126126
/*--------------------------------- exit if too small */
127127
if (_lsqr <= _hbar * _lmin *
@@ -130,7 +130,7 @@
130130

131131
/*--------------------------------- split if too long */
132132
real_type static constexpr
133-
_lBIG = (real_type)+7./5. ;
133+
_lBIG = (real_type)+11./8.;
134134

135135
if (_lsqr >= _hbar * _lBIG *
136136
_hbar * _lBIG )
@@ -147,13 +147,21 @@
147147
{
148148
/*--------------------------------- get adjacent face */
149149
_mesh.connect_2(_eptr->node(+0),
150-
POINT_tag, _iset) ;
150+
POINT_tag , _iset) ;
151151
_mesh.connect_2(_eptr->node(+1),
152-
POINT_tag, _jset) ;
152+
POINT_tag , _jset) ;
153153

154154
/*--------------------------------- calc. local topo. */
155-
if (_iset.count() <= +7) return;
156-
if (_jset.count() <= +7) return;
155+
auto _ideg = _iset.count() ;
156+
auto _ierr =
157+
(iptr_type)(_ideg-_DEG_TRIA3) ;
158+
159+
auto _jdeg = _jset.count() ;
160+
auto _jerr =
161+
(iptr_type)(_jdeg-_DEG_TRIA3) ;
162+
163+
if (std::max(_ierr, _jerr) < 2)
164+
return ;
157165

158166
} // if (_lBIG)
159167

@@ -328,7 +336,7 @@
328336

329337
real_type _minC =
330338
loop_cost( _mesh,
331-
_cset, _qtmp, cell_kind()
339+
_cnew, _qtmp, cell_kind()
332340
) ;
333341

334342
move_node( _geom, _mesh,

external/jigsaw/src/libcpp/iter_mesh/iter_zips_2.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120

121121
/*--------------------------------- get adjacent face */
122122
_mesh.connect_2(_eptr->node(+0),
123-
POINT_tag, _iset) ;
123+
POINT_tag , _iset) ;
124124
_mesh.connect_2(_eptr->node(+1),
125-
POINT_tag, _jset) ;
125+
POINT_tag , _jset) ;
126126

127127
/*--------------------------------- calc. local topo. */
128128
auto _ndeg = _iset.count()
@@ -176,7 +176,7 @@
176176
&_iptr->pval(0),&_jptr->pval(0)) ;
177177

178178
real_type _hbar =
179-
std::min(_isiz , _jsiz);
179+
std::min(_isiz , _jsiz ) ;
180180

181181
/*--------------------------------- exit if too large */
182182
if (_lsqr >= _hbar * _lmax *

0 commit comments

Comments
 (0)