|
31 | 31 | * |
32 | 32 | -------------------------------------------------------- |
33 | 33 | * |
34 | | - * Last updated: 12 Sept., 2020 |
| 34 | + * Last updated: 14 Sept., 2020 |
35 | 35 | * |
36 | 36 | * Copyright 2013-2020 |
37 | 37 | * Darren Engwirda |
|
79 | 79 | iptr_type static constexpr |
80 | 80 | _last = pred_type::geom_dims+0 ; |
81 | 81 |
|
82 | | - // iptr_type static constexpr |
83 | | - // _DEG_TRIA3 = (iptr_type)+6 ; |
| 82 | + iptr_type static constexpr |
| 83 | + _DEG_TRIA3 = (iptr_type)+6 ; |
84 | 84 | // iptr_type static constexpr |
85 | 85 | // _DEG_QUAD4 = (iptr_type)+4 ; |
86 | 86 |
|
|
121 | 121 | &_iptr->pval(0),&_jptr->pval(0)) ; |
122 | 122 |
|
123 | 123 | real_type _hbar = |
124 | | - std::max(_isiz , _jsiz); |
| 124 | + std::max(_isiz , _jsiz ) ; |
125 | 125 |
|
126 | 126 | /*--------------------------------- exit if too small */ |
127 | 127 | if (_lsqr <= _hbar * _lmin * |
|
130 | 130 |
|
131 | 131 | /*--------------------------------- split if too long */ |
132 | 132 | real_type static constexpr |
133 | | - _lBIG = (real_type)+7./5. ; |
| 133 | + _lBIG = (real_type)+11./8.; |
134 | 134 |
|
135 | 135 | if (_lsqr >= _hbar * _lBIG * |
136 | 136 | _hbar * _lBIG ) |
|
147 | 147 | { |
148 | 148 | /*--------------------------------- get adjacent face */ |
149 | 149 | _mesh.connect_2(_eptr->node(+0), |
150 | | - POINT_tag, _iset) ; |
| 150 | + POINT_tag , _iset) ; |
151 | 151 | _mesh.connect_2(_eptr->node(+1), |
152 | | - POINT_tag, _jset) ; |
| 152 | + POINT_tag , _jset) ; |
153 | 153 |
|
154 | 154 | /*--------------------------------- 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 ; |
157 | 165 |
|
158 | 166 | } // if (_lBIG) |
159 | 167 |
|
|
328 | 336 |
|
329 | 337 | real_type _minC = |
330 | 338 | loop_cost( _mesh, |
331 | | - _cset, _qtmp, cell_kind() |
| 339 | + _cnew, _qtmp, cell_kind() |
332 | 340 | ) ; |
333 | 341 |
|
334 | 342 | move_node( _geom, _mesh, |
|
0 commit comments