From 923fee738ecc3f49f4883b12ed897350af395c71 Mon Sep 17 00:00:00 2001 From: Henrik Rusche Date: Sat, 5 Jan 2019 02:14:17 +0100 Subject: [PATCH] BUGFIX: Compile WM_LABEL_SIZE=64 --- .../rpmBuild/SOURCES/scotch-6.0.4_patch_0 | 5 +- .../rpmBuild/SPECS/ParMGridGen-1.0.spec | 5 + ThirdParty/rpmBuild/SPECS/metis-5.1.0.spec | 5 + ThirdParty/rpmBuild/SPECS/parmetis-4.0.3.spec | 5 + ThirdParty/rpmBuild/SPECS/scotch-6.0.4.spec | 5 + .../finiteArea/makeFaMesh/makeFaMesh.C | 2 +- .../foamMeshToAbaqus/foamMeshToAbaqus.C | 16 ++- .../mesh/conversion/sammToFoam/readBoundary.C | 2 +- .../mesh/conversion/sammToFoam/readCells.C | 2 +- .../mesh/conversion/starToFoam/readBoundary.C | 2 +- .../mesh/conversion/starToFoam/readCells.C | 2 +- .../mesh/manipulation/setSet/writeFuns.C | 31 +++-- .../mesh/manipulation/setSet/writeFuns.H | 11 +- .../foamToFieldview9/fieldviewTopology.C | 4 +- .../foamToTecplot360/tecplotWriter.C | 3 +- .../dataConversion/foamToVTK/writeFuns.C | 21 ++-- .../dataConversion/foamToVTK/writeFuns.H | 7 +- .../meshReader/starcd/STARCDMeshReader.C | 6 +- src/dbns/multigrid/mgMeshLevel/mgMeshLevel.C | 2 +- .../decompositionMethod/decompositionMethod.C | 18 +-- .../decompositionMethod/decompositionMethod.H | 12 +- .../metisDecomp/metisDecomp.C | 50 ++++---- .../metisDecomp/metisDecomp.H | 6 +- .../parMetisDecomp/parMetisDecomp.C | 108 +++++++++--------- .../parMetisDecomp/parMetisDecomp.H | 12 +- .../scotchDecomp/scotchDecomp/scotchDecomp.C | 26 ++--- .../scotchDecomp/scotchDecomp/scotchDecomp.H | 6 +- .../directActions/addPatchCellLayer.C | 13 ++- .../directActions/combineFaces.C | 2 +- .../directTopoChange/directTopoChange.C | 2 +- .../refinement/refinement/refinement.C | 2 +- .../polyTopoChangerChangeMesh.C | 2 +- .../coupledMesh/dynamicTopoFvMeshCoupled.C | 6 +- .../dynamicTopoFvMeshMapping.C | 6 +- .../dynamicTopoFvMeshReOrder.C | 2 +- .../dynamicTopoFvMesh/edgeBisect.C | 42 +++---- .../dynamicTopoFvMesh/edgeCollapse.C | 9 +- src/dynamicMesh/dynamicTopoFvMesh/edgeSwap.C | 22 ++-- .../fieldMapping/topoPatchMapper.C | 2 +- .../mesquiteMotionSolver.C | 4 +- src/finiteArea/faMesh/faMesh.C | 6 +- src/finiteArea/faMesh/faMesh.H | 6 +- .../constraint/processor/processorFaPatch.C | 2 +- .../constraint/processor/processorFaPatch.H | 2 +- .../fvMesh/fvMeshMapper/fvSurfaceMapper.C | 2 +- src/foam/algorithms/octree/octree/treeNode.C | 2 +- src/foam/algorithms/octree/octree/treeNode.H | 4 +- src/foam/db/IOstreams/Pstreams/IPread.C | 2 +- src/foam/db/IOstreams/Pstreams/IPstream.H | 2 +- src/foam/db/IOstreams/Pstreams/Pstream.C | 11 +- .../Fields/transformList/transformList.C | 48 +++++--- .../Fields/transformList/transformList.H | 49 +++++++- .../global/controlSwitches/controlSwitches.H | 66 +++++------ .../global/controlSwitches/controlSwitchesI.H | 78 ++++++------- .../BlockLduMatrixUpdateInterfaces.C | 2 +- .../lduInterfaces/lduInterface/lduInterface.C | 2 +- src/foam/meshes/lduMesh/lduPrimitiveMesh.H | 8 +- .../pointMeshMapper/pointPatchMapper.C | 2 +- .../mapPolyMesh/cellMapper/cellMapper.C | 2 +- .../mapPolyMesh/faceMapper/faceMapper.C | 2 +- .../mapPolyMesh/pointMapper/pointMapper.C | 2 +- src/foam/primitives/VectorN/TensorNI.H | 2 +- src/foam/primitives/transform/transform.H | 6 + .../MGridGenGAMGAgglomerate.C | 6 +- .../MGridGenGAMGAgglomeration.C | 2 +- .../MGridGenGAMGAgglomeration.H | 2 +- .../Templates/DsmcCloud/DsmcCloudTemplate.C | 2 +- .../autoHexMeshDriver/autoLayerDriver.C | 4 +- .../autoHexMeshDriver/autoLayerDriverShrink.C | 4 +- .../autoHexMeshDriver/autoSnapDriver.C | 4 +- .../meshRefinement/meshRefinement.C | 4 +- .../meshRefinement/meshRefinementBaffles.C | 4 +- .../extrudeLayer/extrudeLayer.C | 8 +- .../refineBoundaryLayersCells.C | 2 +- .../refineBoundaryLayersFaces.C | 2 +- .../refineBoundaryLayersFunctions.C | 4 +- .../utilities/containers/DynList/DynList.H | 5 + .../utilities/containers/DynList/DynListI.H | 11 ++ .../decomposeCells/decomposeCellsPyramids.C | 4 +- .../helperFunctionsFrontalMarking.C | 2 +- .../helperFunctionsGeometryQueriesI.H | 2 +- .../helperFunctionsTopologyManipulationI.H | 2 +- .../partTriMeshParallelAddressing.C | 2 +- .../utilities/octrees/meshOctree/meshOctree.C | 2 +- .../meshOctreeAutomaticRefinement.C | 2 +- .../meshOctreeCreatorCreateOctreeBoxes.C | 12 +- .../meshOctreeCubeCoordinatesI.H | 2 +- .../meshUntanglerCutRegionEdges.C | 2 +- .../meshUntanglerCutRegionFaces.C | 4 +- .../meshUntanglerCutRegionPoints.C | 6 +- .../meshUntanglerCutRegionTieBreak.C | 4 +- .../edgeExtractor/edgeExtractor.C | 2 +- .../edgeExtractor/edgeExtractorCorners.C | 2 +- .../adaptiveOverlapFringe.C | 2 +- .../solidInterface/solidInterface.C | 2 +- .../MapTetFemFields/tetPolyPatchMapper.C | 2 +- .../tetPolyMesh/tetPolyMesh.C | 4 +- .../tetPolyMesh/tetPolyMesh.H | 6 +- .../greyMeanAbsorptionEmission.C | 2 +- .../wideBandAbsorptionEmission.C | 2 +- .../aungierRedlichKwongI.H | 2 +- .../pengRobinson/pengRobinsonI.H | 2 +- .../redlichKwong/redlichKwongI.H | 2 +- .../soaveRedlichKwong/soaveRedlichKwongI.H | 2 +- .../realGasSpecieThermoI.H | 2 +- 105 files changed, 549 insertions(+), 391 deletions(-) diff --git a/ThirdParty/rpmBuild/SOURCES/scotch-6.0.4_patch_0 b/ThirdParty/rpmBuild/SOURCES/scotch-6.0.4_patch_0 index fba224042..84f4393bc 100644 --- a/ThirdParty/rpmBuild/SOURCES/scotch-6.0.4_patch_0 +++ b/ThirdParty/rpmBuild/SOURCES/scotch-6.0.4_patch_0 @@ -27,14 +27,15 @@ diff -ruN scotch_6.0.4_orig/src/Make.inc/Makefile.inc.i686_mac_darwin10.shlib sc diff -ruN scotch_6.0.4_orig/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib scotch_6.0.4/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib --- scotch_6.0.4_orig/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib 2014-08-05 08:56:17.000000000 -0400 +++ scotch_6.0.4/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib 2015-06-21 00:26:43.072992194 -0400 -@@ -8,10 +8,10 @@ +@@ -8,10 +8,11 @@ CAT = cat CCS = gcc CCP = mpicc -CCD = gcc -CFLAGS = -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -Drestrict=__restrict +CCD = mpicc -I$(MPI_HOME)/include -+CFLAGS = -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -Drestrict=__restrict -Xlinker --no-as-needed ++INTSIZE = ++CFLAGS = -O3 $(INTSIZE) -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -Drestrict=__restrict -Xlinker --no-as-needed CLIBFLAGS = -shared -fPIC -LDFLAGS = -lz -lm -pthread +LDFLAGS = -lz -lm -pthread -lrt diff --git a/ThirdParty/rpmBuild/SPECS/ParMGridGen-1.0.spec b/ThirdParty/rpmBuild/SPECS/ParMGridGen-1.0.spec index 540f37ab3..d52fc4073 100644 --- a/ThirdParty/rpmBuild/SPECS/ParMGridGen-1.0.spec +++ b/ThirdParty/rpmBuild/SPECS/ParMGridGen-1.0.spec @@ -78,6 +78,7 @@ Prefix: %{_prefix} Group: Development/Tools Patch0: ParMGridGen-1.0.patch_darwin Patch1: ParMGridGen-1.0.patch +Patch2: ParMGridGen-1.0.patch_64Bit %define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS} @@ -93,6 +94,10 @@ Patch1: ParMGridGen-1.0.patch %patch1 -p1 %endif +if [ "$WM_LABEL_SIZE" = "64" ]; then +%patch2 -p1 +fi + %build [ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" diff --git a/ThirdParty/rpmBuild/SPECS/metis-5.1.0.spec b/ThirdParty/rpmBuild/SPECS/metis-5.1.0.spec index 5450c3e68..f115d27ba 100644 --- a/ThirdParty/rpmBuild/SPECS/metis-5.1.0.spec +++ b/ThirdParty/rpmBuild/SPECS/metis-5.1.0.spec @@ -77,6 +77,7 @@ Source: %url/%{name}-%{version}.tar.gz Prefix: %{_prefix} Group: Development/Tools Patch0: metis-5.1.0_patch_gcc +Patch1: metis-5.1.0_patch_64Bit %define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS} @@ -90,6 +91,10 @@ Patch0: metis-5.1.0_patch_gcc %patch0 -p1 %endif +if [ "$WM_LABEL_SIZE" = "64" ]; then +%patch1 -p1 +fi + %build [ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" diff --git a/ThirdParty/rpmBuild/SPECS/parmetis-4.0.3.spec b/ThirdParty/rpmBuild/SPECS/parmetis-4.0.3.spec index 1f0dea975..00b49a908 100644 --- a/ThirdParty/rpmBuild/SPECS/parmetis-4.0.3.spec +++ b/ThirdParty/rpmBuild/SPECS/parmetis-4.0.3.spec @@ -78,6 +78,7 @@ Prefix: %{_prefix} Group: Development/Tools Patch0: ParMetis-3.1.1.patch_darwin Patch1: ParMetis-3.1.1.patch +Patch2: ParMetis-3.1.1.patch_64Bit %define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS} @@ -93,6 +94,10 @@ Patch1: ParMetis-3.1.1.patch #patch1 -p1 %endif +if [ "$WM_LABEL_SIZE" = "64" ]; then +%patch2 -p1 +fi + %build [ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" diff --git a/ThirdParty/rpmBuild/SPECS/scotch-6.0.4.spec b/ThirdParty/rpmBuild/SPECS/scotch-6.0.4.spec index 19a9c3058..baa3f77e0 100644 --- a/ThirdParty/rpmBuild/SPECS/scotch-6.0.4.spec +++ b/ThirdParty/rpmBuild/SPECS/scotch-6.0.4.spec @@ -77,6 +77,7 @@ Prefix: %{_prefix} Group: Development/Tools Patch0: scotch-6.0.4_patch_0 Patch1: scotch-6.0.4_patch_darwin +Patch2: scotch-6.0.4_patch_64Bit %define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS} @@ -92,6 +93,10 @@ Patch1: scotch-6.0.4_patch_darwin %patch0 -p1 %endif +if [ "$WM_LABEL_SIZE" = "64" ]; then +%patch2 -p1 +fi + %build # export WM settings in a form that GNU configure recognizes # [ -n "$WM_CC" ] && export CC="$WM_CC" diff --git a/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C b/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C index b536a7162..5fcafb449 100644 --- a/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C +++ b/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C @@ -212,7 +212,7 @@ int main(int argc, char *argv[]) { label curMeshEdge = meshEdges[edgeI]; - labelList curEdgePatchIDs(2, -1); + labelList curEdgePatchIDs(2, label(-1)); label patchI = -1; diff --git a/applications/utilities/mesh/conversion/foamMeshToAbaqus/foamMeshToAbaqus.C b/applications/utilities/mesh/conversion/foamMeshToAbaqus/foamMeshToAbaqus.C index b16249f29..0dd42fa38 100644 --- a/applications/utilities/mesh/conversion/foamMeshToAbaqus/foamMeshToAbaqus.C +++ b/applications/utilities/mesh/conversion/foamMeshToAbaqus/foamMeshToAbaqus.C @@ -99,7 +99,11 @@ int main(int argc, char *argv[]) const labelList faceOwner = mesh.faceOwner(); const vectorField faceNormals = mesh.Sf()/mesh.magSf(); - labelListList abaqusCellPoints(cellPoints.size(), List