Setting the first N
values of a real (kind=dp)
array A
to zero
Note
Maybe it can be replaced by calls susch as A(1:N)=0.0d0
S e t t i n g
t h e
f i r s t
N
v a l u e s
o f
a
` r e a l
( k i n d = d p ) `
a r r a y
A
t o
z e r o
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n |
Number of entries to set to zero |
||
real(kind=dp), | intent(inout), | dimension(*) | :: | a |
Array which entries will be set to zero |