Skip to content

Commit a8bda57

Browse files
committed
fixed version
1 parent baba2a0 commit a8bda57

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/simulation/m_checker.fpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,10 @@ contains
164164
"Only acoustic("//trim(jStr)//")%support = 1 is allowed for 1D simulations")
165165
@:PROHIBIT(dim == 1 .and. acoustic(j)%support == 1 .and. f_is_default(acoustic(j)%loc(1)), &
166166
"acoustic("//trim(jStr)//")%loc(1) must be specified for acoustic("//trim(jStr)//")%support = 1")
167-
@:PROHIBIT(dim == 2 .and. (.not. any(acoustic(j)%support == (/2, 5, 6, 9, 10/))), &
167+
@:PROHIBIT((dim == 2 .and. .not. cyl_coord) .and. (.not. any(acoustic(j)%support == (/2, 5, 9/))), &
168168
"Only acoustic("//trim(jStr)//")%support = 2, 5, 6, 9, or 10 is allowed for 2D simulations")
169-
@:PROHIBIT(dim == 2 .and. (.not. any(acoustic(j)%support == (/6, 10/))) .and. cyl_coord, &
169+
@:PROHIBIT((dim == 2 .and. cyl_coord) .and. (.not. any(acoustic(j)%support == (/2, 6, 10/))), &
170170
"Only acoustic("//trim(jStr)//")%support = 6 or 10 is allowed for 2D axisymmetric simulations")
171-
@:PROHIBIT(.not. (dim == 2 .and. cyl_coord) .and. any(acoustic(j)%support == (/6, 10/)), &
172-
"acoustic("//trim(jStr)//")%support = 6 or 10 only works for 2D axisymmetric simulations")
173171
@:PROHIBIT(dim == 2 .and. any(acoustic(j)%support == (/2, 5, 6, 9, 10/)) .and. &
174172
(f_is_default(acoustic(j)%loc(1)) .or. f_is_default(acoustic(j)%loc(2))), &
175173
"acoustic("//trim(jStr)//")%loc(1:2) must be specified for acoustic("//trim(jStr)//")%support = 2")

src/simulation/m_hypoelastic.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ contains
331331
end do
332332
end if
333333

334-
if (cyl_coord) then
334+
if (cyl_coord .and. idir == 2) then
335335

336336
!$acc parallel loop collapse(3) gang vector default(present)
337337
do q = 0, p

src/simulation/m_riemann_solvers.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ contains
636636
if ((G_L > 1000) .and. (G_R > 1000)) then
637637
E_L = E_L + (tau_e_L(i)*tau_e_L(i))/(4._wp*G_L)
638638
E_R = E_R + (tau_e_R(i)*tau_e_R(i))/(4._wp*G_R)
639-
! Additional terms in 2D and 3D
639+
! Double for shear stresses
640640
if (any(strxb - 1 + i == shear_indices)) then
641641
E_L = E_L + (tau_e_L(i)*tau_e_L(i))/(4._wp*G_L)
642642
E_R = E_R + (tau_e_R(i)*tau_e_R(i))/(4._wp*G_R)

0 commit comments

Comments
 (0)