@@ -59,6 +59,9 @@ subroutine locate_sources()
5959
6060 use specfem_par_movie, only: vtkdata_source_x,vtkdata_source_y,vtkdata_source_z
6161
62+ ! for Berkeley stf
63+ use shared_parameters, only: UCB_SOURCE_T1,UCB_SOURCE_T2,UCB_SOURCE_T3,UCB_SOURCE_T4,UCB_TAU
64+
6265 implicit none
6366
6467 ! local parameters
@@ -549,8 +552,17 @@ subroutine locate_sources()
549552 write (IMAIN,* ) ' half duration in frequency: ' ,hdur(isource),' seconds**(-1)'
550553 case (2 )
551554 ! Heaviside
552- write (IMAIN,* ) ' using (quasi) Heaviside source time function'
553- write (IMAIN,* ) ' half duration: ' ,hdur(isource),' seconds'
555+ if (STF_IS_UCB_HEAVISIDE) then
556+ ! Berkeley UCB stf
557+ write (IMAIN,* ) ' using Berkeley UCB (quasi) Heaviside source time function'
558+ write (IMAIN,* ) ' source T1/T2/T3/T4: ' ,sngl(UCB_SOURCE_T1),' /' ,sngl(UCB_SOURCE_T2),' /' , &
559+ sngl(UCB_SOURCE_T3),' /' ,sngl(UCB_SOURCE_T4)
560+ write (IMAIN,* ) ' source time-shift : ' ,sngl(UCB_TAU)
561+ else
562+ ! default Heaviside
563+ write (IMAIN,* ) ' using (quasi) Heaviside source time function'
564+ write (IMAIN,* ) ' half duration: ' ,hdur(isource),' seconds'
565+ endif
554566 case (3 )
555567 ! Monochromatic
556568 write (IMAIN,* ) ' using monochromatic source time function'
@@ -567,14 +579,21 @@ subroutine locate_sources()
567579 case default
568580 stop ' unsupported force_stf value!'
569581 end select
582+ else if (STF_IS_UCB_HEAVISIDE) then
583+ ! moment tensor
584+ ! Berkeley UCB stf
585+ write (IMAIN,* ) ' using Berkeley UCB (quasi) Heaviside source time function'
586+ write (IMAIN,* ) ' source T1/T2/T3/T4: ' ,sngl(UCB_SOURCE_T1),' /' ,sngl(UCB_SOURCE_T2),' /' , &
587+ sngl(UCB_SOURCE_T3),' /' ,sngl(UCB_SOURCE_T4)
588+ write (IMAIN,* ) ' source time-shift : ' ,sngl(UCB_TAU)
570589 else if (USE_MONOCHROMATIC_CMT_SOURCE) then
571590 ! moment tensor
572591 write (IMAIN,* ) ' using monochromatic source time function'
573592 ! add message if source is monochromatic
574593 write (IMAIN,* )
575594 write (IMAIN,* ) ' period: ' ,hdur(isource),' seconds'
576595 else
577- ! moment tensor
596+ ! default quasi Heaviside
578597 write (IMAIN,* ) ' using (quasi) Heaviside source time function'
579598 ! add message if source is a Heaviside
580599 if (hdur(isource) <= 5.0 * DT) then
0 commit comments