Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Array of structure of arrays in fortran

$
0
0

I have something like this - 

type output
real(kind=8) :: array1(10,20,30)
real(kind=8) :: array2(10,20,4)
end type output

type (output),save, dimension(54) :: array_o

Also, I have something like this - 

type output_pointer
real(kind=8),pointer :: array1(:,:,:)
real(kind=8),pointer :: array2(:,:,:)
end type output_pointer

type (output),save, dimension(54) :: array_pointer

Are these permissible in fortran? I am getting no build error but I am getting runtime error.


Viewing all articles
Browse latest Browse all 3270


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>