Fixed URL for libccmio-2.6.1 (bug report #5 by Thomas Oliveira)
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticOrthoAcpSolidFoam / checkCohesivePatchOrdering.H
blobe439e0276fb1d0d9f23cd7e3b9822c3005cc8c42
2     label sizeByTwo =  mesh.boundary()[cohesivePatchID].size()/2;
3     vectorField Cczm = mesh.boundary()[cohesivePatchID].Cf();
5     for(label i = 0; i < sizeByTwo; i++)
6     {
7         Cczm[i] -= Cczm[sizeByTwo + i];
8         Cczm[sizeByTwo + i] = Cczm[i];
9     }
11     scalar error = sum(mag(Cczm));
13     if(error < SMALL)
14     {
15         Info << "Cohesive patch face ordering: OK" << endl;
16     }
17     else
18     {
19         Info << "Cohesive patch face ordering: error (" << error << ")"
20             << endl;
21     }