Lines Matching refs:ds
455 PetscDS ds; in SetupPrimalProblem() local
462 PetscCall(DMGetDS(dm, &ds)); in SetupPrimalProblem()
463 PetscCall(PetscDSGetWeakForm(ds, &wf)); in SetupPrimalProblem()
464 PetscCall(PetscDSGetSpatialDimension(ds, &dim)); in SetupPrimalProblem()
468 PetscCall(PetscDSSetResidual(ds, 0, f0_mass_u, NULL)); in SetupPrimalProblem()
469 PetscCall(PetscDSSetJacobian(ds, 0, 0, g0_mass_uu, NULL, NULL, NULL)); in SetupPrimalProblem()
479 …SETERRQ(PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_WRONG, "Invalid dimension: %" PetscInt_FMT… in SetupPrimalProblem()
483 PetscCall(PetscDSSetResidual(ds, 0, f0_vlap_quadratic_u, f1_vlap_u)); in SetupPrimalProblem()
484 PetscCall(PetscDSSetJacobian(ds, 0, 0, NULL, NULL, NULL, g3_vlap_uu)); in SetupPrimalProblem()
493 …SETERRQ(PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_WRONG, "Invalid dimension: %" PetscInt_FMT… in SetupPrimalProblem()
497 PetscCall(PetscDSSetResidual(ds, 0, f0_elas_quadratic_u, f1_elas_u)); in SetupPrimalProblem()
498 PetscCall(PetscDSSetJacobian(ds, 0, 0, NULL, NULL, NULL, g3_elas_uu)); in SetupPrimalProblem()
507 …SETERRQ(PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_WRONG, "Invalid dimension: %" PetscInt_FMT… in SetupPrimalProblem()
511 PetscCall(PetscDSSetResidual(ds, 0, f0_vlap_trig_u, f1_vlap_u)); in SetupPrimalProblem()
512 PetscCall(PetscDSSetJacobian(ds, 0, 0, NULL, NULL, NULL, g3_vlap_uu)); in SetupPrimalProblem()
521 …SETERRQ(PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_WRONG, "Invalid dimension: %" PetscInt_FMT… in SetupPrimalProblem()
525 PetscCall(PetscDSSetResidual(ds, 0, f0_elas_trig_u, f1_elas_u)); in SetupPrimalProblem()
526 PetscCall(PetscDSSetJacobian(ds, 0, 0, NULL, NULL, NULL, g3_elas_uu)); in SetupPrimalProblem()
535 …SETERRQ(PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_WRONG, "Invalid dimension: %" PetscInt_FMT… in SetupPrimalProblem()
539 PetscCall(PetscDSSetResidual(ds, 0, NULL, f1_elas_u)); in SetupPrimalProblem()
540 PetscCall(PetscDSSetJacobian(ds, 0, 0, NULL, NULL, NULL, g3_elas_uu)); in SetupPrimalProblem()
544 …PetscCall(PetscDSGetBoundary(ds, bd, &wf, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NU… in SetupPrimalProblem()
549 PetscCall(PetscDSSetResidual(ds, 0, NULL, f1_elas_u)); in SetupPrimalProblem()
550 PetscCall(PetscDSSetJacobian(ds, 0, 0, NULL, NULL, NULL, g3_elas_uu)); in SetupPrimalProblem()
554 PetscCall(PetscDSSetResidual(ds, 0, NULL, f1_elas_u)); in SetupPrimalProblem()
555 PetscCall(PetscDSSetJacobian(ds, 0, 0, NULL, NULL, NULL, g3_elas_uu)); in SetupPrimalProblem()
559 …SETERRQ(PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_WRONG, "Invalid solution type: %s (%d)", s… in SetupPrimalProblem()
561 PetscCall(PetscDSSetExactSolution(ds, 0, exact, user)); in SetupPrimalProblem()
596 PetscCall(PetscDSSetConstants(ds, 3, constants)); in SetupPrimalProblem()