Software Archive
Read-only legacy content
17061 Discussions

sharing data between COM methods

rahzan
New Contributor I
308 Views
Noramlly you do this using the elements of ObjectData, but as I;ve found out it does not allow allocatable arrays.
I tried to use a common block to share data between different COM methods but the compiler says that there are conflicting attribs... Perhaps it is the fact that the shared data is an assumed size array like:

method1(Objdata,x)
real(4),intent(inout):: x(1:)
common /dataarray/ x
end method1
...
method2
(what if any declaration goes here for x?)
common /dataarray/ x
...

Any way to do this?
Thanks, TSH
0 Kudos
0 Replies
Reply