Home
last modified time | relevance | path

Searched full:snes (Results 1 – 11 of 11) sorted by relevance

/libCEED/examples/solids/include/
H A Dmatops.h19 PetscErrorCode FormResidual_Ceed(SNES snes, Vec X, Vec Y, void *ctx);
21 // This function uses libCEED to apply the Jacobian for assembly via a SNES
22 PetscErrorCode ApplyJacobianCoarse_Ceed(SNES snes, Vec X, Vec Y, void *ctx);
H A Dmisc.h29 PetscErrorCode FormJacobian(SNES snes, Vec U, Mat J, Mat J_pre, void *ctx);
/libCEED/examples/solids/
H A Delasticity.c57 SNES snes; in main() local
372 // Setup SNES in main()
375 PetscCall(PetscLogStageRegister("SNES Setup Stage", &stage_snes_setup)); in main()
378 // Create SNES in main()
379 PetscCall(SNESCreate(comm, &snes)); in main()
380 PetscCall(SNESSetDM(snes, level_dms[fine_level])); in main()
410 PetscCall(SNESSetFunction(snes, R, FormResidual_Ceed, res_ctx)); in main()
465 …PetscCall(SNESSetJacobian(snes, jacob_mat[fine_level], jacob_mat[fine_level], FormJacobian, form_j… in main()
467 …PetscCall(SNESSetJacobian(snes, jacob_mat[0], jacob_mat_coarse, SNESComputeJacobianDefaultColor, N… in main()
478 PetscCall(SNESGetKSP(snes, &ksp)); in main()
[all …]
H A DREADME.md139 - View PETSc `SNES` nonlinear solver configuration
/libCEED/examples/fluids/problems/
H A Dblasius.c20 PetscErrorCode CompressibleBlasiusResidual(SNES snes, Vec X, Vec R, void *ctx) { in CompressibleBlasiusResidual() argument
77 SNES snes; in ComputeChebyshevCoefficients() local
89 // Snes solve in ComputeChebyshevCoefficients()
90 PetscCall(SNESCreate(PETSC_COMM_SELF, &snes)); in ComputeChebyshevCoefficients()
97 PetscCall(SNESSetFunction(snes, res, CompressibleBlasiusResidual, blasius)); in ComputeChebyshevCoefficients()
98 PetscCall(SNESSetOptionsPrefix(snes, "chebyshev_")); in ComputeChebyshevCoefficients()
99 PetscCall(SNESSetFromOptions(snes)); in ComputeChebyshevCoefficients()
100 PetscCall(SNESSolve(snes, NULL, sol)); in ComputeChebyshevCoefficients()
101 PetscCall(SNESGetConvergedReason(snes, &reason)); in ComputeChebyshevCoefficients()
113 PetscCall(SNESDestroy(&snes)); in ComputeChebyshevCoefficients()
/libCEED/examples/fluids/src/
H A Dsetupts.c331 SNES snes; in TSSolve_NS() local
335 PetscCall(TSGetSNES(*ts, &snes)); in TSSolve_NS()
336 PetscCall(SNESGetKSP(snes, &ksp)); in TSSolve_NS()
385 SNES snes; in TSSolve_NS() local
390 PetscCall(TSGetSNES(*ts, &snes)); in TSSolve_NS()
391 PetscCall(SNESGetTolerances(snes, NULL, &rtol, NULL, NULL, NULL)); in TSSolve_NS()
392 …PetscCall(SNESSetTolerances(snes, PETSC_DEFAULT, .99, PETSC_DEFAULT, PETSC_DEFAULT, PETSC_DEFAULT)… in TSSolve_NS()
395 …PetscCall(SNESSetTolerances(snes, PETSC_DEFAULT, rtol, PETSC_DEFAULT, PETSC_DEFAULT, PETSC_DEFAULT… in TSSolve_NS()
/libCEED/examples/petsc/include/
H A Dmatops.h23 PetscErrorCode FormResidual_Ceed(SNES snes, Vec X, Vec Y, void *ctx);
/libCEED/examples/solids/src/
H A Dmatops.c56 PetscErrorCode FormResidual_Ceed(SNES snes, Vec X, Vec Y, void *ctx) { in FormResidual_Ceed() argument
76 // This function uses libCEED to apply the Jacobian for assembly via a SNES
77 PetscErrorCode ApplyJacobianCoarse_Ceed(SNES snes, Vec X, Vec Y, void *ctx) { in ApplyJacobianCoarse_Ceed() argument
H A Dmisc.c78 PetscErrorCode FormJacobian(SNES snes, Vec U, Mat J, Mat J_pre, void *ctx) { in FormJacobian() argument
/libCEED/examples/fluids/
H A Dadvection.yaml20 snes:
H A DREADME.md175 - View PETSc `SNES` nonlinear solver configuration
772 …n 6 build/fluids-navierstokes -options_file examples/fluids/vortexshedding.yaml -{ts,snes}_monitor_
962 - Prefix for Chebyshev snes solve