Home
last modified time | relevance | path

Searched refs:msnes (Results 1 – 2 of 2) sorted by relevance

/petsc/src/snes/tutorials/
H A Dex27.c652 SNES snes, msnes; /* nonlinear solvers */ in main() local
698 PetscCall(SNESCreate(PETSC_COMM_WORLD, &msnes)); in main()
699 PetscCall(SNESSetOptionsPrefix(msnes, "mixed_")); in main()
700 PetscCall(SNESSetDM(msnes, mdm)); in main()
707 PetscCall(SNESSetFromOptions(msnes)); in main()
709 PetscCall(DMSNESCheckFromOptions(msnes, mu)); in main()
710 PetscCall(SNESSolve(msnes, NULL, mu)); in main()
793 PetscCall(SNESDestroy(&msnes)); in main()
/petsc/src/snes/utils/dm/
H A Ddmadapt.c960 SNES msnes; in DMAdaptorComputeErrorIndicator_Flux() local
970 PetscCall(SNESCreate(PetscObjectComm((PetscObject)mdm), &msnes)); in DMAdaptorComputeErrorIndicator_Flux()
971 PetscCall(SNESSetDM(msnes, mdm)); in DMAdaptorComputeErrorIndicator_Flux()
973 PetscCall(SNESSetOptionsPrefix(msnes, prefix)); in DMAdaptorComputeErrorIndicator_Flux()
974 PetscCall(SNESAppendOptionsPrefix(msnes, "mixed_")); in DMAdaptorComputeErrorIndicator_Flux()
979 PetscCall(SNESSetFromOptions(msnes)); in DMAdaptorComputeErrorIndicator_Flux()
984 PetscCall(SNESSolve(msnes, NULL, mu)); in DMAdaptorComputeErrorIndicator_Flux()
993 PetscCall(SNESDestroy(&msnes)); in DMAdaptorComputeErrorIndicator_Flux()