bichinhoverde <[email protected]> writes: > Hi. I have some questions. > > What is the difference between DMCreateGlobalVector and DMGetGlobalVector > (and the local counterparts)?
Create creates a vector that the caller owns. Get merely gets access to a vector from a managed pool (creating it if necessary), to be returned via DMRestoreGlobalVector(). > What happens when one calls SNESSolve with NULL for the solution vector, as > in src/snes/examples/tutorials/ex7.c:158? SNESSolve(snes,NULL,NULL); A vector is created automatically. You can get access to it with SNESGetSolution.
signature.asc
Description: PGP signature
