Skip to content

Commit 27bd868

Browse files
committed
fix frontier bug 2
1 parent 6ca3367 commit 27bd868

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/common/m_derived_types.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ module m_derived_types
233233
!! the partial densities, density, velocity, pressure, volume fractions,
234234
!! specific heat ratio function and the liquid stiffness function.
235235

236-
type(vec3_dt) :: B !<
236+
real(wp) :: Bx, By, Bz !<
237237
!! Magnetic field components; B%x is not used for 1D
238238

239239
real(wp), dimension(6) :: tau_e !<

src/pre_process/m_assign_variables.fpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,20 +480,20 @@ contains
480480
if (mhd) then
481481
if (n == 0) then ! 1D: By, Bz
482482
q_prim_vf(B_idx%beg)%sf(j, k, l) = &
483-
eta*patch_icpp(patch_id)%B%y &
483+
eta*patch_icpp(patch_id)%By &
484484
+ (1._wp - eta)*orig_prim_vf(B_idx%beg)
485485
q_prim_vf(B_idx%beg + 1)%sf(j, k, l) = &
486-
eta*patch_icpp(patch_id)%B%z &
486+
eta*patch_icpp(patch_id)%Bz &
487487
+ (1._wp - eta)*orig_prim_vf(B_idx%beg + 1)
488488
else ! 2D/3D: Bx, By, Bz
489489
q_prim_vf(B_idx%beg)%sf(j, k, l) = &
490-
eta*patch_icpp(patch_id)%B%x &
490+
eta*patch_icpp(patch_id)%Bx &
491491
+ (1._wp - eta)*orig_prim_vf(B_idx%beg)
492492
q_prim_vf(B_idx%beg + 1)%sf(j, k, l) = &
493-
eta*patch_icpp(patch_id)%B%y &
493+
eta*patch_icpp(patch_id)%By &
494494
+ (1._wp - eta)*orig_prim_vf(B_idx%beg + 1)
495495
q_prim_vf(B_idx%beg + 2)%sf(j, k, l) = &
496-
eta*patch_icpp(patch_id)%B%z &
496+
eta*patch_icpp(patch_id)%Bz &
497497
+ (1._wp - eta)*orig_prim_vf(B_idx%beg + 2)
498498
end if
499499
end if

src/pre_process/m_check_patches.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ contains
535535
@:PROHIBIT(model_eqns == 2 .and. any(patch_icpp(patch_id)%alpha_rho(1:num_fluids) < 0._wp), &
536536
"Patch "//trim(iStr)//": alpha_rho(1:num_fluids) must be greater than or equal to zero when model_eqns = 2")
537537
538-
is_set_B(1) = .not. f_is_default(patch_icpp(patch_id)%B%x)
539-
is_set_B(2) = .not. f_is_default(patch_icpp(patch_id)%B%y)
540-
is_set_B(3) = .not. f_is_default(patch_icpp(patch_id)%B%z)
538+
is_set_B(1) = .not. f_is_default(patch_icpp(patch_id)%Bx)
539+
is_set_B(2) = .not. f_is_default(patch_icpp(patch_id)%By)
540+
is_set_B(3) = .not. f_is_default(patch_icpp(patch_id)%Bz)
541541
542542
@:PROHIBIT(.not. mhd .and. any(is_set_B), &
543543
"Bx, By, and Bz must not be set if MHD is not enabled")

src/pre_process/m_global_parameters.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ contains
401401
patch_icpp(i)%qv = 0._wp
402402
patch_icpp(i)%qvp = 0._wp
403403
patch_icpp(i)%tau_e = 0._wp
404-
patch_icpp(i)%B%x = dflt_real
405-
patch_icpp(i)%B%y = dflt_real
406-
patch_icpp(i)%B%z = dflt_real
404+
patch_icpp(i)%Bx = dflt_real
405+
patch_icpp(i)%By = dflt_real
406+
patch_icpp(i)%Bz = dflt_real
407407
patch_icpp(i)%a(2) = dflt_real
408408
patch_icpp(i)%a(3) = dflt_real
409409
patch_icpp(i)%a(4) = dflt_real

src/pre_process/m_mpi_proxy.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ contains
8686
& 'length_x', 'length_y', 'length_z', 'radius', 'epsilon', &
8787
& 'beta', 'smooth_coeff', 'rho', 'p0', 'm0', 'r0', 'v0', &
8888
& 'pres', 'gamma', 'pi_inf', 'hcid', 'cv', 'qv', 'qvp', &
89-
& 'model_threshold', 'cf_val', 'B%x', 'B%y', 'B%z']
89+
& 'model_threshold', 'cf_val', 'Bx', 'By', 'Bz']
9090
call MPI_BCAST(patch_icpp(i)%${VAR}$, 1, mpi_p, 0, MPI_COMM_WORLD, ierr)
9191
#:endfor
9292

0 commit comments

Comments
 (0)