[petsc-users] PetscDSSetResidual/PetscDSSetJacobian in fortran

Nestor Cerpa ncerpagi at umn.edu
Sun May 22 02:08:42 CDT 2016


Hello, 


I am trying to use PetscDSSetResidual and PetscDSSetJacobian in a simple fortran code but they seem to be missing in the include files (petsc-master). I get this error message : 

Undefined symbols for architecture x86_64:
  "_petscdssetresidual_", referenced from:
      _MAIN__ in Poisson.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: [Poisson] Error 1 (ignored)
/bin/rm -f -f Poisson.o


I am also wondering if there are snes examples like ex12 or ex62 in fortran?


Thanks, 
Nestor

---------------------------------------------------
---------------------------------------------------

Nestor Cerpa Gilvonio
Postdoctoral research associate

Department of Earth Sciences
University of Minnesota
310 Pillsbury Drive SE
Minnepolis, MN 55455

E-mail : ncerpagi at umn.edu <mailto:cerpa003 at umn.edu>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160522/bf3cad3e/attachment.html>


More information about the petsc-users mailing list