Hello,
I have the following problem regarding the usage of derived
data types. Assumed the following data types and variables are
defined:
TYPE derived_scalar
REAL :: a
...
END TYPE derived_scalar
TYPE derived_array
TYPE(derived_scalar), DIMENSION (10, 200, 2) :: big
...
END TYPE derived_array
TYPE(derived_array):: b, c
Do the following two Fortran lines mean the same ?
1: c%big(:,:,:)%a = b%big(:,:,:)%a
2: c%big%a = b%big%a
Or in other words, does the F90 standard provide an
automatic copy of all a-elements in b to c by using
the second line?
Regards,
Göran
|