[petsc-users] Fortran application context, passing a module

Praveen C cpraveen at gmail.com
Fri Mar 17 00:02:23 CDT 2017


Dear all

I want to pass my own module as an application context in fortran. So I am
trying something like this

type(mgrid),target :: g
PetscFortranAddr :: ctx(6)
ctx(1) => g

But this gives an error

*Error:* Non-POINTER in pointer association context (pointer assignment) at
(1)
Could you tell me how I can make this work ?

Thanks
praveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170317/1d75978b/attachment.html>


More information about the petsc-users mailing list