Skip to content

Commit 78043ab

Browse files
committed
more refactoring
1 parent 5644605 commit 78043ab

File tree

8 files changed

+191
-2055
lines changed

8 files changed

+191
-2055
lines changed

src/common/m_mpi_common.fpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -636,17 +636,17 @@ contains
636636
637637
if (present(pb) .and. present(mv) .and. qbmm .and. .not. polytropic) then
638638
qbmm_comm = .true.
639-
v_size = sys_size + 2*nb*4
639+
v_size = nVar + 2*nb*4
640640
buffer_counts = (/ &
641-
buff_size*(nVar + 2*nb*4)*(n + 1)*(p + 1), &
642-
buff_size*(nVar + 2*nb*4)*(m + 2*buff_size + 1)*(p + 1), &
641+
buff_size*v_size*(n + 1)*(p + 1), &
642+
buff_size*v_size*(m + 2*buff_size + 1)*(p + 1), &
643643
buff_size*v_size*(m + 2*buff_size + 1)*(n + 2*buff_size + 1) &
644644
/)
645645
else
646646
v_size = nVar
647647
buffer_counts = (/ &
648-
buff_size*nVar*(n + 1)*(p + 1), &
649-
buff_size*nVar*(m + 2*buff_size + 1)*(p + 1), &
648+
buff_size*v_size*(n + 1)*(p + 1), &
649+
buff_size*v_size*(m + 2*buff_size + 1)*(p + 1), &
650650
buff_size*v_size*(m + 2*buff_size + 1)*(n + 2*buff_size + 1) &
651651
/)
652652
end if

src/common/m_variables_conversion.fpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,10 @@ contains
11521152

11531153
if (cont_damage) qK_prim_vf(damage_idx)%sf(j, k, l) = qK_cons_vf(damage_idx)%sf(j, k, l)
11541154

1155+
#ifdef MFC_POST_PROCESS
1156+
if (bubbles_lagrange) qK_prim_vf(beta_idx)%sf(j, k, l) = qK_cons_vf(beta_idx)%sf(j, k, l)
1157+
#endif
1158+
11551159
end do
11561160
end do
11571161
end do

0 commit comments

Comments
 (0)