Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPECFEM2D crashes with tomographic model input #1061

Closed
pasansherath opened this issue Apr 29, 2020 · 3 comments
Closed

SPECFEM2D crashes with tomographic model input #1061

pasansherath opened this issue Apr 29, 2020 · 3 comments

Comments

@pasansherath
Copy link

pasansherath commented Apr 29, 2020

I have the need to include both vertical and horizontal velocity and density gradients into the layers in my models.

I tried using using a tomo.xyz file, with two layers with vertical velocity gradients. I was able to get the simulation running, but the simulation crashed after 1200 time steps.

******************************************************************
Time step number    1200   t =    0.2398 s out of  120000
 ******************************************************************
 We have done   0.999175012     % of the total

Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.

Backtrace for this error:
#0  0x7f0805fe7cd1 in ???
#1  0x7f0805fe6ea5 in ???
#2  0x7f0805cb220f in ???
#3  0x558c98a6c451 in check_stability_
    at src/specfem2D/check_stability.F90:95
#4  0x558c98ade3f6 in iterate_time_
    at src/specfem2D/iterate_time.F90:142
#5  0x558c98a4b7e6 in specfem2d
    at src/specfem2D/specfem2D.F90:381
#6  0x558c98a4b7e6 in main
    at src/specfem2D/specfem2D.F90:349
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpiexec noticed that process rank 0 with PID 0 on node thinkpad exited on signal 8 (Floating point exception). 

After that I did the following, but the simulation crashed. I had the CFL stability condition <<< 0.5 and also DT < maximum recommended DT in all the following instances.

  • I removed the velocity gradients, and the simulation crashed the same number of time steps.
    
  • I increased the number of spectral elements in both x and z directions. It crashed at the same number of time steps (1200)
    
  • I removed a layer and its velocity gradient (uniform velocity), still crashed at 1200 time steps.
    
  • I increased the resolution in the tomo.xyz file by a factor of 2 along each axis. It still crashes at 1200 time steps.
    
  • I reduced the DT  by half, and the simulation crashed after 2300 time steps.
    

I tried running this on two different clusters with 36 processors (using mpi) and on my laptop with 4 processors. The result is the same.

I have uploaded my Par_file, interfaces, SOURCE and tomo files.

Can someone let me what the problem here is? Is there any other way I could incorporate velocity gradients in the velocity model?

Thanks very much.

interfaces.txt
Par_file.txt
SOURCE.txt
tomo.txt

@bottero
Copy link
Contributor

bottero commented May 4, 2020 via email

@Raylhu004
Copy link

I used to encounter this problem. The problem is mainly caused by a large time step even though the CFL has been fulfilled. Please reduce the time step.

@bottero
Copy link
Contributor

bottero commented Jun 29, 2020

My answer solved this issue. This can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants