Skip to content

Commit 0ebaa4f

Browse files
committed
updates coupling routine
1 parent fb55620 commit 0ebaa4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/specfem3D/couple_with_injection.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3397,9 +3397,15 @@ subroutine couple_with_injection_prepare_specfem_files()
33973397
call interpolate_with_Catmull_Rom(ntimesteps,dt_incr,start_time, &
33983398
tmp_veloc_points_timeseries,tmp_traction_points_timeseries)
33993399

3400+
! closes file
3401+
close(IOUT)
3402+
34003403
! free temporary arrays
34013404
deallocate(tmp_veloc_points_timeseries,tmp_traction_points_timeseries)
34023405

3406+
! synchronizes MPI processes
3407+
call synchronize_all()
3408+
34033409
! clear arrays for reading
34043410
Veloc_specfem(:,:) = 0.0_CUSTOM_REAL
34053411
Tract_specfem(:,:) = 0.0_CUSTOM_REAL

0 commit comments

Comments
 (0)