Skip to content

Commit c083cf0

Browse files
authored
remove wion -- it is unused (#294)
1 parent 803138c commit c083cf0

File tree

5 files changed

+14
-58
lines changed

5 files changed

+14
-58
lines changed

networks/aprox13/actual_network.F90

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ module actual_network
1919
integer, parameter :: ife52 = 12
2020
integer, parameter :: ini56 = 13
2121

22-
real(rt) , allocatable :: bion(:), mion(:), wion(:)
22+
real(rt) , allocatable :: bion(:), mion(:)
2323

2424
#ifdef AMREX_USE_CUDA
25-
attributes(managed) :: bion, mion, wion
25+
attributes(managed) :: bion, mion
2626
#endif
2727

2828
character (len=32), parameter :: network_name = "aprox13"
@@ -44,7 +44,7 @@ module actual_network
4444

4545
real(rt) , parameter :: enuc_conv2 = -avo*c_light*c_light
4646

47-
!$acc declare create(aion, zion, nion, bion, mion, wion)
47+
!$acc declare create(aion, zion, nion, bion, mion)
4848

4949
! Rates data
5050

@@ -140,7 +140,6 @@ subroutine actual_network_init
140140
call network_properties_init()
141141
allocate(bion(nspec))
142142
allocate(mion(nspec))
143-
allocate(wion(nspec))
144143

145144
! Set the binding energy of the element (MeV)
146145
bion(ihe4) = 28.29603e0_rt
@@ -160,13 +159,7 @@ subroutine actual_network_init
160159
! Set the mass
161160
mion(:) = nion(:) * mn + zion(:) * (mp + me) - bion(:) * mev2gr
162161

163-
! Molar mass
164-
wion(:) = avo * mion(:)
165-
166-
! Common approximation
167-
wion(:) = aion(:)
168-
169-
!$acc update device(aion, zion, nion, bion, mion, wion)
162+
!$acc update device(aion, zion, nion, bion, mion)
170163

171164
ratenames(ir3a) = 'r3a '
172165
ratenames(irg3a) = 'rg3a '
@@ -278,9 +271,6 @@ subroutine actual_network_finalize
278271
if (allocated(mion)) then
279272
deallocate(mion)
280273
endif
281-
if (allocated(wion)) then
282-
deallocate(wion)
283-
endif
284274

285275
end subroutine actual_network_finalize
286276

networks/aprox19/actual_network.F90

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ module actual_network
2424
integer, parameter :: ineut = 18
2525
integer, parameter :: iprot = 19
2626

27-
real(rt) , allocatable :: bion(:), mion(:), wion(:)
27+
real(rt) , allocatable :: bion(:), mion(:)
2828

2929
#ifdef AMREX_USE_CUDA
30-
attributes(managed) :: bion, mion, wion
30+
attributes(managed) :: bion, mion
3131
#endif
3232

3333
character (len=32), parameter :: network_name = "aprox19"
@@ -170,7 +170,6 @@ subroutine actual_network_init
170170

171171
allocate(bion(nspec))
172172
allocate(mion(nspec))
173-
allocate(wion(nspec))
174173

175174

176175
! Set the binding energy of the element
@@ -197,12 +196,6 @@ subroutine actual_network_init
197196
! Set the mass
198197
mion(:) = nion(:) * mn + zion(:) * (mp + me) - bion(:) * mev2gr
199198

200-
! Molar mass
201-
wion(:) = avo * mion(:)
202-
203-
! Common approximation
204-
wion(:) = aion(:)
205-
206199
! set the names of the reaction rates
207200
ratenames(ir3a) = 'r3a '
208201
ratenames(irg3a) = 'rg3a '
@@ -335,9 +328,6 @@ subroutine actual_network_finalize
335328
if (allocated(mion)) then
336329
deallocate(mion)
337330
endif
338-
if (allocated(wion)) then
339-
deallocate(wion)
340-
endif
341331

342332
end subroutine actual_network_finalize
343333

networks/aprox21/actual_network.F90

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ module actual_network
2727
integer, parameter :: ineut = 20
2828
integer, parameter :: iprot = 21
2929

30-
real(rt) , allocatable :: bion(:), mion(:), wion(:)
30+
real(rt) , allocatable :: bion(:), mion(:)
3131

3232
#ifdef AMREX_USE_CUDA
33-
attributes(managed) :: bion, mion, wion
33+
attributes(managed) :: bion, mion
3434
#endif
3535

3636
character (len=32), parameter :: network_name = "aprox21"
@@ -184,7 +184,6 @@ subroutine actual_network_init
184184

185185
allocate(bion(nspec))
186186
allocate(mion(nspec))
187-
allocate(wion(nspec))
188187

189188

190189
! Set the binding energy of the element
@@ -213,12 +212,6 @@ subroutine actual_network_init
213212
! Set the mass
214213
mion(:) = nion(:) * mn + zion(:) * (mp + me) - bion(:) * mev2gr
215214

216-
! Molar mass
217-
wion(:) = avo * mion(:)
218-
219-
! Common approximation
220-
wion(:) = aion(:)
221-
222215
! set the names of the reaction rates
223216
ratenames(ir3a) = 'r_he4_he4_he4_to_c12'
224217
ratenames(irg3a) = 'r_c12_to_he4_he4_he4'
@@ -366,9 +359,6 @@ subroutine actual_network_finalize
366359
if (allocated(mion)) then
367360
deallocate(mion)
368361
endif
369-
if (allocated(wion)) then
370-
deallocate(wion)
371-
endif
372362

373363
end subroutine actual_network_finalize
374364

networks/ignition_chamulak/actual_network.F90

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ module actual_network
1414
integer, parameter :: io16 = 2
1515
integer, parameter :: iash = 3
1616

17-
real(rt) , allocatable :: bion(:), mion(:), wion(:)
17+
real(rt) , allocatable :: bion(:), mion(:)
1818

1919
#ifdef AMREX_USE_CUDA
20-
attributes(managed) :: bion, mion, wion
20+
attributes(managed) :: bion, mion
2121
#endif
2222

2323
integer, parameter :: nrates = 1
@@ -32,7 +32,6 @@ subroutine actual_network_init
3232
call network_properties_init()
3333
allocate(bion(nspec))
3434
allocate(mion(nspec))
35-
allocate(wion(nspec))
3635

3736
! the ash from C12 burning according to Chamulak et al. is a mixture
3837
! of C13, O16, Ne20, and Na23. Ne20 + alpha results 60% of the time,
@@ -56,9 +55,6 @@ subroutine actual_network_finalize
5655
if (allocated(mion)) then
5756
deallocate(mion)
5857
endif
59-
if (allocated(wion)) then
60-
deallocate(wion)
61-
endif
6258

6359
end subroutine actual_network_finalize
6460

networks/ignition_simple/actual_network.F90

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ module actual_network
2121
integer, parameter :: io16 = 2
2222
integer, parameter :: img24 = 3
2323

24-
real(rt) , allocatable :: bion(:), mion(:), wion(:)
24+
real(rt) , allocatable :: bion(:), mion(:)
2525

2626
#ifdef AMREX_USE_CUDA
27-
attributes(managed) :: bion, mion, wion
27+
attributes(managed) :: bion, mion
2828
#endif
2929

30-
!$acc declare create(bion, mion, wion)
30+
!$acc declare create(bion, mion)
3131

3232
integer, parameter :: nrates = 1
3333
integer, parameter :: num_rate_groups = 4
@@ -57,7 +57,6 @@ subroutine actual_network_init
5757

5858
allocate(bion(nspec))
5959
allocate(mion(nspec))
60-
allocate(wion(nspec))
6160

6261
! Binding energies per nucleus in MeV
6362
bion(ic12) = 92.16294e0_rt
@@ -67,12 +66,6 @@ subroutine actual_network_init
6766
! Set the mass
6867
mion(:) = nion(:) * mn + zion(:) * (mp + me) - bion(:) * mev2gr
6968

70-
! Molar mass
71-
wion(:) = avo * mion(:)
72-
73-
! Common approximation
74-
wion(:) = aion(:)
75-
7669
#ifdef REACT_SPARSE_JACOBIAN
7770
! Set CSR format metadata for Jacobian
7871
allocate(csr_jac_col_index(NETWORK_SPARSE_JAC_NNZ))
@@ -82,7 +75,7 @@ subroutine actual_network_init
8275
csr_jac_row_count = [1, 3, 5, 8]
8376
#endif
8477

85-
!$acc update device(nion, mion, wion)
78+
!$acc update device(nion, mion)
8679

8780
end subroutine actual_network_init
8881

@@ -99,9 +92,6 @@ subroutine actual_network_finalize
9992
if (allocated(mion)) then
10093
deallocate(mion)
10194
endif
102-
if (allocated(wion)) then
103-
deallocate(wion)
104-
endif
10595

10696
end subroutine actual_network_finalize
10797

0 commit comments

Comments
 (0)