SPECFEM / specfem3d_globe

SPECFEM3D_GLOBE simulates global and regional (continental-scale) seismic wave propagation.
GNU General Public License v3.0
90 stars 95 forks source link

./run_this_example.sh Program received signal SIGSEGV: Segmentation fault - invalid memory reference. #829

Open xlmi2023 opened 7 months ago

xlmi2023 commented 7 months ago

when i run testcase run_this_example.sh,I ran into the following problem: 油气全闪

danielpeter commented 7 months ago

which example did you try to run? the error is related to your MPI installation. maybe, make sure first that you can compile and run a simple, parallel program on your system first:

program test
  use mpi

  implicit none

  integer :: myrank,sizeprocs
  integer :: i,ier

  call MPI_INIT(ier)
  call MPI_COMM_RANK(MPI_COMM_WORLD,myrank,ier)
  call MPI_COMM_SIZE(MPI_COMM_WORLD,sizeprocs,ier)

  do i = 1,sizeprocs
    if (myrank + 1 == i) then
      print *,'hello from process: ',myrank
    endif
    call MPI_BARRIER(MPI_COMM_WORLD,ier)
  enddo

  call MPI_BARRIER(MPI_COMM_WORLD,ier)

  call MPI_FINALIZE(ier)

end program