From 6c7201610e4c56a06cfb03d8459dc3efae502e90 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 17 Feb 2021 17:56:39 +0100 Subject: [PATCH 1/2] Bugfix for access of unallocated variable IntelMPI seems to access sendbuf for root!=0 in MPI_Scatterv --- src/grid/discretization_grid.f90 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/grid/discretization_grid.f90 b/src/grid/discretization_grid.f90 index 48ad5b7e1..bb6fa9d8d 100644 --- a/src/grid/discretization_grid.f90 +++ b/src/grid/discretization_grid.f90 @@ -68,8 +68,11 @@ subroutine discretization_grid_init(restart) print'(/,a)', ' <<<+- discretization_grid init -+>>>'; flush(IO_STDOUT) - if(worldrank == 0) call readVTR(grid,geomSize,origin,materialAt_global) - + if(worldrank == 0) then + call readVTR(grid,geomSize,origin,materialAt_global) + else + allocate(materialAt_global(0)) ! needed for IntelMPI + endif call MPI_Bcast(grid,3,MPI_INTEGER,0,PETSC_COMM_WORLD, ierr) if (ierr /= 0) error stop 'MPI error' From 2d49ebc460a76c32f6f20d7fdd9145333d3027fc Mon Sep 17 00:00:00 2001 From: Test User Date: Mon, 22 Feb 2021 19:08:00 +0100 Subject: [PATCH 2/2] [skip ci] updated version information after successful test of v3.0.0-alpha2-490-g4d5e5cfb7 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 26e9be190..aae4cbbae 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v3.0.0-alpha2-478-gc9e4dc21f +v3.0.0-alpha2-490-g4d5e5cfb7