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