Error in Building PFLOTRAN

237 views
Skip to first unread message

Saubhagya Singh Rathore

unread,
Mar 1, 2021, 11:30:58 AM3/1/21
to pflotran-users
Hi PFLOTRAN developers and users, 

I am facing some difficulties in making PFLOTRAN on macOS (10.15.7).  While making PFLOTRAN, preconditioner is throwing a rank mismatch error.  I have attached two files that should provide relevant information. Any suggestions will be appreciated. 

Files:
1) screen.log - error message while making PFLOTRAN
2) configure.log - PETSC configure file 

Thanks
Saubhagya
screen.log
configure.log

Hammond, Glenn E

unread,
Mar 1, 2021, 8:46:58 PM3/1/21
to pflotra...@googlegroups.com

Can anyone with macOS (10.15.7) or later successfully compile the code or replicate this issue?

 

Glenn

 

--
You received this message because you are subscribed to the Google Groups "pflotran-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pflotran-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pflotran-users/81e15670-cdf5-48d8-9b7f-4d0fd33b5ee8n%40googlegroups.com.

Kewei Chen

unread,
Mar 1, 2021, 10:52:36 PM3/1/21
to pflotra...@googlegroups.com
I compiled PFLOTRAN on macOS(10.15.6, Catalina) successfully. Not sure about macOS10.15.7.

Kewei

Peter Lichtner

unread,
Mar 2, 2021, 11:00:39 AM3/2/21
to pflotran-users
I am using Big Sur (11.2.2). I get a lot of mismatch warnings but they seem to do no harm. For
preconditioner_cpr.F90 it compiles fine (note I am using petsc 3.14.2):

/Users/lichtner/pflotran/petsc-3.14.2/petsc-3.14.2-BigSur/bin/mpif90 -o preconditioner_cpr.o -c -O3   -I/Users/lichtner/pflotran/petsc-3.14.2/include -I/Users/lichtner/pflotran/petsc-3.14.2/petsc-3.14.2-BigSur/include -I/opt/X11/include   -I. `pwd`/preconditioner_cpr.F90
/Users/lichtner/pflotran/petsc-3.14.2/petsc-3.14.2-BigSur/bin/mpif90 -o simulation_aux.o -c -O3   -I/Users/lichtner/pflotran/petsc-3.14.2/include -I/Users/lichtner/pflotran/petsc-3.14.2/petsc-3.14.2-BigSur/include -I/opt/X11/include   -I. `pwd`/simulation_aux.F90

/Users/lichtner/pflotran/petsc-3.14.2/petsc-3.14.2-BigSur/bin/mpif90 -o option.o -c -O3   -I/Users/lichtner/pflotran/petsc-3.14.2/include -I/Users/lichtner/pflotran/petsc-3.14.2/petsc-3.14.2-BigSur/include -I/opt/X11/include   -I. `pwd`/option.F90
/Users/lichtner/pflotran/pflotran_v3.0/src/pflotran/option.F90:1174:21:

 1174 |   call MPI_Allreduce(temp_real_in,temp_real_out,TWO_INTEGER_MPI, &
      |                     1
......
 1206 |   call MPI_Allreduce(value,temp_real,ONE_INTEGER_MPI,MPI_DOUBLE_PRECISION, &
      |                     2
Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
/Users/lichtner/pflotran/pflotran_v3.0/src/pflotran/option.F90:655:21:

  655 |   call MPI_Allreduce(MPI_IN_PLACE,option%error_while_nonblocking, &
      |                     1
......
 1206 |   call MPI_Allreduce(value,temp_real,ONE_INTEGER_MPI,MPI_DOUBLE_PRECISION, &
      |                     2
Warning: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(8)).
/

For fortran compiler I have:

gfortran --version
GNU Fortran (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

…Peter


Hammond, Glenn E

unread,
Mar 2, 2021, 10:48:25 PM3/2/21
to pflotra...@googlegroups.com

Saubhagya,

 

Which compiler are you using:  mpif90 --version

 

Also, you might try PETSc v3.14.

 

Glenn

 

From: pflotra...@googlegroups.com <pflotra...@googlegroups.com> On Behalf Of Saubhagya Singh Rathore
Sent: Monday, March 1, 2021 8:31 AM
To: pflotran-users <pflotra...@googlegroups.com>
Subject: [pflotran-users: 6164] Error in Building PFLOTRAN

 

Check twice before you click! This email originated from outside PNNL.

 

--

Saubhagya Singh Rathore

unread,
Mar 3, 2021, 3:30:35 PM3/3/21
to pflotra...@googlegroups.com
Thanks Glenn.

Compiler is GNU Fortran (Homebrew GCC 10.2.0) 10.2.0. I will try with PETSc v3.14. The problem could be due to multiple compilers available on my system. I will try to provide a compiler path explicitly. 

Thanks
Saubhagya

Saubhagya Singh Rathore

unread,
Mar 4, 2021, 3:24:22 PM3/4/21
to pflotra...@googlegroups.com
My solver related error seems to be solved, however I am getting another error. I could not figure out a way by looking into pmc_subsurface.F90 file. Any help would be appreciated. 

/Users/7s2/Installations/pflotran/src/pflotran/pmc_subsurface.F90:463:30:

  463 |                               realization,ierr);CHKERRQ(ierr)
      |                              1
Error: Explicit interface required for polymorphic argument at (1)
/Users/7s2/Installations/pflotran/src/pflotran/pmc_subsurface.F90:463:30:

  317 |                                             this%pm_ptr, &
      |                                            2
......
  463 |                               realization,ierr);CHKERRQ(ierr)
      |                              1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CLASS(__class_3CD8613_p)/TYPE(pm_base_pointer_type)).
make: *** [pmc_subsurface.o] Error 1


Thank you
Saubhagya


Hammond, Glenn E

unread,
Mar 4, 2021, 4:40:50 PM3/4/21
to pflotra...@googlegroups.com

Saubhagya,

 

This is an issues that did not get cleanup in the released version of the code.  It was fixed in the development version.  I have pushed a fix to the released version.  Once it is merged, you will need to ‘git checkout maint/v3.0’ which has all the bug fixes.

 

Michael,

 

Can you merge this once is passes CI?


Glenn

 

From: pflotra...@googlegroups.com <pflotra...@googlegroups.com> On Behalf Of Saubhagya Singh Rathore
Sent: Thursday, March 4, 2021 12:24 PM
To: pflotra...@googlegroups.com
Subject: Re: [pflotran-users: 6179] Error in Building PFLOTRAN

 

Check twice before you click! This email originated from outside PNNL.

 

My solver related error seems to be solved, however I am getting another error. I could not figure out a way by looking into pmc_subsurface.F90 file. Any help would be appreciated. 

--

You received this message because you are subscribed to the Google Groups "pflotran-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pflotran-user...@googlegroups.com.

Hammond, Glenn E

unread,
Mar 4, 2021, 4:42:53 PM3/4/21
to pflotra...@googlegroups.com

Hammond, Glenn E

unread,
Mar 5, 2021, 10:58:14 AM3/5/21
to pflotra...@googlegroups.com

Saubhagya,

 

The latest PR for maint/v3.0 should fix the issue.

 

git checkout maint/v3.0

git pull

 

Glenn

 

From: pflotra...@googlegroups.com <pflotra...@googlegroups.com> On Behalf Of Saubhagya Singh Rathore

Sent: Wednesday, March 3, 2021 12:30 PM
To: pflotra...@googlegroups.com

Subject: Re: [pflotran-users: 6176] Error in Building PFLOTRAN

 

Check twice before you click! This email originated from outside PNNL.

 

Thanks Glenn.

--

You received this message because you are subscribed to the Google Groups "pflotran-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pflotran-user...@googlegroups.com.

Saubhagya Singh Rathore

unread,
Mar 8, 2021, 3:25:52 PM3/8/21
to pflotran-users
Hi Glenn, 

Thanks. The updated version of pflotran did fix the original issue however, I got another error. Related message is pasted below:

/Users/7s2/Installations/pflotran/src/pflotran/checkpoint_surface.F90:398:32:

  384 |   call PetscBagRegisterReal(bag,header%surf_flow_time,0.d0, &
      |                                2
......
  398 |   call PetscBagRegisterReal(bag,header%subsurf_surf_coupling,0, &
      |                                1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/REAL(8)).
make: *** [checkpoint_surface.o] Error 1

I fixed it by changing PetscBagRegisterReal in line 398 to PetscBagRegisterInt. However, I am getting a different error related to unavailability of symbols in architecture. Screen log file attached with this email. I could not think of any way to resolve this issue. Any guidance will be appreciated. 

Thanks
Saubhagya
screen.log

Kris Kuhlman

unread,
Mar 8, 2021, 4:20:41 PM3/8/21
to pflotran-users
FYI, the issues are because you are using the newest version of gfortran (v10). Switching to an older version of gfortran (~v8), you should not have these issues. 

Hammond, Glenn E

unread,
Mar 9, 2021, 8:04:53 PM3/9/21
to pflotra...@googlegroups.com

I have fixed the bug below in maint/v3.0.  This file was removed from master over a month ago.  Regarding the compiler issues, I would follow Kris’ advice on using an older compiler.

 

Glenn

 

Saubhagya Singh Rathore

unread,
Mar 10, 2021, 8:23:13 AM3/10/21
to pflotra...@googlegroups.com
Thank you Kris and Glenn. Thank you for fixing the bug, that issue is resolved. I am attempting to build using gfortran v8 now. 

Regards
Saubhagya

You received this message because you are subscribed to a topic in the Google Groups "pflotran-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pflotran-users/mTGpufUKJpc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pflotran-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pflotran-users/CO6PR09MB8600A143965A26A5D10A608C9A919%40CO6PR09MB8600.namprd09.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages