My mistake… I stupidly forgot giving the shape !
call c_f_pointer( this%x%cptr(), this%flatraces, [ns] )
is ok.
I would expect at least a compilation warning in such a case.
My mistake… I stupidly forgot giving the shape !
call c_f_pointer( this%x%cptr(), this%flatraces, [ns] )
is ok.
I would expect at least a compilation warning in such a case.