Skip to content

Commit 78d9490

Browse files
Made it through 66% of simulation
1 parent d9eb6e0 commit 78d9490

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/common/m_variables_conversion.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ contains
741741

742742
type(scalar_field), dimension(sys_size), intent(in) :: qK_cons_vf
743743

744-
real(wp), dimension(idwint(1)%beg:, idwint(2)%beg:, idwint(3)%beg:, 1:, 1:), intent(inout) :: mv
744+
real(stp), dimension(idwint(1)%beg:, idwint(2)%beg:, idwint(3)%beg:, 1:, 1:), intent(inout) :: mv
745745

746746
integer :: i, j, k, l
747747
real(wp) :: mu, sig, nbub_sc
@@ -773,8 +773,8 @@ contains
773773
pure subroutine s_initialize_pb(qK_cons_vf, mv, pb)
774774
type(scalar_field), dimension(sys_size), intent(in) :: qK_cons_vf
775775

776-
real(wp), dimension(idwint(1)%beg:, idwint(2)%beg:, idwint(3)%beg:, 1:, 1:), intent(in) :: mv
777-
real(wp), dimension(idwint(1)%beg:, idwint(2)%beg:, idwint(3)%beg:, 1:, 1:), intent(inout) :: pb
776+
real(stp), dimension(idwint(1)%beg:, idwint(2)%beg:, idwint(3)%beg:, 1:, 1:), intent(in) :: mv
777+
real(stp), dimension(idwint(1)%beg:, idwint(2)%beg:, idwint(3)%beg:, 1:, 1:), intent(inout) :: pb
778778

779779
integer :: i, j, k, l
780780
real(wp) :: mu, sig, nbub_sc

src/pre_process/m_patches.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,7 +2182,7 @@ contains
21822182

21832183
! Correct the sign of the levelset
21842184
if (patch_id_fp(i, j, k) > 0) then
2185-
STL_levelset%sf(i, j, k, patch_id) = -abs(STL_levelset%sf(i, j, k, patch_id))
2185+
STL_levelset%sf(i, j, k, patch_id) = -real(abs(real(STL_levelset%sf(i, j, k, patch_id), kind=wp)), kind=stp) ! TODO :: Make sure this isn't slow. It feels bad.
21862186
end if
21872187
21882188
! Correct the sign of the levelset_norm
@@ -2208,7 +2208,7 @@ contains
22082208
22092209
! Correct the sign of the levelset
22102210
if (patch_id_fp(i, j, k) > 0) then
2211-
STL_levelset%sf(i, j, 0, patch_id) = -abs(STL_levelset%sf(i, j, 0, patch_id))
2211+
STL_levelset%sf(i, j, 0, patch_id) = -real(abs(real(STL_levelset%sf(i, j, 0, patch_id), kind=wp)), kind=stp)
22122212
end if
22132213
22142214
! Get the boundary normals

src/pre_process/m_perturbation.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ contains
9898
do q = 1, elliptic_smoothing_iters
9999

100100
! Communication of buffer regions and apply boundary conditions
101-
call s_populate_variables_buffers(bc_type, q_prim_vf, pb%sf, mv%sf)
101+
call s_populate_variables_buffers(bc_type, q_prim_vf, real(pb%sf, kind=wp), real(mv%sf, kind=wp))
102102

103103
! Perform smoothing and store in temp array
104104
if (n == 0) then

0 commit comments

Comments
 (0)