Author Topic: Installing ParFEAP  (Read 10452 times)

ad10

  • Jr. Member
  • **
  • Posts: 39
Installing ParFEAP
« on: December 24, 2021, 03:14:37 AM »
I am solving the Linear-elastic problem with phase-field for which I have generated mesh using 'gmsh' as it is an unstructured 4-node element with over 10000 elements. I tried to solve this problem using FEAP which is taking a very long time as it's a fine mesh. I want to shift to ParFEAP. I went through the documentation but I don't get a few things,
1. To use ParFEAP do I have to make any changes in make.in file? I am using Feap.8.6. I think the parallel version is already linked.
Code: [Select]
# Parallel MPI Build

  FFMPI = $(PETSC_DIR)/$(PETSC_ARCH)/bin/mpif90
  CCMPI = $(PETSC_DIR)/$(PETSC_ARCH)/bin/mpicc

# Parallel FE2 Build

  FFE2 = $(PETSC_DIR)/$(PETSC_ARCH)/bin/mpif90
  CCE2 = $(PETSC_DIR)/$(PETSC_ARCH)/bin/mpicc
2.  I have installed PETSc but still I am getting the following issue for one of the codes that are there in the forum.
Code: [Select]
  *ERROR* GRAPh command only available in parallel version
  *ERROR* OUTDomain command only available in parallel version
3. As I can see in the manual many examples are tested, but the input file for the sample example is not given.

Any comments will really be helpful for me.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1164
Re: Installing ParFEAP
« Reply #1 on: December 24, 2021, 10:14:23 AM »
To use the parallel version you need to build it.  First build the serial version which it seems you have.  Next go into the folder parfeap/ and type 'make install'.  This will build the parallel version of feap in the folder parfeap/.  This version of the executable is the one you need to use to partition your problem.  It is also the version that you will use to run your parallel problem.

ad10

  • Jr. Member
  • **
  • Posts: 39
Re: Installing ParFEAP
« Reply #2 on: December 28, 2021, 03:16:06 PM »
Prof. Thanks a lot for your comments. I am able to connect FEAP with PETSc.

ad10

  • Jr. Member
  • **
  • Posts: 39
Re: Installing ParFEAP
« Reply #3 on: December 29, 2021, 02:16:48 AM »
Dear all, which version of PETSc is tested with FEAP 8.6.1e? That I should use. Because I am getting errors for the latest version.

for the simple cases, we use
                                      Batch
                                          tang,,1
                                      end
if I solve the same problem with PETSc, I will use
                                   Batch
                                       PETSc, On
                                      TOL ITER 1.d-07 1.d-08 1.d+20
                                      TANGent,,1
                                   end
It will solve faster right?? without any partition just making changes in the Input file.

Code: [Select]
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[0]PETSC ERROR: Argument out of range
[0]PETSC ERROR: Out of range index value 4697932 maximum 0
[0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.16.2, unknown
[0]PETSC ERROR: ./feap on a arch-linux-c-debug named  Wed Dec 29 11:02:44 2021
[0]PETSC ERROR: Configure options --download-metis
[0]PETSC ERROR: #1 VecSetValues_Seq() at /home/petsc/src/vec/vec/impls/seq/bvec2.c:665
[0]PETSC ERROR: #2 VecSetValues() at /home/petsc/src/vec/vec/interface/rvector.c:829
[0]PETSC ERROR: #3 VecSetValues_Seq() at /home/ajinkya/petsc/src/vec/vec/impls/seq/bvec2.c:665
[0]PETSC ERROR: #4 VecSetValues() at /home/petsc/src/vec/vec/interface/rvector.c:829
[0]PETSC ERROR: #5 VecSetValues_Seq() at /home/ajinkya/petsc/src/vec/vec/impls/seq/bvec2.c:665
[0]PETSC ERROR: #6 VecSetValues() at /home/petsc/src/vec/vec/interface/rvector.c:829
[0]PETSC ERROR: #7 VecSetValues_Seq() at /home/petsc/src/vec/vec/impls/seq/bvec2.c:665
[0]PETSC ERROR: #8 VecSetValues() at /home/petsc/src/vec/vec/interface/rvector.c:829


FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Installing ParFEAP
« Reply #4 on: December 29, 2021, 07:33:31 PM »
Parfeap only works with partitioned input files -- even if you want only one partition, you have to partition the original input file.