Skip to content

Commit 4bb2b9f

Browse files
committed
Merge remote-tracking branch 'upstream/master' into feature/mie-gruneisen-solver
2 parents f11722b + 8fc5783 commit 4bb2b9f

13 files changed

Lines changed: 3 additions & 30 deletions

src/common/include/2dHardcodedIC.fpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,6 @@
252252
alpha = r/r0
253253
if (alpha < 1) then
254254
q_prim_vf(eqn_idx%B%beg)%sf(i, j, 0) = 1._wp/sqrt(4._wp*pi)*(alpha**8 - 2._wp*alpha**4 + 1._wp)
255-
! q_prim_vf(eqn_idx%B%beg)%sf(i,j,0) = 1._wp/sqrt(4000._wp*pi) * (4096._wp*r2**4 - 128._wp*r2**2 + 1._wp)
256-
! q_prim_vf(eqn_idx%B%beg)%sf(i,j,0) = 1._wp/(4._wp*pi) * (alpha**8 - 2._wp*alpha**4 + 1._wp)
257-
! q_prim_vf(eqn_idx%E)%sf(i,j,0) = 6._wp - q_prim_vf(eqn_idx%B%beg)%sf(i,j,0)**2/2._wp
258255
end if
259256
case (262) ! Tilted 2D MHD shock-tube at \alpha = arctan2 (\approx63.4 deg)
260257
! rotate by \alpha = atan(2)

src/common/include/macros.fpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,20 @@
2929
3030
if (nv_uvm_pref_gpu) then
3131
#:for arg in args
32-
! print*, "Moving ${arg}$ to GPU => ", SHAPE(${arg}$) set preferred location GPU
32+
! set preferred location GPU
3333
istat = cudaMemAdvise(c_devloc(${arg}$), SIZEOF(${arg}$), cudaMemAdviseSetPreferredLocation, 0)
3434
if (istat /= cudaSuccess) then
3535
write (*, "('Error code: ',I0, ': ')") istat
36-
! write(*,*) cudaGetErrorString(istat)
3736
end if
3837
! set accessed by CPU
3938
istat = cudaMemAdvise(c_devloc(${arg}$), SIZEOF(${arg}$), cudaMemAdviseSetAccessedBy, cudaCpuDeviceId)
4039
if (istat /= cudaSuccess) then
4140
write (*, "('Error code: ',I0, ': ')") istat
42-
! write(*,*) cudaGetErrorString(istat)
4341
end if
4442
! prefetch to GPU - physically populate memory pages
4543
istat = cudaMemPrefetchAsync(c_devloc(${arg}$), SIZEOF(${arg}$), 0, 0)
4644
if (istat /= cudaSuccess) then
4745
write (*, "('Error code: ',I0, ': ')") istat
48-
! write(*,*) cudaGetErrorString(istat)
4946
end if
5047
#:endfor
5148
end if

src/common/m_phase_change.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,12 @@ contains
5858
real(wp) :: rhoe, dynE, rhos !< total internal energy, kinetic energy, and total entropy
5959
real(wp) :: rho, rM, m1, m2, MCT !< total density, total reacting mass, individual reacting masses
6060
real(wp) :: TvF !< total volume fraction
61-
! $:GPU_DECLARE(create='[pS,TS,rhoe,dynE,rhos,rho,rM,m1,m2,MCT,TvF]')
6261

6362
#:if not MFC_CASE_OPTIMIZATION and USING_AMD
6463
real(wp), dimension(3) :: p_infpT, sk, hk, gk, ek, rhok
6564
#:else
6665
real(wp), dimension(num_fluids) :: p_infpT, sk, hk, gk, ek, rhok
6766
#:endif
68-
! $:GPU_DECLARE(create='[p_infpT,sk,hk,gk,ek,rhok]')
6967

7068
!> Generic loop iterators
7169
integer :: i, j, k, l

src/post_process/m_data_input.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ end subroutine s_read_abstract_data_files
4040
type(scalar_field), allocatable, dimension(:), public :: q_prim_vf !< Primitive variables
4141
type(integer_field), allocatable, dimension(:,:), public :: bc_type !< Boundary condition identifiers
4242
type(scalar_field), public :: q_T_sf !< Temperature field
43-
! type(scalar_field), public :: ib_markers !<
44-
type(integer_field), public :: ib_markers
43+
type(integer_field), public :: ib_markers
4544

4645
procedure(s_read_abstract_data_files), pointer :: s_read_data_files => null()
4746

src/simulation/m_body_forces.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ module m_body_forces
1414
use m_helper, only: s_prng, f_unit_vector, f_cross
1515
use m_nvtx
1616

17-
! $:USE_GPU_MODULE()
18-
1917
implicit none
2018

2119
private

src/simulation/m_bubbles_EL.fpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,9 +1728,6 @@ contains
17281728
call my_inquire(trim(file_loc), file_exist)
17291729
if (.not. file_exist) then
17301730
open (LAG_VOID_ID, FILE=trim(file_loc), form='formatted', position='rewind')
1731-
! write (12, *) 'currentTime, averageVoidFraction, ', & 'maximumVoidFraction, totalParticlesVolume' write (12, *)
1732-
! 'The averageVoidFraction value does ', & 'not reflect the real void fraction in the cloud since the ', & 'cells
1733-
! which do not have bubbles are not accounted'
17341731
else
17351732
open (LAG_VOID_ID, FILE=trim(file_loc), form='formatted', position='append')
17361733
end if

src/simulation/m_collisions.fpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ contains
9090

9191
if (num_considered_collisions == 0) return
9292

93-
! print *, "Checking Collisions: ", num_considered_collisions, " on rank ", proc_rank
94-
9593
! Iterate over all collisions detected
9694
$:GPU_PARALLEL_LOOP(private='[i, l, encoded_pid1, encoded_pid2, xp1, xp2, yp1, yp2, zp1, zp2, pid1, pid2, centroid_1, &
9795
& centroid_2, normal_vector, overlap_distance, effective_mass, k, eta, normal_velocity, &
@@ -105,7 +103,6 @@ contains
105103
pid1 = collision_lookup(i, 1)
106104
pid2 = collision_lookup(i, 2)
107105

108-
! call s_get_neighborhood_idx(pid1, pid1) ! global patch ID -> local index call s_get_neighborhood_idx(pid2, pid2)
109106
if (pid1 <= 0 .or. pid2 <= 0) cycle
110107

111108
centroid_1(1) = patch_ib(pid1)%x_centroid + real(xp1, wp)*(glb_bounds(1)%end - glb_bounds(1)%beg)

src/simulation/m_compute_cbc.fpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ contains
5151
real(wp), intent(in) :: dpres_ds
5252
integer :: i
5353

54-
! $:GPU_LOOP(parallelism='[seq]')
5554
do i = 2, eqn_idx%mom%beg
5655
L(i) = lambda_factor*lambda2*(c*c*dalpha_rho_ds(i - 1) - mf(i - 1)*dpres_ds)
5756
end do
@@ -75,7 +74,6 @@ contains
7574
real(wp), intent(in) :: lambda_factor, lambda2
7675
integer :: i
7776

78-
! $:GPU_LOOP(parallelism='[seq]')
7977
do i = eqn_idx%mom%beg + 1, eqn_idx%mom%end
8078
L(i) = lambda_factor*lambda2*dvel_ds(dir_idx(i - eqn_idx%cont%end))
8179
end do
@@ -99,7 +97,6 @@ contains
9997
real(wp), intent(in) :: lambda_factor, lambda2
10098
integer :: i
10199

102-
! $:GPU_LOOP(parallelism='[seq]')
103100
do i = eqn_idx%E, eqn_idx%adv%end - 1
104101
L(i) = lambda_factor*lambda2*dadv_ds(i - eqn_idx%mom%end)
105102
end do
@@ -125,7 +122,6 @@ contains
125122

126123
if (.not. chemistry) return
127124

128-
! $:GPU_LOOP(parallelism='[seq]')
129125
do i = eqn_idx%species%beg, eqn_idx%species%end
130126
L(i) = lambda_factor*lambda2*dYs_ds(i - eqn_idx%species%beg + 1)
131127
end do

src/simulation/m_global_parameters.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module m_global_parameters
1616
use m_helper_basic
1717
! Shared state: generated_decls, generated_case_opt_decls, sys_size, eqn_idx, chemistry, shear_*
1818
use m_global_parameters_common
19-
! $:USE_GPU_MODULE()
2019

2120
implicit none
2221

@@ -86,7 +85,6 @@ module m_global_parameters
8685
logical :: bodyForces
8786
real(wp), dimension(3) :: accel_bf
8887
$:GPU_DECLARE(create='[accel_bf]')
89-
! $:GPU_DECLARE(create='[k_x,w_x,p_x,g_x,k_y,w_y,p_y,g_y,k_z,w_z,p_z,g_z]')
9088

9189
!> Source fields for the spatially supported body force. `spatial_bf` and
9290
!> `bf_spatial_support` are auto-generated in generated_decls.fpp.

src/simulation/m_riemann_state.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,6 @@ contains
11331133
end if
11341134

11351135
if (shear_stress) then
1136-
! current_tau_shear = 0.0_wp
11371136
call s_calculate_shear_stress_tensor(vel_grad_avg, Re_shear, divergence_v, current_tau_shear)
11381137

11391138
do i_dim = 1, num_dims
@@ -1147,7 +1146,6 @@ contains
11471146
end if
11481147

11491148
if (bulk_stress) then
1150-
! current_tau_bulk = 0.0_wp
11511149
call s_calculate_bulk_stress_tensor(Re_bulk, divergence_v, current_tau_bulk)
11521150

11531151
do i_dim = 1, num_dims

0 commit comments

Comments
 (0)