Hi,
i have a problem with a type parameters, that my module:
module toto
type to3
real, dimension(3) :: k
end type to3
type alfa
type(to3) :: tik
type(to3) :: tok
end type alfa
type agra
real :: r, g, u, z
type(alfa) ::sup
end type agra
TYPE(agra), parameter :: fat_GROS=agra(0.,0.,0.,0.,sup%tik%k(/0.,0.,0./))
! Unexpected Array reference at (1)k(/0.,0.,0./)
end module toto
I don't know what to change with sup%tik%k(/0.,0.,0./)...
At the end, i want to create a constant fat_GROS with all r, g, z, u, and k
Thank you for your help !
Vincent.
i have a problem with a type parameters, that my module:
module toto
type to3
real, dimension(3) :: k
end type to3
type alfa
type(to3) :: tik
type(to3) :: tok
end type alfa
type agra
real :: r, g, u, z
type(alfa) ::sup
end type agra
TYPE(agra), parameter :: fat_GROS=agra(0.,0.,0.,0.,sup%tik%k(/0.,0.,0./))
! Unexpected Array reference at (1)k(/0.,0.,0./)
end module toto
I don't know what to change with sup%tik%k(/0.,0.,0./)...
At the end, i want to create a constant fat_GROS with all r, g, z, u, and k
Thank you for your help !
Vincent.