From: <an...@tn...> - 2003-12-03 05:01:34
|
John, thank you very much for your answer.=20 Martin L=FCthi writes: > > Which is the best practice to use nonlinear solvers (SNES from Pe= tsc) > > within libmesh? Is there some generic binding, as there is for th= e > > SLES solvers?=20 John Peterson writes: > At this time there is no nonlinear solver interface for petsc. Currently I am struggling with the definition of a C callable function to pass to the SNES solver (called FormFunction in the SNES examples). The main trouble is to pass the equation system into the FormFunction and call the linear solver from there. There seems to be a problem with the C/C++ parameter passing, but not being an expert it is hard to see what goes wrong. Any hints/starting points are greatly acknowledged. Best, Martin |