Skip to content

Commit c62f460

Browse files
authored
Update m_rhs.fpp
1 parent 35ec4c3 commit c62f460

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

src/simulation/m_rhs.fpp

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ contains
248248

249249
if (surface_tension) then
250250
! This assumes that the color function advection equation is
251-
! the last equation. If this changes then this logic will
252-
! need updated
251+
! the last equation. If this changes, then this logic will
252+
! need updating
253253
do l = adv_idx%end + 1, sys_size - 1
254254
@:ALLOCATE(q_prim_qp%vf(l)%sf(idwbuff(1)%beg:idwbuff(1)%end, idwbuff(2)%beg:idwbuff(2)%end, idwbuff(3)%beg:idwbuff(3)%end))
255255
end do
@@ -455,8 +455,6 @@ contains
455455
@:ALLOCATE(dqR_prim_dy_n(i)%vf(1:sys_size))
456456
@:ALLOCATE(dqR_prim_dz_n(i)%vf(1:sys_size))
457457

458-
if (viscous) then
459-
460458
do l = mom_idx%beg, mom_idx%end
461459
@:ALLOCATE(dqL_prim_dx_n(i)%vf(l)%sf( &
462460
& idwbuff(1)%beg:idwbuff(1)%end, &
@@ -494,15 +492,11 @@ contains
494492
end do
495493
end if
496494

497-
end if
498-
499495
@:ACC_SETUP_VFs(dqL_prim_dx_n(i), dqL_prim_dy_n(i), dqL_prim_dz_n(i))
500496
@:ACC_SETUP_VFs(dqR_prim_dx_n(i), dqR_prim_dy_n(i), dqR_prim_dz_n(i))
501497
end do
502-
end if
503-
! END: Allocation/Association of d K_prim_ds_n ==================
498+
! END: Allocation/Association of d K_prim_ds_n ==================
504499

505-
if (viscous) then
506500
if (weno_Re_flux) then
507501
@:ALLOCATE_GLOBAL(dqL_rsx_vf(idwbuff(1)%beg:idwbuff(1)%end, &
508502
idwbuff(2)%beg:idwbuff(2)%end, idwbuff(3)%beg:idwbuff(3)%end, mom_idx%beg:mom_idx%end))
@@ -535,11 +529,8 @@ contains
535529
idwbuff(2)%beg:idwbuff(2)%end, idwbuff(3)%beg:idwbuff(3)%end, mom_idx%beg:mom_idx%end))
536530

537531
end if
538-
end if
539532
end if
540533

541-
! ==================================================================
542-
543534
! Allocation of gm_alphaK_n =====================================
544535
@:ALLOCATE_GLOBAL(gm_alphaL_n(1:num_dims))
545536
@:ALLOCATE_GLOBAL(gm_alphaR_n(1:num_dims))
@@ -568,7 +559,7 @@ contains
568559
& idwbuff(3)%beg:idwbuff(3)%end))
569560
end do
570561

571-
if (viscous .or. (surface_tension)) then
562+
if (viscous .or. surface_tension) then
572563
do l = mom_idx%beg, E_idx
573564
@:ALLOCATE(flux_src_n(i)%vf(l)%sf( &
574565
& idwbuff(1)%beg:idwbuff(1)%end, &
@@ -927,7 +918,7 @@ contains
927918

928919
! RHS additions for viscosity
929920
call nvtxStartRange("RHS_add_phys")
930-
if (viscous .or. (surface_tension)) then
921+
if (viscous .or. surface_tension) then
931922
call s_compute_additional_physics_rhs(id, &
932923
q_prim_qp%vf, &
933924
rhs_vf, &

0 commit comments

Comments
 (0)