diff --git a/src/Pstream/mpi/Make/options b/src/Pstream/mpi/Make/options index 43a48312c4..8fcb7016f8 100644 --- a/src/Pstream/mpi/Make/options +++ b/src/Pstream/mpi/Make/options @@ -1,5 +1,5 @@ sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB) -sinclude $(RULES)/mplib$(WM_MPLIB) +sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB) EXE_INC = $(PFLAGS) $(PINC) $(c++LESSWARN) LIB_LIBS = $(PLIBS) diff --git a/src/conversion/vtk/part/foamVtuSizingTemplates.C b/src/conversion/vtk/part/foamVtuSizingTemplates.C index 4bfda81ac6..b070ab67da 100644 --- a/src/conversion/vtk/part/foamVtuSizingTemplates.C +++ b/src/conversion/vtk/part/foamVtuSizingTemplates.C @@ -571,7 +571,8 @@ void Foam::vtk::vtuSizing::populateArrays if (output == contentType::LEGACY) { // Update size for legacy face stream - faceOutput[startLabel] = (faceIndexer - startLabel); + // (subtract 1 to avoid counting the storage location) + faceOutput[startLabel] = (faceIndexer - 1 - startLabel); } else { diff --git a/src/parallel/decompose/ptscotchDecomp/Make/options b/src/parallel/decompose/ptscotchDecomp/Make/options index 72c6816566..0fcafd2559 100644 --- a/src/parallel/decompose/ptscotchDecomp/Make/options +++ b/src/parallel/decompose/ptscotchDecomp/Make/options @@ -1,5 +1,5 @@ sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB) -sinclude $(RULES)/mplib$(WM_MPLIB) +sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB) EXE_INC = \ $(PFLAGS) $(PINC) \ diff --git a/src/parallel/decompose/scotchDecomp/Make/options b/src/parallel/decompose/scotchDecomp/Make/options index ebf3fa21b4..d98ed6ce43 100644 --- a/src/parallel/decompose/scotchDecomp/Make/options +++ b/src/parallel/decompose/scotchDecomp/Make/options @@ -3,7 +3,7 @@ * This is purely to avoid scotch.h including mpicxx.h, which causes problems. */ sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB) -sinclude $(RULES)/mplib$(WM_MPLIB) +sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB) EXE_INC = \ $(PFLAGS) $(PINC) \ diff --git a/src/renumber/zoltanRenumber/Make/options b/src/renumber/zoltanRenumber/Make/options index 79dc4f2bc8..2d1fd2e105 100644 --- a/src/renumber/zoltanRenumber/Make/options +++ b/src/renumber/zoltanRenumber/Make/options @@ -1,5 +1,5 @@ sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB) -sinclude $(RULES)/mplib$(WM_MPLIB) +sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB) EXE_INC = \ $(PFLAGS) $(PINC) \ diff --git a/wmake/rules/General/ADIOS b/wmake/rules/General/ADIOS index 87bda2c752..c2cb3558ae 100644 --- a/wmake/rules/General/ADIOS +++ b/wmake/rules/General/ADIOS @@ -2,7 +2,7 @@ # ADIOS includes/libraries sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB) -sinclude $(RULES)/mplib$(WM_MPLIB) +sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB) # Obtain compile/link flags via adios_config ADIOS_INC := $(shell $(ADIOS_ARCH_PATH)/bin/adios_config -c) diff --git a/wmake/rules/General/ADIOS2 b/wmake/rules/General/ADIOS2 index f158236942..c880d0c3b9 100644 --- a/wmake/rules/General/ADIOS2 +++ b/wmake/rules/General/ADIOS2 @@ -2,7 +2,7 @@ # ADIOS2 includes/libraries sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB) -sinclude $(RULES)/mplib$(WM_MPLIB) +sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB) # Obtain prefix and library information via adios2-config ADIOS_PREFIX := $(shell $(ADIOS2_ARCH_PATH)/bin/adios2-config --prefix)