Home
last modified time | relevance | path

Searched refs:useFV (Results 1 – 3 of 3) sorted by relevance

/petsc/src/dm/impls/forest/tests/
H A Dex2.c146 PetscBool useFV = PETSC_FALSE; in main() local
159 …PetscCall(PetscOptionsBool("-use_fv", "Use a finite volume approximation", "ex2.c", useFV, &useFV,… in main()
189 if (useFV) { in main()
223 … "bc", label, 2 * dim, ids, 0, 0, NULL, useFV ? (PetscVoidFn *)bc_func_fv : (PetscVoidFn *)funcs[0… in main()
/petsc/src/snes/tests/
H A Dex2.c22 PetscBool useFV; // Use finite volume, instead of finite element member
52 options->useFV = PETSC_FALSE; in ProcessOptions()
61 …"Use finite volumes, instead of finite elements", "ex2.c", options->useFV, &options->useFV, NULL)); in ProcessOptions()
228 if (ctx->useFV) { in CreateDiscretization()
/petsc/src/ts/tutorials/
H A Dex18.c61 PetscBool useFV; /* Use a finite volume scheme for advection */ member
84 options->useFV = PETSC_FALSE; in ProcessOptions()
94 …", "Use the finite volume method for advection", "ex18.c", options->useFV, &options->useFV, NULL)); in ProcessOptions()
684 if (label && user->useFV) { in SetupBC()
774 if (user->useFV) PetscCall(DMSetField(dm, 1, NULL, (PetscObject)fv)); in SetupDiscretization()
799 if (user->useFV) { in CreateDM()
1038 if (user.useFV) { in main()
1053 if (user.useFV) PetscCall(TSMonitorSet(ts, MonitorFunctionals, &user, NULL)); in main()
1061 if (user.useFV) PetscCall(SetInitialConditionFVM(dm, u, 1, user.initialGuess[1], ctxs[1])); in main()