Author Topic: Installing parfeap with some problem  (Read 8559 times)

LXH

  • New Member
  • *
  • Posts: 4
Installing parfeap with some problem
« on: January 05, 2022, 08:16:52 PM »
Dear All.
I'm installing parfeap with feap ver8.5,petsc version 3.16.2 , following the step writing in the 'parmanual_86.pdf'(page 23-24),and when I using the command 'make install' in the directory  ver85/parfeap. I got the fllowing errors

ifort -c -O2 -Warn  -I/home/ver85/include -I/home/ver85/modules -I/home/ver85/include/integer8  ../main/feap85.f -o ../main/feap85.o
../main/feap85.f(183): warning #8889: Explicit declaration of the EXTERNAL attribute is required.   [PSTART]
      call pstart()
-----------^
../main/feap85.f(187): warning #8889: Explicit declaration of the EXTERNAL attribute is required.   [PCONTR]
      call pcontr()
-----------^
ifort -c -O2 -Warn  -I/home/ver85/include -I/home/ver85/modules -I/home/ver85/include/integer8  adomnam.f -o adomnam.o
adomnam.f(50): warning #8889: Explicit declaration of the EXTERNAL attribute is required.   [ADDEXT]
      call addext(fout,fext,128,5)
-----------^
mpiifort -o filargs.o -c -fPIC -g -O3    -I/home/petsc/petsc-3.16.2/include -I/home/petsc/petsc-3.16.2/gnu-opt/include -I/home/ver85/include -I/home/ver85/modules -I/home/ver85/include/integer8         `pwd`/filargs.F
mpiifort -o fparsop.o -c -fPIC -g -O3    -I/home/petsc/petsc-3.16.2/include -I/home/petsc/petsc-3.16.2/gnu-opt/include -I/home/ver85/include -I/home/ver85/modules -I/home/ver85/include/integer8         `pwd`/fparsop.F
mpiifort -o parbmat.o -c -fPIC -g -O3    -I/home/petsc/petsc-3.16.2/include -I/home/petsc/petsc-3.16.2/gnu-opt/include -I/home/ver85/include -I/home/ver85/modules -I/home/ver85/include/integer8         `pwd`/parbmat.F

/home/ver85/parfeap/pfeapc.h(2): error #6457: This derived type name has not been declared.   [TVEC]
      type(tVec)             rhs, sol, xvec
-----------^
/home/ver85/parfeap/pfeapc.h(5): error #6457: This derived type name has not been declared.   [TVEC]
      type(tVec)             yvec, zvec
-----------^
/home/ver85/parfeap/pfeapc.h( 8 ): error #6457: This derived type name has not been declared.   [TVEC]
      type(tVec)             Mdiag, Msqrt
-----------^
/home/ver85/parfeap/pfeapc.h(11): error #6457: This derived type name has not been declared.   [TMAT]
      type(tMat)             Kmat, Mmat, Pmat
-----------^
/home/ver85/parfeap/pfeapc.h(14): error #6457: This derived type name has not been declared.   [TKSP]
      type(tKSP)             kspsol
-----------^
/home/ver85/parfeap/parbmat.F(55): error #6404: This name does not have a type, and must have an explicit type.   [XVEC]
      if(xvec .eq. 0) then
---------^
/home/ver85/parfeap/parbmat.F(56): error #6404: This name does not have a type, and must have an explicit type.   [PETSC_COMM_WORLD]
        call VecCreate        (PETSC_COMM_WORLD, xvec, ierr)
-------------------------------^
/home/ver85/parfeap/parbmat.F(57): error #6404: This name does not have a type, and must have an explicit type.   [PETSC_DECIDE]
        call VecSetSizes      (xvec, numpeq, PETSC_DECIDE, ierr)
---------------------------------------------^
/home/ver85/parfeap/parbmat.F(61): error #6404: This name does not have a type, and must have an explicit type.   [YVEC]
      if(yvec .eq. 0) then
---------^
/home/ver85/parfeap/parbmat.F(72): error #6404: This name does not have a type, and must have an explicit type.   [INSERT_VALUES]
          call VecSetValue(xvec,k,phib(j),INSERT_VALUES, ierr)
------------------------------------------^
/home/ver85/parfeap/parbmat.F(79): error #6404: This name does not have a type, and must have an explicit type.   [MMAT]
        call MatMult( Mmat, xvec, yvec, ierr )
----------------------^
/home/ver85/parfeap/parbmat.F(81): error #6404: This name does not have a type, and must have an explicit type.   [MDIAG]
        call VecPointwiseMult( yvec, Mdiag, xvec, ierr )
-------------------------------------^
/home/ver85/parfeap/pfeapc.h(3): error #6404: This name does not have a type, and must have an explicit type.   [RHS]
      common /pfeapc/ rhs, sol, xvec
----------------------^
/home/ver85/parfeap/pfeapc.h(3): error #6404: This name does not have a type, and must have an explicit type.   [SOL]
      common /pfeapc/ rhs, sol, xvec
---------------------------^
/home/ver85/parfeap/pfeapc.h(6): error #6404: This name does not have a type, and must have an explicit type.   [ZVEC]
      common /pfeapc/ yvec, zvec
----------------------------^
/home/ver85/parfeap/pfeapc.h(9): error #6404: This name does not have a type, and must have an explicit type.   [MSQRT]
      common /pfeapc/ Mdiag, Msqrt
-----------------------------^
/home/ver85/parfeap/pfeapc.h(12): error #6404: This name does not have a type, and must have an explicit type.   [KMAT]
      common /pfeapc/ Kmat, Mmat, Pmat
----------------------^
/home/ver85/parfeap/pfeapc.h(12): error #6404: This name does not have a type, and must have an explicit type.   [PMAT]
      common /pfeapc/ Kmat, Mmat, Pmat
----------------------------------^
/home/ver85/parfeap/pfeapc.h(15): error #6404: This name does not have a type, and must have an explicit type.   [KSPSOL]
      common /pfeapc/ kspsol
----------------------^
compilation aborted for /home/ver85/parfeap/parbmat.F (code 1)
make: *** [parbmat.o] Error 1
                                                                                                                                                                                                                                           Thanks for your help!
« Last Edit: January 05, 2022, 09:20:07 PM by LXH »

a118145

  • Guest
Re: Installing parfeap with some problem
« Reply #1 on: January 06, 2022, 07:18:32 AM »
Dear LXH,

I am not sure if feap 8.5 is compatible with PETSc 3.16.2 out of the box. Please refer to this thread:

http://feap.berkeley.edu/forum/index.php?topic=1880.msg7517#msg7517

The current feap version 8.6 is working with PETSc 3.13. So in your case, the error is most likely due to compatibility issues. You should try out PETSc 3.8.3 instead (at least this is working in my case).

Warm regards,

a118145