From 6d88fa9d310a0fa2b4314d5a4574d54d51119c16 Mon Sep 17 00:00:00 2001 From: Benjamin Brands Date: Thu, 9 Aug 2018 12:59:31 +0200 Subject: [PATCH] remove inconsistency/bug in cases of serial save/ parallel load and vice versa --- source/lac/scalapack.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lac/scalapack.cc b/source/lac/scalapack.cc index 6a41d47a22..6c0292042f 100644 --- a/source/lac/scalapack.cc +++ b/source/lac/scalapack.cc @@ -2739,7 +2739,7 @@ ScaLAPACKMatrix::save_parallel( 1, n_mpi_processes); - const int MB = n_rows, NB = std::ceil(n_columns / n_mpi_processes); + const int MB = n_rows, NB = std::ceil((double)n_columns / n_mpi_processes); ScaLAPACKMatrix tmp(n_rows, n_columns, column_grid, MB, NB); copy_to(tmp); @@ -3155,7 +3155,7 @@ ScaLAPACKMatrix::load_parallel(const char *filename) 1, n_mpi_processes); - const int MB = n_rows, NB = std::ceil(n_columns / n_mpi_processes); + const int MB = n_rows, NB = std::ceil((double)n_columns / n_mpi_processes); ScaLAPACKMatrix tmp(n_rows, n_columns, column_grid, MB, NB); // get pointer to data held by the process -- 2.39.5