Hi,
I am still confused now I have added u to cell type. And when I allocate memory for that I get error that
forrtl: severe (174): SIGSEGV, segmentation fault occurred.
But If I do Allocate(basecell(0:1000)%cptr), there is no error and things work fine.
Thanks
Anil
Program TEST
IMPLICIT...
Hi xwb!!
I understand that I need it for anything that accesses %cptr%. But Then how come this thing still prints PRINT*,"basecell(0)%cptr%nbrcell(iside)%cptr%index(1),"iside=",iside
even if I don't allocate "ALLOCATE(basecell(i)%cptr)".
Thanks
Anil
Please have a look at piece of code below and try to answer the questions given in comments. Thanks.
Anil
Program TEST
IMPLICIT NONE
INTEGER :: nch, iside, i
! cell pointer type
TYPE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.