Skip to content

Commit 9e68edd

Browse files
committed
fix debug and format
1 parent dcde7a1 commit 9e68edd

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/post_process/m_data_input.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ subroutine s_populate_grid_variables_buffer_regions
648648
end do
649649

650650
! Symmetry BC at the beginning
651-
elseif (bc_y%beg == BC_REFLECTIVE .or. bc_y%beg == BC_AXIS)then
651+
elseif (bc_y%beg == BC_REFLECTIVE .or. bc_y%beg == BC_AXIS) then
652652

653653
do i = 1, buff_size
654654
dy(-i) = dy(i - 1)

src/simulation/m_cbc.fpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -855,13 +855,13 @@ contains
855855
Ma = vel(dir_idx(1))/c
856856
857857
if ((cbc_loc == -1 .and. bc${XYZ}$b == BC_CHAR_SLIP_WALL) .or. &
858-
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_SLIP_WALL)) then
858+
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_SLIP_WALL)) then
859859
call s_compute_slip_wall_L(lambda, L, rho, c, mf, dalpha_rho_ds, dpres_ds, dvel_ds, dadv_ds)
860860
else if ((cbc_loc == -1 .and. bc${XYZ}$b == BC_CHAR_NR_SUB_BUFFER) .or. &
861-
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_NR_SUB_BUFFER)) then
861+
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_NR_SUB_BUFFER)) then
862862
call s_compute_nonreflecting_subsonic_buffer_L(lambda, L, rho, c, mf, dalpha_rho_ds, dpres_ds, dvel_ds, dadv_ds)
863863
else if ((cbc_loc == -1 .and. bc${XYZ}$b == BC_CHAR_NR_SUB_INFLOW) .or. &
864-
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_NR_SUB_INFLOW)) then
864+
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_NR_SUB_INFLOW)) then
865865
call s_compute_nonreflecting_subsonic_inflow_L(lambda, L, rho, c, mf, dalpha_rho_ds, dpres_ds, dvel_ds, dadv_ds)
866866
! Add GRCBC for Subsonic Inflow
867867
if (bc_${XYZ}$%grcbc_in) then
@@ -882,7 +882,7 @@ contains
882882
L(advxe) = rho*c**2._wp*(1._wp + Ma)*(vel(dir_idx(1)) + vel_in(${CBC_DIR}$, dir_idx(1))*sign(1, cbc_loc))/Del_in(${CBC_DIR}$) + c*(1._wp + Ma)*(pres - pres_in(${CBC_DIR}$))/Del_in(${CBC_DIR}$)
883883
end if
884884
else if ((cbc_loc == -1 .and. bc${XYZ}$b == BC_CHAR_NR_SUB_OUTFLOW) .or. &
885-
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_NR_SUB_OUTFLOW)) then
885+
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_NR_SUB_OUTFLOW)) then
886886
call s_compute_nonreflecting_subsonic_outflow_L(lambda, L, rho, c, mf, dalpha_rho_ds, dpres_ds, dvel_ds, dadv_ds)
887887
! Add GRCBC for Subsonic Outflow (Pressure)
888888
if (bc_${XYZ}$%grcbc_out) then
@@ -894,16 +894,16 @@ contains
894894
end if
895895
end if
896896
else if ((cbc_loc == -1 .and. bc${XYZ}$b == BC_CHAR_FF_SUB_OUTFLOW) .or. &
897-
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_FF_SUB_OUTFLOW)) then
897+
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_FF_SUB_OUTFLOW)) then
898898
call s_compute_force_free_subsonic_outflow_L(lambda, L, rho, c, mf, dalpha_rho_ds, dpres_ds, dvel_ds, dadv_ds)
899899
else if ((cbc_loc == -1 .and. bc${XYZ}$b == BC_CHAR_CP_SUB_OUTFLOW) .or. &
900-
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_CP_SUB_OUTFLOW)) then
900+
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_CP_SUB_OUTFLOW)) then
901901
call s_compute_constant_pressure_subsonic_outflow_L(lambda, L, rho, c, mf, dalpha_rho_ds, dpres_ds, dvel_ds, dadv_ds)
902902
else if ((cbc_loc == -1 .and. bc${XYZ}$b == BC_CHAR_SUP_INFLOW) .or. &
903-
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_SUP_INFLOW)) then
903+
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_SUP_INFLOW)) then
904904
call s_compute_supersonic_inflow_L(lambda, L, rho, c, mf, dalpha_rho_ds, dpres_ds, dvel_ds, dadv_ds)
905905
else if ((cbc_loc == -1 .and. bc${XYZ}$b == BC_CHAR_SUP_OUTFLOW) .or. &
906-
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_SUP_OUTFLOW)) then
906+
(cbc_loc == 1 .and. bc${XYZ}$e == BC_CHAR_SUP_OUTFLOW)) then
907907
call s_compute_supersonic_outflow_L(lambda, L, rho, c, mf, dalpha_rho_ds, dpres_ds, dvel_ds, dadv_ds)
908908
end if
909909

src/simulation/m_global_parameters.fpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ module m_global_parameters
190190

191191
integer :: num_bc_patches
192192
logical :: bc_io
193+
integer :: BC_RIEMANN_EXTRAPOLATION
194+
integer :: BC_GHOST_EXTRAPOLATION
193195
!> @name Boundary conditions (BC) in the x-, y- and z-directions, respectively
194196
!> @{
195197
type(int_bounds_info) :: bc_x, bc_y, bc_z
@@ -584,6 +586,8 @@ contains
584586
585587
num_bc_patches = 0
586588
bc_io = .false.
589+
BC_RIEMANN_EXTRAPOLATION = -4
590+
BC_GHOST_EXTRAPOLATION = -3
587591
588592
bc_x%beg = dflt_int; bc_x%end = dflt_int
589593
bc_y%beg = dflt_int; bc_y%end = dflt_int

0 commit comments

Comments
 (0)