2 label secondMeshPartNum = nPatches+2;
6 secondMeshPartNum += 1;
9 label patchi = which_part - secondMeshPartNum - 1;
11 label offset = Num_variables - nSecondMeshVariables - nFaMeshVariables;
13 if (nVar < offset || nVar >= (Num_variables-nFaMeshVariables))
18 IOobject fieldObjectPtr
20 secondMeshFieldNames[secondMeshVar2field[nVar-offset]],
26 if (!fieldObjectPtr.headerOk())
33 secondMeshFieldNames[secondMeshVar2field[nVar-offset]],
46 const scalarField& sfb = sf.boundaryField()[patchi];
47 const polyBoundaryMesh& bMesh = secondMeshPtr->boundaryMesh();
49 if (which_type == Z_TRI03)
52 for (label facei=0; facei<sfb.size(); facei++)
54 label nPoints = bMesh[patchi][facei].size();
57 var_array[counter++] = sfb[facei];
62 if (which_type == Z_QUA04)
65 for (label facei=0; facei<sfb.size(); facei++)
67 label nPoints = bMesh[patchi][facei].size();
70 var_array[counter++] = sfb[facei];
75 if (which_type == Z_NSIDED)
78 for (label facei=0; facei<sfb.size(); facei++)
80 label nPoints = bMesh[patchi][facei].size();
81 if ((nPoints != 3) && (nPoints != 4))
83 var_array[counter++] = sfb[facei];