We have the pflotran parallel problem : "wall clock time increases with the number of cores used", observed with the input file : .../pflotran/shortcourse/exercises/1D_Calcite/calcite_flow_and_tran.in, with different discretizations GRID NXYZ.
Note that outputs are identical with those in serial.
![]()
mpirun (Open MPI) 4.1.6
HYDRA build details:$ cat /etc/lsb-release
Version: 4.2.1
Release Date: Wed Apr 17 15:30:02 CDT 2024
CC: gcc -fPIC -Wno-lto-type-mismatch -Wno-stringop-overflow -O3
Configure options: '--disable-option-checking' '--prefix=/home/u_pflotran/petsc/arch-linux-c-opt' 'MAKE=/usr/bin/gmake' '--libdir=/home/u_pflotran/petsc/arch-linux-c-opt/lib' 'CC=gcc' 'CFLAGS=-fPIC -Wno-lto-type-mismatch -Wno-stringop-overflow -O3 -g -O2' 'AR=/usr/bin/ar' 'ARFLAGS=cr' 'CXX=g++' 'CXXFLAGS=-Wno-lto-type-mismatch -Wno-psabi -O3 -std=gnu++20 -fPIC -g -O2' 'FFLAGS=-fPIC -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -O3 -Wno-unused-function -fallow-argument-mismatch -fallow-argument-mismatch -g -O2' 'FC=gfortran' 'F77=gfortran' 'FCFLAGS=-fPIC -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -O3 -Wno-unused-function -fallow-argument-mismatch -fallow-argument-mismatch -g -O2' '--enable-shared' '--with-pm=hydra' '--disable-java' '--with-hwloc=embedded' '--with-device=ch3:nemesis' '--enable-g=meminit,dbg' 'PYTHON=/usr/bin/python3' '--disable-maintainer-mode' '--disable-dependency-tracking' '--cache-file=/dev/null' '--srcdir=.' 'LDFLAGS=' 'LIBS=' 'CPPFLAGS= -I/home/u_pflotran/petsc/arch-linux-c-opt/externalpackages/mpich-4.2.1/src/mpl/include -I/home/u_pflotran/petsc/arch-linux-c-opt/externalpackages/mpich-4.2.1/modules/json-c -I/home/u_pflotran/petsc/arch-linux-c-opt/externalpackages/mpich-4.2.1/modules/hwloc/include -D_REENTRANT -I/home/u_pflotran/petsc/arch-linux-c-opt/externalpackages/mpich-4.2.1/src/mpi/romio/include -I/home/u_pflotran/petsc/arch-linux-c-opt/externalpackages/mpich-4.2.1/src/pmi/include'
Process Manager: pmi
Launchers available: ssh rsh fork slurm ll lsf sge manual persist
Topology libraries available: hwloc
Resource management kernels available: user slurm ll lsf sge pbs cobalt
Demux engines available: poll select
DISTRIB_ID=LinuxMint$ cat /etc/os-release
DISTRIB_RELEASE=22.1
DISTRIB_CODENAME=xia
DISTRIB_DESCRIPTION="Linux Mint 22.1 Xia"
NAME="Linux Mint"$ uname -a
VERSION="22.1 (Xia)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 22.1"
VERSION_ID="22.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=xia
UBUNTU_CODENAME=noble
Linux pflocalcul 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux$ gcc --version
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0$ pflotran -version
Copyright (C) 2023 Free Software Foundation, Inc.
Petsc Release Version 3.21.5, unknown$ cd $PFLOTRAN_DIR/src/pflotran
The PETSc Team
petsc...@mcs.anl.gov
https://petsc.org/
See https://petsc.org/release/changes for recent updates.
See https://petsc.org/release/faq for problems.
See https://petsc.org/release/manualpages for help.
Libraries linked from /home/u_pflotran/petsc/arch-linux-c-opt/lib
Please find attached the file make.log .==========================================
$ mpirun -n 3 pi_parallel
---------------------------------------------
Number of iterations = 2000000000
Number of cores = 3
Core 1 : Number of iterations = 666666667 (fraction = 1/3.000000)
Core 0 : Number of iterations = 666666667 (fraction = 1/3.000000)
Core 2 : Number of iterations = 666666666 (fraction = 1/3.000000)
pi is approximately 3.1415926535898153, Error is 0.0000000000000222
wall clock time = 3.332112E+00 s
---------------------------------------------