[petsc-users] Using SLEPC: Fortran call to NEPNLEIGSSetSingularitiesFunction (similar to SNESSetFunction?)
Samuel Lanthaler
s.lanthaler at gmail.com
Wed Jan 10 10:11:12 CST 2018
Hi there,
I'm stuck getting a call to the SLEPC routine
"NEPNLEIGSSetSingularitiesFunction" to work from within Fortran.
To be more precise: To get started with the solution of a non-linear
eigenvalue-problem, I am first trying to write a Fortran version of
slepc-3.8.1/.../nep/examples/tutorials/ex27.c, and then use it as a
template for my own code. But I haven't gotten far...
Let me attach the source of the current state of my attempt to translate
ex27.c to Fortran code. When trying to compile the attached source, my
compiler complains:
nleigs.o: In function `MAIN__':
nleigs.f90:(.text+0x213): undefined reference to
`nepnleigssetsingularitiesfunction_'
Does someone maybe see what I'm doing wrong? Do I maybe need to add a
USE statement in addition to
USE slepcsys
USE slepcnep
?
I'm quite confused about the C++ pointers and how to deal with them when
calling C++ functions from Fortran, so I don't really understand what's
going on here. I will greatly appreciate your help!
Thanks,
Samuel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nleigs.f90
Type: text/x-fortran
Size: 2913 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180110/59bca9b3/attachment-0001.bin>
More information about the petsc-users
mailing list