Searched refs:sol (Results 1 – 3 of 3) sorted by relevance
| /libCEED/examples/mfem/ |
| H A D | bp1.cpp | 130 mfem::GridFunction sol(fespace); in main() local 131 sol = 0.0; in main() 132 cg.Mult(b, sol); in main() 135 double err_l2 = sol.ComputeL2Error(sol_coeff); in main() 139 if (fabs(sol.ComputeL2Error(sol_coeff)) > 2e-4) { in main() 150 sol_sock << "solution\n" << *mesh << sol << std::flush; in main()
|
| H A D | bp3.cpp | 134 mfem::GridFunction sol(fespace); in main() local 139 sol.ProjectBdrCoefficient(sol_coeff, ess_bdr); in main() 153 diff.FormLinearSystem(ess_tdof_list, sol, b, D, X, B); in main() 169 double err_l2 = sol.ComputeL2Error(sol_coeff); in main() 173 if (fabs(sol.ComputeL2Error(sol_coeff)) > 2e-3) { in main() 184 sol_sock << "solution\n" << *mesh << sol << std::flush; in main()
|
| /libCEED/examples/fluids/problems/ |
| H A D | blasius.c | 78 Vec sol, res; in ComputeChebyshevCoefficients() local 91 PetscCall(VecCreate(PETSC_COMM_SELF, &sol)); in ComputeChebyshevCoefficients() 92 PetscCall(VecSetSizes(sol, PETSC_DECIDE, 2 * N - 1)); in ComputeChebyshevCoefficients() 93 PetscCall(VecSetFromOptions(sol)); in ComputeChebyshevCoefficients() 95 PetscCall(VecSetValue(sol, N, 1., INSERT_VALUES)); in ComputeChebyshevCoefficients() 96 PetscCall(VecDuplicate(sol, &res)); in ComputeChebyshevCoefficients() 100 PetscCall(SNESSolve(snes, NULL, sol)); in ComputeChebyshevCoefficients() 105 PetscCall(VecGetArrayRead(sol, &cheb_coefs)); in ComputeChebyshevCoefficients() 111 PetscCall(VecDestroy(&sol)); in ComputeChebyshevCoefficients()
|