@@ -171,8 +171,8 @@ contains
171171 end select
172172
173173 if (qbmm .and. (.not. polytropic) .and. &
174- (bc_type(2 , - 1 )%sf(0 , k , l) <= BC_GHOST_EXTRAP) .and. &
175- (bc_type(2 , - 1 )%sf(0 , k , l) /= BC_AXIS)) then
174+ (bc_type(2 , - 1 )%sf(k, 0 , l) <= BC_GHOST_EXTRAP) .and. &
175+ (bc_type(2 , - 1 )%sf(k, 0 , l) /= BC_AXIS)) then
176176 call s_qbmm_extrapolation(2 , - 1 , k, l, pb, mv)
177177 end if
178178 end do
@@ -201,7 +201,7 @@ contains
201201 end select
202202
203203 if (qbmm .and. (.not. polytropic) .and. &
204- (bc_type(2 , 1 )%sf(0 , k , l) <= BC_GHOST_EXTRAP)) then
204+ (bc_type(2 , 1 )%sf(k, 0 , l) <= BC_GHOST_EXTRAP)) then
205205 call s_qbmm_extrapolation(2 , 1 , k, l, pb, mv)
206206 end if
207207 end do
@@ -234,7 +234,7 @@ contains
234234 end select
235235
236236 if (qbmm .and. (.not. polytropic) .and. &
237- (bc_type(3 , - 1 )%sf(0 , k, l) <= BC_GHOST_EXTRAP)) then
237+ (bc_type(3 , - 1 )%sf(k, l, 0 ) <= BC_GHOST_EXTRAP)) then
238238 call s_qbmm_extrapolation(3 , - 1 , k, l, pb, mv)
239239 end if
240240 end do
@@ -263,7 +263,7 @@ contains
263263 end select
264264
265265 if (qbmm .and. (.not. polytropic) .and. &
266- (bc_type(3 , 1 )%sf(0 , k, l) <= BC_GHOST_EXTRAP)) then
266+ (bc_type(3 , 1 )%sf(k, l, 0 ) <= BC_GHOST_EXTRAP)) then
267267 call s_qbmm_extrapolation(3 , 1 , k, l, pb, mv)
268268 end if
269269 end do
0 commit comments