blob: 5061a7a569a6279c8c11b3cc5121be9b4c95b529 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
*DECK AUTPRD
SUBROUTINE AUTPRD(NGRP,LBIN,NFS,SIGT)
*
*-----------------------------------------------------------------------
*
*Purpose:
* Cross section or source spreading.
*
*Copyright:
* Copyright (C) 2002 Ecole Polytechnique de Montreal
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version
*
*Author(s): A. Hebert
*
*Parameters: input
* NGRP number of macro energy groups.
* LBIN number of fine energy groups.
* NFS number of fine energy groups in each coarse energy group.
* SIGT cross section or source before spreading.
*
*Parameters: output
* SIGT cross section or source after spreading.
*
*-----------------------------------------------------------------------
*
*----
* SUBROUTINE ARGUMENTS
*----
INTEGER NGRP,LBIN,NFS(NGRP)
REAL SIGT(LBIN)
*----
* ALLOCATABLE ARRAYS
*----
REAL, ALLOCATABLE, DIMENSION(:) :: GAR
*
ALLOCATE(GAR(NGRP))
GAR(:NGRP)=SIGT(:NGRP)
SIGT(:LBIN)=0.0
IPO=LBIN
DO J=NGRP,1,-1
ND=ABS(NFS(J))
SS=GAR(J)
DO L=1,ND
K=IPO-L+1
SIGT(K)=SS
ENDDO
IPO=IPO-ND
ENDDO
DEALLOCATE(GAR)
IF(IPO.NE.0) CALL XABORT('AUTPRD: SPREAD FAILURE.')
RETURN
END
|