[MPI3 Fortran] Request for a straw vote.
Craig Rasmussen
crasmussen at newmexicoconsortium.org
Fri Jun 12 11:40:12 CDT 2009
On Jun 10, 2009, at 12:33 PM, Lionel, Steve wrote:
> Craig Rasmussen wrote:
>
>> In addition we can use C_F_POINTER to "cast" the
>> C_PTR back to a concrete Fortran type. I don't think we have a way
>> to
>> cast a type(*) to something concrete.
>
> Yes, we do - it is also C_F_POINTER. The proposal for TYPE(*)
> allows the appearance of a TYPE(*) dummy argument in C_LOC, so you
> can cast it to whatever you want.
>
But I still think C_PTR works better in this instance as it can point
to anything (scalar or array) whereas TYPE(*) leaves out the dimension
aspect.
-craig
>
> Steve Lionel
> Intel Developer Support
> Nashua, NH
>
> _______________________________________________
> mpi3-fortran mailing list
> mpi3-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-fortran
More information about the mpiwg-fortran
mailing list