Items with no label
3338 Discussions

I am using ivf2020. i have a type variable and assign it to another one. This code worked in ivf2019, but failed in ivf2020

鑫纪000
Beginner
364 Views

This is my code sample and I simplified it.

Module NumData

 

interface

subroutine Write_Model(ModelOut)

!DEC$ ATTRIBUTES DLLEXPORT,REFERENCE,STDCALL,DECORATE,ALIAS : 'Write_Model' ::

end subroutine

end interface

 

type NumInfo

integer(kind=4):: num

end type

 

type MyModel

type(Numinfo):: TotalNum

integer(kind=4),allocatable,dimension(:) :: Values

end type

 

type(MyModel),allocatable, target:: ModelIn

 

contains

 

subroutine Write_Model(ModelOut)

!DEC$ ATTRIBUTES DLLEXPORT,REFERENCE,STDCALL,DECORATE,ALIAS : 'Write_Model' :: Write_Model

type(MyModel), intent(in):: ModelOut

if(allocated(ModelIn)) deallocate(ModelIn)

allocate(ModelDIn)

ModelDIn=ModelDOut

end subroutine

 

end NumData

 

When I call Write_Model, ModelDIn assigned failed in ivf2020. Could someone tell me WHY ? Do I miss any configuration?

Regards.👷

 

configure

0 Kudos
0 Replies
Reply