ユーザー定義型がありvector
ます。別のタイプでは、割り当て可能なベクトルの配列があります。この割り当て可能な配列から単一のベクトルへのポインターが必要です。だから私はこれをするだろうと思った:
type another_type
type(vector),allocatable,target::my_vectors(:)
end type
と
type(vector),pointer::pointed_vec
しかし、コンパイルすると、コンパイラは次のように不平を言います。
This attribute specification is not valid for a component definition statement.
割り付け可能な配列から 1 つの項目へのポインターを取得できますか? 出来ますか?