Skip to content

Commit b9ab69b

Browse files
authoredMar 19, 2025··
correct the attributes on p2l output variable (#1395)
1 parent 528cfed commit b9ab69b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎model/src/w3ounfmetamd.F90

+2-2
Original file line numberDiff line numberDiff line change
@@ -3639,14 +3639,14 @@ SUBROUTINE DEFAULT_META()
36393639
! IFI=6, IFJ=9, P2L
36403640
META => GROUP(6)%FIELD(9)%META
36413641
! Information for spectral microseismic generation data (2nd file)
3642-
META(1)%FSC = 0.0004
36433642
META(1)%VARNM='p2l'
36443643
META(1)%VARNL='base ten logarithm of power spectral density of equivalent surface pressure'
36453644
!META(1)%VARNS='base_ten_logarithm_of_power_spectral_density_of_equivalent_surface_pressure'
36463645
META(1)%VARNS=''
36473646
META(1)%VARNG='base_ten_logarithm_of_power_spectral_density_of_equivalent_surface_pressure'
3648-
IF (NCVARTYPE.EQ.2) THEN
3647+
IF (NCVARTYPE.LE.3) THEN
36493648
META(1)%UNITS='log10(Pa2 m2 s+1E-12)'
3649+
META(1)%FSC = 0.0004
36503650
META(1)%VMIN = -12.
36513651
META(1)%VMAX = 12.
36523652
ELSE

‎model/src/w3profsmd.F90

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ SUBROUTINE W3XYPFSN2 ( ISP, C, LCALC, RD10, RD20, DT, AC)
677677
U(IP) = MAX(0.d0,U(IP)-DTSI(IP)*ST(IP)*(1-IOBPA(IP)))*DBLE(IOBPD(ITH,IP))
678678

679679
#ifdef W3_REF1
680-
WRITE(10111,*) REFPARS(3), IOBPD(ITH,IP), IOBPA(IP), U(IP), AC(IP)
680+
! WRITE(10111,*) REFPARS(3), IOBPD(ITH,IP), IOBPA(IP), U(IP), AC(IP)
681681
IF (REFPARS(3).LT.0.5.AND.IOBPD(ITH,IP).EQ.0.AND.IOBPA(IP).EQ.0) THEN
682682
U(IP) = AC(IP) ! restores reflected boundary values
683683
ENDIF

0 commit comments

Comments
 (0)
Please sign in to comment.