Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 68) sorted by relevance

123

/petsc/src/ksp/ksp/tutorials/
H A Dex35.cxx96 PetscReal bounds[6]; member
131 …PetscCall(DMMoabCreateBoxMesh(PETSC_COMM_WORLD, user.dim, user.usetri, user.bounds, user.n, 1, &dm… in main()
226 … > user->bounds[1] / 3.0) && (coords[0] < 2.0 * user->bounds[1] / 3.0) && (coords[1] > user->bound… in ComputeDiffusionCoefficient()
242 … return sin(PETSC_PI * coords[0] / user->bounds[1]) * sin(PETSC_PI * coords[1] / user->bounds[3]); in ExactSolution()
254 …eturn user->nu * sin(PETSC_PI * coords[0] / user->bounds[1]) * sin(PETSC_PI * coords[1] / user->bo… in ComputeForcingFunction()
259bounds[1] / user->bounds[1] + 1.0 / user->bounds[3] / user->bounds[3]) * sin(PETSC_PI * coords[0] … in ComputeForcingFunction()
270 …oords[0], user->bounds[0]) || BCHECK(coords[0], user->bounds[1]) || BCHECK(coords[1], user->bounds in EvaluateStrongDirichletCondition()
568 user->bounds[0] = user->bounds[2] = user->bounds[4] = 0.0; in InitializeOptions()
569 user->bounds[1] = user->bounds[3] = user->bounds[5] = 1.0; in InitializeOptions()
570 user->xref = user->bounds[1] / 2; in InitializeOptions()
[all …]
H A Dex36.cxx79 PetscReal bounds[6]; member
523 user->bounds[0] = user->bounds[2] = user->bounds[4] = 0.0; in InitializeOptions()
524 user->bounds[1] = user->bounds[3] = user->bounds[5] = 1.0; in InitializeOptions()
525 user->xyzref[0] = user->bounds[1] / 2; in InitializeOptions()
526 user->xyzref[1] = user->bounds[3] / 2; in InitializeOptions()
527 user->xyzref[2] = user->bounds[5] / 2; in InitializeOptions()
540 …sReal("-x", "The domain size in x-direction", "ex36.cxx", user->bounds[1], &user->bounds[1], NULL)… in InitializeOptions()
541 …sReal("-y", "The domain size in y-direction", "ex36.cxx", user->bounds[3], &user->bounds[3], NULL)… in InitializeOptions()
542 …sReal("-z", "The domain size in y-direction", "ex36.cxx", user->bounds[5], &user->bounds[5], NULL)… in InitializeOptions()
/petsc/src/sys/classes/viewer/impls/draw/
H A Ddrawv.c19 PetscCall(PetscFree(vdraw->bounds)); in PetscViewerDestroy_Draw()
304 PetscReal bounds[16]; in PetscViewerSetFromOptions_Draw() local
310 …-draw_bounds", "Bounds to put on plots axis", "PetscViewerDrawSetBounds", bounds, &nbounds, &flg)); in PetscViewerSetFromOptions_Draw()
311 if (flg) PetscCall(PetscViewerDrawSetBounds(v, nbounds / 2, bounds)); in PetscViewerSetFromOptions_Draw()
608 …scErrorCode PetscViewerDrawSetBounds(PetscViewer viewer, PetscInt nbounds, const PetscReal *bounds) in PetscViewerDrawSetBounds() argument
620 PetscCall(PetscFree(vdraw->bounds)); in PetscViewerDrawSetBounds()
621 PetscCall(PetscMalloc1(2 * nbounds, &vdraw->bounds)); in PetscViewerDrawSetBounds()
622 PetscCall(PetscArraycpy(vdraw->bounds, bounds, 2 * nbounds)); in PetscViewerDrawSetBounds()
642 …rrorCode PetscViewerDrawGetBounds(PetscViewer viewer, PetscInt *nbounds, const PetscReal *bounds[]) in PetscViewerDrawGetBounds() argument
652 if (bounds) *bounds = NULL; in PetscViewerDrawGetBounds()
[all …]
H A Dvdraw.h11 PetscReal *bounds; /* lower and upper bounds for each component to be used in plotting */ member
/petsc/src/dm/dt/tests/
H A Dex3.c113 …const PetscReal bounds[28] = {0.0, 1.0, 0.0, 1.0, 0.0, PETSC_PI / 2., 0.0, 1.0, 0.0, 1.0, 0.0, 1.0… in main() local
133 …PetscCall(PetscDTTanhSinhIntegrate(funcs[f], bounds[f * 2 + 0], bounds[f * 2 + 1], digits, NULL, &… in main()
142 …PetscCall(PetscDTTanhSinhIntegrateMPFR(funcs[f], bounds[f * 2 + 0], bounds[f * 2 + 1], digits, NUL… in main()
/petsc/src/vec/vec/utils/tagger/impls/
H A Dcdf.c158 PetscInt bounds[2][2]; in VecTaggerComputeBox_CDF_SortedArray_Iterative() local
172 bounds[0][0] = 0; in VecTaggerComputeBox_CDF_SortedArray_Iterative()
173 bounds[0][1] = m; in VecTaggerComputeBox_CDF_SortedArray_Iterative()
174 bounds[1][0] = 0; in VecTaggerComputeBox_CDF_SortedArray_Iterative()
175 bounds[1][1] = m; in VecTaggerComputeBox_CDF_SortedArray_Iterative()
218 newBounds[i][j][0] = PetscMax(bounds[i][0], bounds[i][1]); in VecTaggerComputeBox_CDF_SortedArray_Iterative()
219 newBounds[i][j][1] = PetscMin(bounds[i][0], bounds[i][1]); in VecTaggerComputeBox_CDF_SortedArray_Iterative()
223 for (j = 0; j < bounds[i][1] - bounds[i][0]; j++) { in VecTaggerComputeBox_CDF_SortedArray_Iterative()
224 PetscInt thisInd = bounds[i][0] + j; in VecTaggerComputeBox_CDF_SortedArray_Iterative()
250 bounds[i][0] = bounds[i][1] = 0; in VecTaggerComputeBox_CDF_SortedArray_Iterative()
[all …]
/petsc/src/tao/bound/tutorials/output/
H A Dplate2_7.out17 using variable bounds
26 using variable bounds
H A Dplate2_15.out51 using variable bounds
81 using variable bounds
H A Dplate2_14.out51 using variable bounds
81 using variable bounds
H A Dplate2_13.out61 using variable bounds
91 using variable bounds
H A Dplate2_5.out18 using variable bounds
H A Dplate2_2_alt.out55 using variable bounds
H A Dplate2_1.out18 using variable bounds
H A Dplate2_2.out54 using variable bounds
H A Dplate2_9.out58 using variable bounds
H A Dplate2_6_alt.out63 using variable bounds
H A Dplate2_6.out64 using variable bounds
/petsc/src/ts/tutorials/
H A Dmeth_ethanol.inp25 # the chemistry dictates reasonable bounds on the timestep
H A Dh2_10sp.inp34 # the chemistry dictates reasonable bounds on the timestep
H A Dgasoline.inp37 # the chemistry dictates reasonable bounds on the timestep
H A Dex11.c80 PetscReal bounds[2 * DIM]; member
496 if (x[0] < mod->bounds[0] * 0.5) { /* left of shock (1) */ in PhysicsSolution_Euler()
524 initLinearWave(uu, gamma, x, mod->bounds[1] - mod->bounds[0]); in PhysicsSolution_Euler()
1337 mod->bounds[2 * i] = 0.; in main()
1338 mod->bounds[2 * i + 1] = 1.; in main()
1346 …ds of the mesh in each direction (i.e., x_min,x_max,y_min,y_max", "", mod->bounds, &nret2, &flg2)); in main()
1367 … coord[j] = mod->bounds[2 * j] + coord[j] * (mod->bounds[2 * j + 1] - mod->bounds[2 * j]); in main()
1372 if (i == 2 || i == 10) coord[j] = mod->bounds[1] / 4.; in main()
1373 else if (i == 4) coord[j] = mod->bounds[1] / 2.; in main()
1374 else if (i == 12) coord[j] = 1.57735026918963 * mod->bounds[1] / 2.; in main()
/petsc/src/dm/impls/da/
H A Dgr1.c159 const PetscReal *bounds; in VecView_MPI_Draw_DA1d() local
170 PetscCall(PetscViewerDrawGetBounds(v, &nbounds, &bounds)); in VecView_MPI_Draw_DA1d()
221 min = PetscMin(min, bounds[2 * j]); in VecView_MPI_Draw_DA1d()
222 max = PetscMax(max, bounds[2 * j + 1]); in VecView_MPI_Draw_DA1d()
/petsc/src/tao/complementarity/tutorials/output/
H A Dminsurf1_2.out18 using variable bounds
H A Dminsurf1_2_alt.out17 using variable bounds
/petsc/src/tao/interface/ftn-custom/
H A Dztaosolverf.c56 PetscFortranCallbackId bounds; member
109 …PetscObjectUseFortranCallback(tao, _cb.bounds, (Tao *, Vec *, Vec *, void *, PetscErrorCode *), (&… in ourtaoboundsroutine()
232 …SetFortranCallback((PetscObject)*tao, PETSC_FORTRAN_CALLBACK_CLASS, &_cb.bounds, (PetscFortranCall… in taosetvariableboundsroutine_()

123