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
Optimization
enorm.f
1
FUNCTION
enorm (n, x)
2
USE
stel_kinds
3
IMPLICIT NONE
4
!-----------------------------------------------
5
! D u m m y A r g u m e n t s
6
!-----------------------------------------------
7
INTEGER
n
8
REAL
(rprec),
DIMENSION(n)
:: x
9
REAL
(rprec) :: enorm
10
!-----------------------------------------------
11
!
12
! FUNCTION enorm
13
!
14
! given an n-vector x, this FUNCTION calculates the
15
! euclidean norm of x.
16
!
17
!
18
! the FUNCTION statement is
19
!
20
! FUNCTION enorm(n,x)
21
!
22
! WHERE
23
!
24
! n is a positive INTEGER input variable.
25
!
26
! x is an input array of length n.
27
!
28
enorm = sqrt(sum(x(:n)*x(:n)))
29
30
END FUNCTION
enorm
Generated on Thu Mar 5 2020 15:49:24 for V3FIT by
1.8.17