V3FIT
Main Page
Related Pages
Modules
Modules List
Module Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions/Subroutines
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Data Types List
Data Types List
Data Types
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
Functions/Subroutines
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Files
File List
File Members
All
b
c
g
i
l
m
n
p
t
v
w
Functions/Subroutines
b
c
g
i
m
p
t
v
w
Variables
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Macros
Pages
LIBSTELL
Sources
Coils
load_bg_currents.f
1
SUBROUTINE
load_bg_currents (nvariables, xvariables)
2
!-----------------------------------------------
3
! M o d u l e s
4
!-----------------------------------------------
5
USE
bcoils_mod
6
IMPLICIT NONE
7
!-----------------------------------------------
8
! L o c a l V a r i a b l e s
9
!-----------------------------------------------
10
INTEGER
:: i, m
11
INTEGER
:: nvariables
12
REAL
(rprec) :: xvariables(*)
13
!-----------------------------------------------
14
15
! Load variable background currents cc_bg into bcoil_cur
16
! based on INDEX mc_bg
17
18
IF
(lbcoil_cur)
THEN
19
20
DO
m = 1, mc_max
21
cc_bg(m) = xvariables(m)
22
END DO
23
24
DO
i = 1, mbcoils
25
m = mc_bg(i)
26
IF
(m .gt. 0)
THEN
27
bcoil_cur(i) = cc_bg(m)
28
END IF
29
END DO
30
31
nvariables = mc_max
32
33
ELSE
34
35
nvariables = 0
36
37
END IF
38
39
END SUBROUTINE
load_bg_currents
Generated on Thu Mar 5 2020 15:49:23 for V3FIT by
1.8.17