Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticOrthoAcpSolidFoam / checkCohesivePatchOrdering.H
blob0bc3b3c70286405810a7c37b58ec3c8f722e2651
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     }
10     
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     }