about the derived type variables

As far as I know, the good application model in the weather and climate always uses derived type variables, in order to adapt to different resolution data. But it seems that OpenACC don’t support derived type veriables,doesn’t it? Because members of the derived type variable have allocatable or pointer attribute.The data with these kinds of attribute could not transfer data.

How to deal with this kind of variables in OpenACC? Please kindly advise me

Hi Teslalady,

OpenACC can use derived types, provided that the type contains only fundamental data types. Derived types may not contain allocatable arrays or pointers since the derived type’s data is not contiguous in memory. In this case the user would need to copy the individual members of the derived type.

  • Mat