Skip to content

Commit

Permalink
updates receiver check
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeter committed Mar 15, 2024
1 parent 87d0692 commit 74e3943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/specfem3D/setup_sources_receivers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ subroutine setup_receivers_precompute_intp()
call flush_IMAIN()

! checks if receivers are available
if (maxrec == 0) then
if (maxrec == 0 .and. .not. INVERSE_FWI_FULL_PROBLEM) then
print *,'Error: no receivers in slices found'
print *,'Please check if stations in DATA/STATIONS are placed correctly.'
call exit_MPI(myrank,'Error no receivers in slices found')
Expand Down Expand Up @@ -1409,7 +1409,7 @@ subroutine setup_receivers_precompute_intp()
call flush_IMAIN()

! check if adjoint stations are available
if (maxrec == 0) then
if (maxrec == 0 .and. .not. INVERSE_FWI_FULL_PROBLEM) then
print *,'Error: no adjoint sources in slices found'
print *,'Please check if adjoint stations in DATA/STATIONS_ADJOINT are placed correctly.'
call exit_MPI(myrank,'Error no adjoint sources in slices found')
Expand Down

0 comments on commit 74e3943

Please sign in to comment.