Commit f2fc184f authored by Michael Turner's avatar Michael Turner

Merge branch 'fix/inverted-triangles' into 'master'

Swap vertices in inverted triangles

See merge request !798
parents e38421d7 f01c3cda
......@@ -10,6 +10,7 @@ v5.0.0
- Adjust boundary layer thickness in corners in 2D (!739)
- Add non-O BL meshing in 2D (!757)
- Fix issue with reading CCM files due to definition of default arrays rather than a vector (!797)
- Fix inverted triangles and small memory issue in surface meshing (!798)
**Library**
- Added in sum factorisation version for pyramid expansions and orthogonal
......
......@@ -63,7 +63,6 @@ void TriangleInterface::Mesh(bool Quality)
dt.in.numberofpoints = numPoints;
dt.in.numberofpointattributes = 0;
dt.in.pointlist = new double[dt.in.numberofpoints * 2];
dt.in.pointmarkerlist = new int [dt.in.numberofpoints];
int pointc = 0;
......
......@@ -105,6 +105,7 @@ Triangle::Triangle(ElmtConfig pConf,
{
if (sum > 0.0)
{
swap(m_vertex[1], m_vertex[2]);
reverse(m_edge.begin(), m_edge.end());
}
}
......
......@@ -7,9 +7,9 @@
</INFORMATION>
<PARAMETERS>
<P PARAM="MinDelta" VALUE="0.05" />
<P PARAM="MinDelta" VALUE="0.045" />
<P PARAM="MaxDelta" VALUE="0.2" />
<P PARAM="EPS" VALUE="0.03" />
<P PARAM="EPS" VALUE="0.03" />
<P PARAM="Order" VALUE="4" />
</PARAMETERS>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment