Skip to content

Commit 0fb4a44

Browse files
committed
Add present(pb_in/mv_in) guards to s_symmetry and s_periodic QBMM blocks
1 parent 12e31ca commit 0fb4a44

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/common/m_boundary_common.fpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ contains
366366
end if
367367
end do
368368

369-
if (qbmm .and. .not. polytropic) then
369+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
370370
do i = 1, nb
371371
do q = 1, nnode
372372
do j = 1, buff_size
@@ -399,7 +399,7 @@ contains
399399
q_prim_vf(xibeg)%sf(m + j, k, l) = -q_prim_vf(xibeg)%sf(m - (j - 1), k, l)
400400
end if
401401
end do
402-
if (qbmm .and. .not. polytropic) then
402+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
403403
do i = 1, nb
404404
do q = 1, nnode
405405
do j = 1, buff_size
@@ -435,7 +435,7 @@ contains
435435
end if
436436
end do
437437

438-
if (qbmm .and. .not. polytropic) then
438+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
439439
do i = 1, nb
440440
do q = 1, nnode
441441
do j = 1, buff_size
@@ -469,7 +469,7 @@ contains
469469
end if
470470
end do
471471

472-
if (qbmm .and. .not. polytropic) then
472+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
473473
do i = 1, nb
474474
do q = 1, nnode
475475
do j = 1, buff_size
@@ -505,7 +505,7 @@ contains
505505
end if
506506
end do
507507

508-
if (qbmm .and. .not. polytropic) then
508+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
509509
do i = 1, nb
510510
do q = 1, nnode
511511
do j = 1, buff_size
@@ -539,7 +539,7 @@ contains
539539
end if
540540
end do
541541

542-
if (qbmm .and. .not. polytropic) then
542+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
543543
do i = 1, nb
544544
do q = 1, nnode
545545
do j = 1, buff_size
@@ -572,7 +572,7 @@ contains
572572
end do
573573
end do
574574

575-
if (qbmm .and. .not. polytropic) then
575+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
576576
do i = 1, nb
577577
do q = 1, nnode
578578
do j = 1, buff_size
@@ -589,7 +589,7 @@ contains
589589
end do
590590
end do
591591

592-
if (qbmm .and. .not. polytropic) then
592+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
593593
do i = 1, nb
594594
do q = 1, nnode
595595
do j = 1, buff_size
@@ -608,7 +608,7 @@ contains
608608
end do
609609
end do
610610

611-
if (qbmm .and. .not. polytropic) then
611+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
612612
do i = 1, nb
613613
do q = 1, nnode
614614
do j = 1, buff_size
@@ -625,7 +625,7 @@ contains
625625
end do
626626
end do
627627

628-
if (qbmm .and. .not. polytropic) then
628+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
629629
do i = 1, nb
630630
do q = 1, nnode
631631
do j = 1, buff_size
@@ -644,7 +644,7 @@ contains
644644
end do
645645
end do
646646

647-
if (qbmm .and. .not. polytropic) then
647+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
648648
do i = 1, nb
649649
do q = 1, nnode
650650
do j = 1, buff_size
@@ -661,7 +661,7 @@ contains
661661
end do
662662
end do
663663

664-
if (qbmm .and. .not. polytropic) then
664+
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
665665
do i = 1, nb
666666
do q = 1, nnode
667667
do j = 1, buff_size

0 commit comments

Comments
 (0)