V3FIT
LIBSTELL
Sources
Coils
load_saddle_currents.f
1
SUBROUTINE
load_saddle_currents (nvariables, xvariables)
2
!-----------------------------------------------
3
! M o d u l e s
4
!-----------------------------------------------
5
USE
saddle_coils
6
IMPLICIT NONE
7
!-----------------------------------------------
8
! L o c a l V a r i a b l e s
9
!-----------------------------------------------
10
INTEGER
:: i, nsv
11
INTEGER
:: nvariables
12
REAL
(rprec) :: xvariables(*)
13
!-----------------------------------------------
14
15
! Load the coil currents with values from variables in
16
! optimization
17
18
nsv = 0
19
20
IF
(lsadcur)
THEN
21
! Vary saddle currents
22
DO
i = 1, num_cursad
23
IF
(ls_cur(i))
THEN
24
nsv = nsv + 1
25
cursad(i) = xvariables(nsv)
26
END IF
27
END DO
28
END IF
29
30
nvariables = nsv
31
32
END SUBROUTINE
load_saddle_currents
Generated on Thu Mar 5 2020 15:49:23 for V3FIT by
1.8.17