Author Topic: Petsc 3.2p7 + FEAP 8.3 Compilation issues  (Read 14107 times)

aleximos

  • Jr. Member
  • **
  • Posts: 34
Petsc 3.2p7 + FEAP 8.3 Compilation issues
« on: July 30, 2012, 10:04:55 AM »
I would like to ask also something more. I have a created an executable version of parfeap, and tried to validate results of simple feap models, but it seems that the results are not correct. I have wrong values and I guess it can be sth wrong with the installation. Specifically I got this error during the installation,although it built me an executable in the end. Any help would be appreciated

/home/beo14/Downloads/feap/mpich-ins/bin/mpif90 -c -g -I/home/beo14/Downloads/feap/petsc-3.2-p7/include -I/home/beo14/Downloads/feap/petsc-3.2-p7/linux-gnu-c-opt/include -I/home/beo14/Downloads/feap/ver83/include -I/home/beo14/Downloads/feap/ver83/include/integer4     *.f *.F
parkv.F:49.6:

      PetscTruth     chk                                               
      1
Error: Unclassifiable statement at (1)
parkv.F:58.29:

      call VecValid(xvec, chk, ierr)                                   
                             1
Error: Symbol 'chk' at (1) has no IMPLICIT type
parmv.F:50.6:

      PetscTruth     chk                                               
      1
Error: Unclassifiable statement at (1)
parmv.F:58.29:

      call VecValid(xvec, chk, ierr)                                   
                             1
Error: Symbol 'chk' at (1) has no IMPLICIT type
paropk.F:50.6:

      PetscTruth     chk                                               
      1
Error: Unclassifiable statement at (1)
paropk.F:63.31:

        call VecValid(xvec, chk, ierr)                                 
                               1
Error: Symbol 'chk' at (1) has no IMPLICIT type
paropm.F:43.6:

      PetscTruth     chk                                               
      1
Error: Unclassifiable statement at (1)
paropm.F:51.29:

      call VecValid(xvec, chk, ierr)                                   
                             1
Error: Symbol 'chk' at (1) has no IMPLICIT type
pminvsqr.F:47.6:

      PetscTruth     chk                                               
      1
Error: Unclassifiable statement at (1)
pminvsqr.F:69.30:

      call VecValid(Mdiag, chk, ierr)                                   
                              1
Error: Symbol 'chk' at (1) has no IMPLICIT type
make: *** [install] Error 1
makefile:136: warning: overriding commands for target `.f.o'
« Last Edit: July 30, 2012, 11:04:29 AM by FEAP_Admin »

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Petsc 3.2p7 + FEAP 8.3 Compilation issues
« Reply #1 on: July 30, 2012, 11:02:23 AM »
Unfortunately PETSc made a number of changes in ver 3.2p7 that were not backward compatible.  If you go to the download site and look in the ver83 folder, you will find a zip file with the needed changes to get FEAP 8.3 to work with PETSc 3.2p7.  Note of warning, the latest release of PETSc requires even further changes!

aleximos

  • Jr. Member
  • **
  • Posts: 34
Re: Petsc 3.2p7 + FEAP 8.3 Compilation issues
« Reply #2 on: July 31, 2012, 04:11:18 AM »
These error message getting it after the changes, guess these changes are not enough.
So i changed from PetscTruth to PetscBool the rest files that are in the folder packages/arpack

parkv.F
parmv.F
paropk.F
paropm.F
pminvsqr.F

but I still get error messages and the calculations are not correct.
There is a problem in the old packages of Petscience with Prometheus and only the versions that work from the box are petsc 3.1p8 and 3.2p7
But both these versions are not compatible with feap.
Ive tried compiling again and again , are you sure that these are the only changes?
I'm attaching you the whole message.
« Last Edit: July 31, 2012, 07:19:14 AM by aleximos »

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Petsc 3.2p7 + FEAP 8.3 Compilation issues
« Reply #3 on: July 31, 2012, 10:01:55 AM »
The posted zip file only corrects the main parfeap directory.  If you want to use the features in the packages folders, then you will have to propagate similar changes into those folders.  Run a diff between the zip and your old files and you will see what changes need to be made.

aleximos

  • Jr. Member
  • **
  • Posts: 34
Re: Petsc 3.2p7 + FEAP 8.3 Compilation issues
« Reply #4 on: July 31, 2012, 11:06:31 AM »
 Can you be more specific to which values i should change?

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Petsc 3.2p7 + FEAP 8.3 Compilation issues
« Reply #5 on: July 31, 2012, 03:29:37 PM »
Just run the diff command on a directory containing the new files and the directory containing the old ones and you will see what has changed.  You should also read the petsc-3.2p7 release notes.

aleximos

  • Jr. Member
  • **
  • Posts: 34
Re: Petsc 3.2p7 + FEAP 8.3 Compilation issues
« Reply #6 on: August 01, 2012, 08:40:35 AM »
I followed your advices and made the changes in the rest directories, specifically i changed PETSC_INCLUDE and PetscTruth to PETSC_FC_INCLUDES and PetscBool respectively. But still have this output during the installation.
I want to note that parfeap exec is built, but the calculation results I'm getting are incorrect, eg displacements e-14 when I expect around e-1.
As attachment I've sent the output of installation and the input files, for feap and parfeap
 
« Last Edit: August 01, 2012, 09:29:20 AM by aleximos »

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Petsc 3.2p7 + FEAP 8.3 Compilation issues
« Reply #7 on: August 01, 2012, 10:04:07 AM »
I see you have CONTact in your input file. Have you implemented a parallel contact? parFEAP has never supported contact so perhaps that is the problem?  Have you tried just solving a simple problem first to check your installation?

aleximos

  • Jr. Member
  • **
  • Posts: 34
Re: Petsc 3.2p7 + FEAP 8.3 Compilation issues
« Reply #8 on: August 01, 2012, 10:47:23 AM »
I'm trying to solve a contact example, it's true. I hope that this is the problem only and the installation is correct.
Can you please run the same input parallel file in your parfeap and check if you have the same output with mine. That may prove if the installation is correct
Moreover can you post a parallel input file?
« Last Edit: August 01, 2012, 10:49:18 AM by aleximos »