Skip to content

Commit

Permalink
fix oriented connections in ASMs3D
Browse files Browse the repository at this point in the history
  • Loading branch information
akva2 authored and VikingScientist committed Feb 15, 2018
1 parent 7d04801 commit 3b83047
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ASM/ASMs3D.C
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,9 @@ bool ASMs3D::connectBasis (int face, ASMs3D& neighbor, int nface, int norient,
return false;
}

if (norient > 3)
std::swap(n1,n2);

const double xtol = 1.0e-4;
int node = 1;
for (int j = 0; j < n2; j++)
Expand All @@ -699,13 +702,13 @@ bool ASMs3D::connectBasis (int face, ASMs3D& neighbor, int nface, int norient,
case 3: k = n1-i-1; l = n2-j-1; break;
case 4: k = j ; l = i ; break;
case 5: k = j ; l = n2-i-1; break;
case 6: k = n1-j-1; l = i ; break;
case 7: k = n1-j-1; l = n2-i-1; break;
case 6: k = m1-j-1; l = i ; break;
case 7: k = m1-j-1; l = m2-i-1; break;
}

for (int t = 0; t < thick; t++)
{
int slave = slaveNodes[(l*n1+k)*thick+t];
int slave = slaveNodes[(l*m1+k)*thick+t];
int node2 = masterNodes[(node-1)*thick+t];
if (!coordCheck)
ASMbase::collapseNodes(neighbor,node2,*this,slave);
Expand Down

0 comments on commit 3b83047

Please sign in to comment.