@@ -57,7 +57,8 @@ subroutine plot_post()
57
57
fluid_solid_acoustic_ispec,fluid_solid_acoustic_iedge,num_fluid_solid_edges, &
58
58
fluid_poro_acoustic_ispec,fluid_poro_acoustic_iedge,num_fluid_poro_edges, &
59
59
solid_poro_poroelastic_ispec,solid_poro_poroelastic_iedge,num_solid_poro_edges, &
60
- myrank,NPROC
60
+ myrank,NPROC, &
61
+ P_SV
61
62
62
63
use shared_parameters, only: subsamp_postscript,imagetype_postscript,interpol, &
63
64
meshvect,modelvect, &
@@ -192,7 +193,12 @@ subroutine plot_post()
192
193
ratio_page = min (rpercentz* sizez/ (zmax- zmin),rpercentx* sizex/ (xmax- xmin)) / 100.d0
193
194
194
195
! compute the maximum of the norm of the vector
195
- dispmax = maxval (sqrt (vector_field_display(1 ,:)** 2 + vector_field_display(2 ,:)** 2 ))
196
+ if (P_SV) then
197
+ dispmax = maxval (sqrt (vector_field_display(1 ,:)** 2 + vector_field_display(2 ,:)** 2 ))
198
+ else
199
+ ! SH (membrane) waves, plot y-component
200
+ dispmax = maxval (abs (vector_field_display(1 ,:)))
201
+ endif
196
202
197
203
call max_all_all_dp(dispmax, dispmax_glob)
198
204
dispmax = dispmax_glob
@@ -1516,22 +1522,39 @@ subroutine plot_post()
1516
1522
Uxinterp(i,j) = 0.d0
1517
1523
Uzinterp(i,j) = 0.d0
1518
1524
1519
- do k = 1 ,NGLLX
1520
- do l= 1 ,NGLLX
1521
- if (AXISYM) then
1522
- if (is_on_the_axis(ispec)) then
1523
- Uxinterp(i,j) = Uxinterp(i,j) + vector_field_display(1 ,ibool(k,l,ispec))* flagrange_GLJ(k,i)* flagrange_GLJ(l,j)
1524
- Uzinterp(i,j) = Uzinterp(i,j) + vector_field_display(2 ,ibool(k,l,ispec))* flagrange_GLJ(k,i)* flagrange_GLJ(l,j)
1525
+ if (P_SV) then
1526
+ do k = 1 ,NGLLX
1527
+ do l= 1 ,NGLLX
1528
+ if (AXISYM) then
1529
+ if (is_on_the_axis(ispec)) then
1530
+ Uxinterp(i,j) = Uxinterp(i,j) + vector_field_display(1 ,ibool(k,l,ispec))* flagrange_GLJ(k,i)* flagrange_GLJ(l,j)
1531
+ Uzinterp(i,j) = Uzinterp(i,j) + vector_field_display(2 ,ibool(k,l,ispec))* flagrange_GLJ(k,i)* flagrange_GLJ(l,j)
1532
+ else
1533
+ Uxinterp(i,j) = Uxinterp(i,j) + vector_field_display(1 ,ibool(k,l,ispec))* flagrange(k,i)* flagrange(l,j)
1534
+ Uzinterp(i,j) = Uzinterp(i,j) + vector_field_display(2 ,ibool(k,l,ispec))* flagrange(k,i)* flagrange(l,j)
1535
+ endif
1525
1536
else
1526
1537
Uxinterp(i,j) = Uxinterp(i,j) + vector_field_display(1 ,ibool(k,l,ispec))* flagrange(k,i)* flagrange(l,j)
1527
1538
Uzinterp(i,j) = Uzinterp(i,j) + vector_field_display(2 ,ibool(k,l,ispec))* flagrange(k,i)* flagrange(l,j)
1528
1539
endif
1529
- else
1530
- Uxinterp(i,j) = Uxinterp(i,j) + vector_field_display(1 ,ibool(k,l,ispec))* flagrange(k,i)* flagrange(l,j)
1531
- Uzinterp(i,j) = Uzinterp(i,j) + vector_field_display(2 ,ibool(k,l,ispec))* flagrange(k,i)* flagrange(l,j)
1532
- endif
1540
+ enddo
1533
1541
enddo
1534
- enddo
1542
+ else
1543
+ ! SH (membrane) waves, plot y-component
1544
+ do k = 1 ,NGLLX
1545
+ do l= 1 ,NGLLX
1546
+ if (AXISYM) then
1547
+ if (is_on_the_axis(ispec)) then
1548
+ Uxinterp(i,j) = Uxinterp(i,j) + vector_field_display(1 ,ibool(k,l,ispec))* flagrange_GLJ(k,i)* flagrange_GLJ(l,j)
1549
+ else
1550
+ Uxinterp(i,j) = Uxinterp(i,j) + vector_field_display(1 ,ibool(k,l,ispec))* flagrange(k,i)* flagrange(l,j)
1551
+ endif
1552
+ else
1553
+ Uxinterp(i,j) = Uxinterp(i,j) + vector_field_display(1 ,ibool(k,l,ispec))* flagrange(k,i)* flagrange(l,j)
1554
+ endif
1555
+ enddo
1556
+ enddo
1557
+ endif
1535
1558
1536
1559
x1 = (xinterp(i,j)- xmin)* ratio_page
1537
1560
z1 = (zinterp(i,j)- zmin)* ratio_page
@@ -1672,8 +1695,14 @@ subroutine plot_post()
1672
1695
z1 = (coord(2 ,ipoin)- zmin)* ratio_page
1673
1696
1674
1697
if (dispmax > 0.d0 ) then
1675
- x2 = vector_field_display(1 ,ipoin)* sizemax_arrows/ dispmax
1676
- z2 = vector_field_display(2 ,ipoin)* sizemax_arrows/ dispmax
1698
+ if (P_SV) then
1699
+ x2 = vector_field_display(1 ,ipoin)* sizemax_arrows/ dispmax
1700
+ z2 = vector_field_display(2 ,ipoin)* sizemax_arrows/ dispmax
1701
+ else
1702
+ ! SH (membrane) waves, plot y-component
1703
+ x2 = vector_field_display(1 ,ipoin)* sizemax_arrows/ dispmax
1704
+ z2 = 0.d0
1705
+ endif
1677
1706
else
1678
1707
x2 = 0.d0
1679
1708
z2 = 0.d0
0 commit comments