forked from lanl/SuperNu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sourcemod.f
42 lines (41 loc) · 1.89 KB
/
sourcemod.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
* © 2023. Triad National Security, LLC. All rights reserved.
* This program was produced under U.S. Government contract 89233218CNA000001 for Los Alamos National
* Laboratory (LANL), which is operated by Triad National Security, LLC for the U.S. Department of
* Energy/National Nuclear Security Administration. All rights in the program are reserved by Triad
* National Security, LLC, and the U.S. Department of Energy/National Nuclear Security Administration.
* The Government is granted for itself and others acting on its behalf a nonexclusive, paid-up,
* irrevocable worldwide license in this material to reproduce, prepare. derivative works, distribute
* copies to the public, perform publicly and display publicly, and to permit others to do so.
*This file is part of SuperNu. SuperNu is released under the terms of the GNU GPLv3, see COPYING.
*Copyright (c) 2013-2022 Ryan T. Wollaeger and Daniel R. van Rossum. All rights reserved.
module sourcemod
c ----------------
implicit none
integer :: src_ns,src_ninit
integer :: src_nnew
integer :: src_nnonth
integer :: src_nsurf
integer :: src_ninitnew=0
integer*8 :: src_nvacantmin=huge(src_ns)
integer :: src_nflux=0
integer :: src_nsurftot
c
integer,allocatable :: src_ivacant(:) !array of vacant particle array locations
integer*8,allocatable :: src_nvacantall(:) !(nmpi) number of vacancies on each of the ranks
c
save
c
contains
subroutine sourcemod_init(nmpi)
c ----------------------------------------
implicit none
integer,intent(in) :: nmpi
************************************************************************
* init particle module
************************************************************************
allocate(src_nvacantall(nmpi))
src_nvacantall = 0
end subroutine sourcemod_init
c
end module sourcemod
c vim: fdm=marker