Skip to content

Commit c836576

Browse files
committed
code cleaning
1 parent 9b6e064 commit c836576

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/specfem3D/comp_source_time_function.f90

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ end function comp_source_time_function_d2rck
266266
double precision function comp_source_time_function_brune(t,f0)
267267

268268
use constants, only: PI
269-
269+
270270
implicit none
271271

272272
double precision, intent(in) :: t,f0
@@ -276,19 +276,19 @@ double precision function comp_source_time_function_brune(t,f0)
276276

277277
! Brune source-time function
278278
! Moment function
279-
!if(t .lt. 0.d0)then
279+
!if (t < 0.d0) then
280280
! comp_source_time_function_brune = 0.d0
281-
!else
281+
!else
282282
! omegat = 2.d0*PI*f0*t
283-
! comp_source_time_function_brune = 1.d0 - exp( -omegat ) * (1.0d0+omegat)
283+
! comp_source_time_function_brune = 1.d0 - exp( -omegat ) * (1.0d0+omegat)
284284
!endif
285285
! Moment rate function
286-
if(t .lt. 0.d0)then
286+
if (t < 0.d0) then
287287
comp_source_time_function_brune = 0.d0
288-
else
288+
else
289289
omega = 2.d0*PI*f0
290290
omegat = omega*t
291-
comp_source_time_function_brune = omega*omegat*exp( -omegat )
291+
comp_source_time_function_brune = omega*omegat*exp( -omegat )
292292
endif
293293

294294
end function comp_source_time_function_brune
@@ -298,7 +298,7 @@ end function comp_source_time_function_brune
298298
!
299299

300300
double precision function comp_source_time_function_smooth_brune(t,f0)
301-
301+
302302
use constants, only: PI
303303

304304
implicit none
@@ -312,27 +312,27 @@ double precision function comp_source_time_function_smooth_brune(t,f0)
312312
! Brune source-time function
313313
! Moment function
314314
!omegat = 2.d0*PI*f0*t
315-
!if (t .lt. 0.d0) then
315+
!if (t < 0.d0) then
316316
! comp_source_time_function_smooth_brune = 0.d0
317-
!elseif (omegat .ge. 0.d0 .and. omegat .lt. tau0)then
317+
!else if (omegat >= 0.d0 .and. omegat < tau0) then
318318
! comp_source_time_function_smooth_brune = 1.d0 - exp(-omegat)*( 1.0d0 + omegat + &
319319
! 0.5d0*omegat**2 - (1.5d0*omegat**3)/tau0 + (1.5d0*omegat**4)/(tau0**2) - &
320320
! (0.5d0*omegat**5)/(tau0**3) )
321-
!else ! (omegat .gt. tau0)then
321+
!else ! (omegat > tau0) then
322322
! comp_source_time_function_smooth_brune = 1.d0 - exp( -omegat ) *
323-
! (1.0d0+omegat)
323+
! (1.0d0+omegat)
324324
!endif
325325
! Moment rate function
326326
omega = 2.d0*PI*f0
327327
omegat = omega*t
328-
if (t .lt. 0.d0) then
328+
if (t < 0.d0) then
329329
comp_source_time_function_smooth_brune = 0.d0
330-
elseif (omegat .ge. 0.d0 .and. omegat .lt. tau0)then
330+
else if (omegat >= 0.d0 .and. omegat < tau0) then
331331
comp_source_time_function_smooth_brune = ( 0.5d0*omega*(omegat**2)* &
332332
exp(-omegat)/tau0**3 ) * ( tau0**3 - 3.d0*(tau0**2)*(omegat-3.d0) + &
333333
3.d0*tau0*omegat*(omegat-4.d0) - (omegat**2)*(omegat-5.d0) )
334-
else ! (omegat .gt. tau0)then
335-
comp_source_time_function_smooth_brune = omega*omegat*exp( -omegat )
334+
else ! (omegat > tau0) then
335+
comp_source_time_function_smooth_brune = omega*omegat*exp( -omegat )
336336
endif
337337

338338
end function comp_source_time_function_smooth_brune

0 commit comments

Comments
 (0)