diff --git a/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.patch_64Bit b/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.patch_64Bit new file mode 100644 index 000000000..aa634ec21 --- /dev/null +++ b/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.patch_64Bit @@ -0,0 +1,38 @@ +--- orig/ParMGridGen-1.0/mgridgen.h 2019-01-15 13:32:54.247812378 +0100 ++++ ParMGridGen-1.0/mgridgen.h 2019-01-15 13:35:03.972952464 +0100 +@@ -1,4 +1,4 @@ +-typedef int idxtype; ++typedef long int idxtype; + typedef double realtype; + + +--- orig/ParMGridGen-1.0/parmgridgen.h 2019-01-15 13:32:54.251812414 +0100 ++++ ParMGridGen-1.0/parmgridgen.h 2019-01-15 13:42:14.344335223 +0100 +@@ -1,4 +1,4 @@ +-typedef int idxtype; ++typedef long int idxtype; + typedef double realtype; + + void ParMGridGen(idxtype *, idxtype *, realtype *, realtype *, idxtype *, +--- orig/ParMGridGen-1.0/ParMGridGen/IMParMetis-2.0/ParMETISLib/struct.h 2019-01-15 13:32:54.247812378 +0100 ++++ ParMGridGen-1.0/ParMGridGen/IMParMetis-2.0/ParMETISLib/struct.h 2019-01-15 13:44:17.605231500 +0100 +@@ -15,7 +15,7 @@ + + /* Indexes are as long as integers for now */ + #ifdef IDXTYPE_INT +-typedef int idxtype; ++typedef long int idxtype; + #define IDX_DATATYPE MPI_INT + #else + typedef short idxtype; +--- orig/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h 2019-01-15 13:32:54.251812414 +0100 ++++ ParMGridGen-1.0/MGridGen/IMlib/IMlib.h 2019-01-15 13:52:11.504522970 +0100 +@@ -16,7 +16,7 @@ + + /* Indexes are as long as integers for now */ + #ifdef IDXTYPE_INT +-typedef int idxtype; ++typedef long int idxtype; + #else + typedef short idxtype; + #endif diff --git a/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.patch_64Bit b/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.patch_64Bit new file mode 100644 index 000000000..0d2684910 --- /dev/null +++ b/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.patch_64Bit @@ -0,0 +1,11 @@ +--- orig/parmetis-4.0.3/metis/include/metis.h 2019-01-15 12:40:31.050842343 +0100 ++++ parmetis-4.0.3/metis/include/metis.h 2019-01-15 12:43:01.883662756 +0100 +@@ -30,7 +30,7 @@ + GCC does provides these definitions in stdint.h, but it may require some + modifications on other architectures. + --------------------------------------------------------------------------*/ +-#define IDXTYPEWIDTH 32 ++#define IDXTYPEWIDTH 64 + + + /*-------------------------------------------------------------------------- diff --git a/ThirdParty/rpmBuild/SOURCES/metis-5.1.0_patch_64Bit b/ThirdParty/rpmBuild/SOURCES/metis-5.1.0_patch_64Bit new file mode 100644 index 000000000..dc702db1d --- /dev/null +++ b/ThirdParty/rpmBuild/SOURCES/metis-5.1.0_patch_64Bit @@ -0,0 +1,11 @@ +--- orig/metis-5.1.0/include/metis.h 2019-01-15 12:40:31.050842343 +0100 ++++ metis-5.1.0/include/metis.h 2019-01-15 12:43:01.883662756 +0100 +@@ -30,7 +30,7 @@ + GCC does provides these definitions in stdint.h, but it may require some + modifications on other architectures. + --------------------------------------------------------------------------*/ +-#define IDXTYPEWIDTH 32 ++#define IDXTYPEWIDTH 64 + + + /*-------------------------------------------------------------------------- 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/SOURCES/scotch-6.0.4_patch_64Bit b/ThirdParty/rpmBuild/SOURCES/scotch-6.0.4_patch_64Bit new file mode 100644 index 000000000..fce35365a --- /dev/null +++ b/ThirdParty/rpmBuild/SOURCES/scotch-6.0.4_patch_64Bit @@ -0,0 +1,12 @@ +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 +--- orig/scotch_6.0.4/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib 2019-01-15 11:26:39.142915259 +0100 ++++ scotch_6.0.4/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib 2019-01-15 11:26:58.871041175 +0100 +@@ -9,7 +9,7 @@ + CCS = gcc + CCP = mpicc + CCD = mpicc -I$(MPI_HOME)/include +-INTSIZE = ++INTSIZE = -DINTSIZE64 + 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 -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/solvers/heatTransfer/chtMultiRegionFoam/fluid/createFluidFields.H b/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/createFluidFields.H index c2aebcf0d..060b5ac97 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/createFluidFields.H +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/createFluidFields.H @@ -8,7 +8,7 @@ PtrList turbulence(fluidRegions.size()); PtrList DpDtFluid(fluidRegions.size()); - List initialMassFluid(fluidRegions.size()); + scalarList initialMassFluid(fluidRegions.size()); // Populate fluid field pointer lists forAll(fluidRegions, i) diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/regionProperties/regionProperties.H b/applications/solvers/heatTransfer/chtMultiRegionFoam/regionProperties/regionProperties.H index ee955e82d..0d956eb7a 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/regionProperties/regionProperties.H +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/regionProperties/regionProperties.H @@ -54,10 +54,10 @@ class regionProperties // Private data //- List of the fluid region names - List fluidRegionNames_; + wordList fluidRegionNames_; //- List of the solid region names - List solidRegionNames_; + wordList solidRegionNames_; // Private Member Functions @@ -87,10 +87,10 @@ public: // Access //- Return const reference to the list of fluid region names - const List& fluidRegionNames() const; + const wordList& fluidRegionNames() const; //- Return const reference to the list of solid region names - const List& solidRegionNames() const; + const wordList& solidRegionNames() const; }; diff --git a/applications/solvers/heatTransfer/chtMultiRegionSimpleFoam/fluid/createFluidFields.H b/applications/solvers/heatTransfer/chtMultiRegionSimpleFoam/fluid/createFluidFields.H index 4365345c7..581420428 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionSimpleFoam/fluid/createFluidFields.H +++ b/applications/solvers/heatTransfer/chtMultiRegionSimpleFoam/fluid/createFluidFields.H @@ -8,9 +8,9 @@ PtrList turbulence(fluidRegions.size()); PtrList DpDtf(fluidRegions.size()); - List initialMassFluid(fluidRegions.size()); - List