13 REAL(rprec),
PARAMETER ::
p5 =
cp5
29 REAL(rprec),
DIMENSION(:),
ALLOCATABLE,
TARGET ::
potvac
34 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bvecsav
35 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
amatsav
37 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bexni
39 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
brv
40 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bphiv
41 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bzv
43 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bsqvac
45 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
r1b
46 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
rub
47 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
rvb
48 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
z1b
49 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
zub
50 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
zvb
52 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bexu
53 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bexv
54 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bexn
56 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
auu
57 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
auv
58 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
avv
60 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
snr
61 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
snv
62 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
snz
64 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
drv
66 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
guu_b
67 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
guv_b
68 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
gvv_b
70 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
rzb2
72 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
rcosuv
73 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
rsinuv
79 REAL(rprec),
ALLOCATABLE ::
bsubu(:)
80 REAL(rprec),
ALLOCATABLE ::
bsubv(:)
81 REAL(rprec),
ALLOCATABLE ::
potu(:)
82 REAL(rprec),
ALLOCATABLE ::
potv(:)
86 REAL(rprec),
ALLOCATABLE,
DIMENSION(:) ::
ruu
87 REAL(rprec),
ALLOCATABLE,
DIMENSION(:) ::
ruv
88 REAL(rprec),
ALLOCATABLE,
DIMENSION(:) ::
rvv
89 REAL(rprec),
ALLOCATABLE,
DIMENSION(:) ::
zuu
90 REAL(rprec),
ALLOCATABLE,
DIMENSION(:) ::
zuv
91 REAL(rprec),
ALLOCATABLE,
DIMENSION(:) ::
zvv
94 REAL(rprec),
ALLOCATABLE ::
brad(:)
95 REAL(rprec),
ALLOCATABLE ::
bphi(:)
96 REAL(rprec),
ALLOCATABLE ::
bz(:)
99 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
xpts
102 REAL(rprec),
ALLOCATABLE ::
grpmn(:)
107 REAL(rprec),
ALLOCATABLE ::
green(:,:)
111 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
r0p
112 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
r1p
113 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
r0m
114 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
r1m
115 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
sqrtc
116 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
sqrta
117 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
tlp2
118 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
tlp1
119 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
tlp
120 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
tlm2
121 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
tlm1
122 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
tlm
123 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
adp
124 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
adm
125 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
cma
126 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
ra1p
127 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
ra1m
128 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
slm
129 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
slp
130 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
tlpm
131 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
slpm
132 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
delt1u
133 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
azp1u
134 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
azm1u
135 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
cma11u
136 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
sqad1u
137 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
sqad2u
139 real(rprec),
dimension(:,:),
allocatable ::
all_tlp
140 real(rprec),
dimension(:,:),
allocatable ::
all_tlm
141 real(rprec),
dimension(:,:),
allocatable ::
all_slp
142 real(rprec),
dimension(:,:),
allocatable ::
all_slm
145 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
gsave
146 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
ga1
147 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
ga2
148 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
dsave
151 REAL(rprec),
ALLOCATABLE,
DIMENSION(:,:,:) ::
g1
152 REAL(rprec),
ALLOCATABLE,
DIMENSION(:,:,:) ::
g2
155 REAL(rprec),
ALLOCATABLE,
DIMENSION(:,:,:) ::
bcos
156 REAL(rprec),
ALLOCATABLE,
DIMENSION(:,:,:) ::
bsin
157 REAL(rprec),
ALLOCATABLE,
DIMENSION(:,:,:) ::
source
159 REAL(rprec),
ALLOCATABLE ::
actemp(:,:,:,:)
160 REAL(rprec),
ALLOCATABLE ::
astemp(:,:,:,:)
166 integer :: istat1 = 0
167 integer :: istat2 = 0
178 IF (istat1.ne.0) stop
'allocation error #3 in allocate_nestor'
181 if (istat1 .ne. 0)
then
182 stop
'could not allocate m_map, n_map'
186 IF (istat2.ne.0) stop
'allocation error #2 in allocate_nestor'
196 IF (i .ne. 0) stop
'Allocation error in vacuum'
203 IF (i .ne. 0) stop
'Allocation error in vacuum'
221 IF (istat1.ne.0) stop
'allocation error in precal'
225 IF (i .NE. 0) stop
'Allocation error in SURFACE'
229 IF (i .ne. 0) stop
'allocation error in bextern'
234 ALLOCATE (
xpts(3,
nvp+1), stat=i)
235 IF (i .ne. 0) stop
' allocation error in tolicu'
239 IF (ip .ne. 0) stop
'GRPMN: Allocation error in scalpot'
242 IF (ip .ne. 0) stop
'GRPMN: Allocation error in scalpot'
249 stop
'green allocation error in scalpot.'
260 IF (l .ne. 0) stop
'Allocation error in SUBROUTINE analyt'
264 IF (l .ne. 0) stop
'Allocation error for debugging analyt'
268 IF (i .ne. 0) stop
'allocation error in greenf'
274 IF (m .NE. 0) stop
'Allocation error in fourp'
280 IF (i .ne. 0) stop
'allocation error in fouri'
288 integer :: istat1 = 0
289 integer :: istat3 = 0
290 integer :: istat4 = 0
298 IF (istat3.ne.0) stop
'dealloc error #3 in free_mem_nestor'
303 if (istat3 .ne. 0) stop
'could not deallocate m_map, n_map'
306 IF (
ALLOCATED(
brv))
then
308 IF (istat4.ne.0) stop
'dealloc error #4 in free_mem_nestor'
312 IF (
ALLOCATED(
bexu))
then
318 IF (i .ne. 0) stop
'Deallocation error in vacuum'
323 IF (i .ne. 0) stop
'Deallocation error in vacuum'
331 IF (
ALLOCATED(
tanu))
then
335 IF (istat1 .ne. 0) stop
'Deallocation error in vacuum'
339 if (
allocated(
ruu))
then
344 if (
allocated(
brad))
then
349 if (
allocated(
xpts))
then
354 if (
allocated(
grpmn))
then
364 if (
allocated(
r0p))
then
366 tlp,
tlm2,
tlm1,
tlm,
adp,
adm,
cma,
ra1p,
ra1m,
slm, &
372 if (
allocated(
gsave))
then
377 if (
allocated(
g1))
then
378 DEALLOCATE (
g1,
g2, stat=m)
382 if (
allocated(
bcos))
then
real(rprec), dimension(:), allocatable tanv
real(rprec), dimension(:,:), allocatable cosv1
real(rprec), dimension(:,:), allocatable sinv
real(rprec), dimension(:), allocatable xnpot
real(rprec), dimension(:), allocatable cosuv
real(rprec), dimension(:,:), allocatable sinui
real(rprec), dimension(:), allocatable sinuv
real(rprec), dimension(:), allocatable tanv_1d
real(rprec), dimension(:,:,:), allocatable cmns
real(rprec), dimension(:,:), allocatable cosui
real(rprec), dimension(:), allocatable xmpot
real(rprec), dimension(:), allocatable csign
real(rprec), dimension(:,:), allocatable cosu
integer, dimension(:), allocatable imirr
real(rprec), dimension(:), allocatable sinper
real(rprec), dimension(:,:), allocatable sinv1
real(rprec), dimension(:), allocatable cosper
real(rprec), dimension(:), allocatable tanu_1d
real(rprec), dimension(:), allocatable tanu
real(rprec), dimension(:,:), allocatable sinu1
real(rprec), dimension(:,:), allocatable sinu
real(rprec), dimension(:,:), allocatable cosu1
real(rprec), dimension(:,:), allocatable cosv
real(rprec), dimension(:), allocatable tlm2
real(rprec), dimension(:), allocatable bsubv
real(rprec), dimension(:,:), allocatable all_slp
real(rprec), dimension(:), allocatable bsqvac
real(rprec), dimension(:,:), allocatable all_tlp
real(rprec), dimension(:), allocatable auu
real(rprec), dimension(:), allocatable zuu
real(rprec), dimension(:), allocatable cma
real(rprec), dimension(:), allocatable zvb
real(rprec), dimension(:), allocatable r1b
real(rprec), dimension(:), allocatable r0m
real(rprec), dimension(:), allocatable bvecsav
real(rprec), dimension(:), allocatable ruv
real(rprec), dimension(:), allocatable sqad1u
real(rprec), dimension(:), allocatable zub
real(rprec), dimension(:,:,:), allocatable g1
real(rprec), dimension(:), allocatable bphi
real(rprec), dimension(:,:), allocatable greenp
real(rprec), dimension(:), allocatable grpmn_m_map_wrt
real(rprec), dimension(:), allocatable z1b
subroutine allocate_nestor
real(rprec), dimension(:), allocatable tlp
real(rprec), dimension(:), allocatable gsave
real(rprec), dimension(:), allocatable r1p
real(rprec), dimension(:,:,:), allocatable g2
real(rprec), dimension(:), allocatable zvv
real(rprec), dimension(:), allocatable bexni
real(rprec), dimension(:), allocatable bzv
real(rprec), dimension(:), allocatable amatsav
real(rprec), dimension(:), allocatable azp1u
real(rprec), dimension(:), allocatable tlp1
real(rprec), dimension(:), allocatable snz
real(rprec), dimension(:,:,:,:), allocatable actemp
real(rprec), dimension(:,:), allocatable xpts
real(rprec), dimension(:), allocatable snr
real(rprec), dimension(:), allocatable grpmn
real(rprec), dimension(:), allocatable ra1m
real(rprec), dimension(:), allocatable slpm
real(rprec), dimension(:), allocatable, target potvac
real(rprec), dimension(:), allocatable sqad2u
real(rprec), dimension(:), allocatable adm
real(rprec), dimension(:,:), allocatable all_tlm
real(rprec), dimension(:), allocatable sqrtc
real(rprec), dimension(:,:), allocatable ga2
real(rprec), dimension(:), allocatable tlm1
real(rprec), dimension(:), allocatable r1m
real(rprec), dimension(:), allocatable cma11u
real(rprec), dimension(:), allocatable ruu
real(rprec), dimension(:), allocatable brv
real(rprec), dimension(:), allocatable rzb2
real(rprec), dimension(:), allocatable rub
real(rprec), dimension(:), allocatable gstore
real(rprec), dimension(:), allocatable grpmn_n_map_wrt
real(rprec), dimension(:), allocatable rsinuv
real(rprec), dimension(:,:), allocatable ga1
real(rprec), dimension(:,:,:), allocatable source
real(rprec), dimension(:), allocatable slp
real(rprec), dimension(:,:,:), allocatable bcos
real(rprec), dimension(:), allocatable rvb
real(rprec), dimension(:), allocatable sqrta
real(rprec), dimension(:), allocatable azm1u
real(rprec), dimension(:), allocatable dsave
real(rprec), dimension(:), allocatable snv
real(rprec), dimension(:), allocatable raxis_nestor
real(rprec), dimension(:), allocatable tlp2
real(rprec), dimension(:), allocatable rvv
real(rprec), dimension(:), allocatable guu_b
real(rprec), dimension(:,:,:,:), allocatable astemp
real(rprec), dimension(:,:), allocatable all_slm
real(rprec), parameter two
real(rprec), dimension(:), allocatable adp
real(rprec), dimension(:), allocatable tlm
real(rprec), dimension(:), allocatable bphiv
real(rprec), dimension(:), allocatable auv
real(rprec), dimension(:), allocatable avv
real(rprec), dimension(:,:), allocatable green
real(rprec), dimension(:), allocatable zaxis_nestor
real(rprec), dimension(:), allocatable gvv_b
real(rprec), dimension(:), allocatable delt1u
real(rprec), dimension(:), allocatable bexv
real(rprec), parameter p5
real(rprec), dimension(:), allocatable guv_b
real(rprec), dimension(:), allocatable bsubu
real(rprec), dimension(:), allocatable r0p
real(rprec), dimension(:), allocatable n_map_wrt
real(rprec), dimension(:,:,:), allocatable bsin
real(rprec), dimension(:), allocatable m_map_wrt
real(rprec), dimension(:), allocatable bz
real(rprec), dimension(:), allocatable zuv
real(rprec), dimension(:), allocatable tlpm
real(rprec), dimension(:), allocatable ra1p
subroutine free_mem_nestor
real(rprec), dimension(:), allocatable amatrix
real(rprec), dimension(:), allocatable slm
real(rprec), dimension(:), allocatable brad
real(rprec), dimension(:), allocatable potv
real(rprec), dimension(:), allocatable bexu
real(rprec), dimension(:), allocatable rcosuv
real(rprec), dimension(:), allocatable potu
real(rprec), dimension(:), allocatable bexn
real(rprec), dimension(:), allocatable drv
real(rprec), parameter cp5
real(rprec), parameter c2p0