[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Tetsuo Koyama |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Mon, 9 Aug 2021 08:01:23 -0400 (EDT) |
branch: devel-tetsuo-fix-error-in-ubuntu20.04
commit bc309aa00b96931f6e18dfbf9c6f9b5a3463e866
Author: Tetsuo Koyama <tkoyama010@gmail.com>
AuthorDate: Mon Aug 9 20:50:34 2021 +0900
Fix the compile error of nbp in ubuntu20.04
---
src/getfem_models.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/getfem_models.cc b/src/getfem_models.cc
index c9eedf8..1724175 100644
--- a/src/getfem_models.cc
+++ b/src/getfem_models.cc
@@ -2337,9 +2337,10 @@ namespace getfem {
"Invalid assembly version BUILD_WITH_LIN");
GMM_ASSERT1(version != BUILD_WITH_INTERNAL,
"Invalid assembly version BUILD_WITH_INTERNAL");
+ int nbp=1;
#if GETFEM_PARA_LEVEL > 1
double t_ref = MPI_Wtime();
- int rk=0, nbp=1;
+ int rk=0;
MPI_Comm_rank(MPI_COMM_WORLD, &rk);
MPI_Comm_size(MPI_COMM_WORLD, &nbp);
#endif