2 label sizeByTwo = mesh.boundary()[cohesivePatchID].size()/2;
3 vectorField Cczm = mesh.boundary()[cohesivePatchID].Cf();
5 for(label i = 0; i < sizeByTwo; i++)
7 Cczm[i] -= Cczm[sizeByTwo + i];
8 Cczm[sizeByTwo + i] = Cczm[i];
11 scalar error = sum(mag(Cczm));
15 Info << "Cohesive patch face ordering: OK" << endl;
19 Info << "Cohesive patch face ordering: error (" << error << ")"