Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

type variable + allocatable

$
0
0

Dear all,

I have a question. I have a type variable and I would like if it is possible to allocate it.

I mean, this is the variable:

type LPARTint
      integer                       :: value
      real,allocatable,dimension(:) :: QQ
      real,allocatable,dimension(:) :: RP
      type(LPARTint), pointer :: next => null()
      type(LPARTint), pointer :: prev => null()
end type LPARTint

I would like to know if this variable is correct.

The second things, How I can allocate QQ and RR?

I sort of allocate(LPARTint%QQ(nVar)), because nVar is constant in all the program.

Thanks again

Thanks  a lot


Viewing all articles
Browse latest Browse all 2746

Trending Articles



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