COMP: 64bit label changes

This commit is contained in:
mattijs
2011-11-28 12:56:34 +00:00
parent 5eb11ed3c2
commit 51b6dcd4a3
7 changed files with 20 additions and 20 deletions

View File

@ -1,6 +1,6 @@
Info<< "Constructing single cell mesh" << nl << endl;
labelList owner(6, 0);
labelList owner(6, label(0));
labelList neighbour(0);
pointField points(8);

View File

@ -47,7 +47,7 @@ void sammMesh::readBoundary()
labelList pointLabels(4);
labelList pointLabelsTri(3);
labelList patchLabels(1000, -1);
labelList patchLabels(1000, label(-1));
word patchType;
patchTypes_.setSize(1000);

View File

@ -275,7 +275,7 @@ void starMesh::readCells()
{
IFstream cellsFile(cellsFileName);
labelList labels(24, -1);
labelList labels(24, label(-1));
label lineLabel, starLabel, regionLabel, typeFlag;
for (label cellI = 0; cellI < nCells; cellI++)

View File

@ -1456,7 +1456,7 @@ void setCouplingInfo
{
const polyBoundaryMesh& patches = mesh.boundaryMesh();
List<polyPatch*> newPatches(patches.size(), NULL);
List<polyPatch*> newPatches(patches.size(), static_cast<polyPatch*>(NULL));
forAll(zoneToPatch, zoneI)
{

View File

@ -114,7 +114,7 @@ Foam::fieldviewTopology::fieldviewTopology
// Mark all faces that are to be seen as wall for particle
// tracking and all cells that use one or more of these walls
labelList wallFace(mesh.nFaces(), NOT_A_WALL);
List<int> wallFace(mesh.nFaces(), NOT_A_WALL);
boolList wallCell(mesh.nCells(), false);
if (setWallInfo)
@ -149,20 +149,20 @@ Foam::fieldviewTopology::fieldviewTopology
const cellModel& hex = *(cellModeller::lookup("hex"));
// Pre calculate headers for cells not on walls
labelList notWallFlags(6, NOT_A_WALL);
label tetNotWall = fv_encode_elem_header
List<int> notWallFlags(6, NOT_A_WALL);
unsigned int tetNotWall = fv_encode_elem_header
(
FV_TET_ELEM_ID, notWallFlags.begin()
);
label pyrNotWall = fv_encode_elem_header
unsigned int pyrNotWall = fv_encode_elem_header
(
FV_PYRA_ELEM_ID, notWallFlags.begin()
);
label prismNotWall = fv_encode_elem_header
unsigned int prismNotWall = fv_encode_elem_header
(
FV_PRISM_ELEM_ID, notWallFlags.begin()
);
label hexNotWall = fv_encode_elem_header
unsigned int hexNotWall = fv_encode_elem_header
(
FV_HEX_ELEM_ID, notWallFlags.begin()
);
@ -179,7 +179,7 @@ Foam::fieldviewTopology::fieldviewTopology
const faceList& allFaces = mesh.faces();
labelList wallFlags(6);
List<int> wallFlags(6);
forAll(cellShapes, celli)
{
const cellShape& cellShape = cellShapes[celli];

View File

@ -55,13 +55,13 @@ class fieldviewTopology
// Private data
//- Hexes in fieldview format
labelList hexLabels_;
List<int> hexLabels_;
labelList prismLabels_;
List<int> prismLabels_;
labelList pyrLabels_;
List<int> pyrLabels_;
labelList tetLabels_;
List<int> tetLabels_;
//- Number of non-hex/prism/pyr/tet labels
label nPoly_;
@ -108,22 +108,22 @@ public:
// Access
const labelList& hexLabels() const
const List<int>& hexLabels() const
{
return hexLabels_;
}
const labelList& prismLabels() const
const List<int>& prismLabels() const
{
return prismLabels_;
}
const labelList& pyrLabels() const
const List<int>& pyrLabels() const
{
return pyrLabels_;
}
const labelList& tetLabels() const
const List<int>& tetLabels() const
{
return tetLabels_;
}

View File

@ -332,7 +332,7 @@ int main(int argc, char *argv[])
vectorField normals(2*nFeatEds, vector::zero);
vectorField edgeDirections(nFeatEds, vector::zero);
labelListList edgeNormals(nFeatEds, labelList(2, -1));
labelListList edgeNormals(nFeatEds, labelList(2, label(-1)));
triSurfaceSearch querySurf1(surf1);
triSurfaceSearch querySurf2(surf2);