| /petsc/src/sys/utils/ ! |
| H A D | mpits.c | 76 MPI_Aint lb, unitbytes; in PetscCommBuildTwoSided_Ibarrier() local 84 PetscCallMPI(MPI_Type_get_extent(dtype, &lb, &unitbytes)); in PetscCommBuildTwoSided_Ibarrier() 85 PetscCheck(lb == 0, comm, PETSC_ERR_SUP, "Datatype with nonzero lower bound %ld", (long)lb); in PetscCommBuildTwoSided_Ibarrier() 136 MPI_Aint lb, unitbytes; in PetscCommBuildTwoSided_Allreduce() local 158 PetscCallMPI(MPI_Type_get_extent(dtype, &lb, &unitbytes)); in PetscCommBuildTwoSided_Allreduce() 159 PetscCheck(lb == 0, comm, PETSC_ERR_SUP, "Datatype with nonzero lower bound %ld", (long)lb); in PetscCommBuildTwoSided_Allreduce() 182 MPI_Aint lb, unitbytes; in PetscCommBuildTwoSided_RedScatter() local 202 PetscCallMPI(MPI_Type_get_extent(dtype, &lb, &unitbytes)); in PetscCommBuildTwoSided_RedScatter() 203 PetscCheck(lb == 0, comm, PETSC_ERR_SUP, "Datatype with nonzero lower bound %ld", (long)lb); in PetscCommBuildTwoSided_RedScatter() 292 MPI_Aint lb, unitbytes; in PetscCommBuildTwoSidedFReq_Reference() local [all …]
|
| /petsc/src/tao/util/ ! |
| H A D | tao_util.c | 473 static inline PetscReal ST_InternalPN(PetscScalar in, PetscReal lb, PetscReal ub) in ST_InternalPN() argument 475 return PetscMax(0, PetscRealPart(in) - ub) - PetscMax(0, -PetscRealPart(in) - PetscAbsReal(lb)); in ST_InternalPN() 478 static inline PetscReal ST_InternalNN(PetscScalar in, PetscReal lb, PetscReal ub) in ST_InternalNN() argument 480 …cMax(0, PetscRealPart(in) + PetscAbsReal(ub)) - PetscMax(0, -PetscRealPart(in) - PetscAbsReal(lb)); in ST_InternalNN() 483 static inline PetscReal ST_InternalPP(PetscScalar in, PetscReal lb, PetscReal ub) in ST_InternalPP() argument 485 return PetscMax(0, PetscRealPart(in) - ub) + PetscMin(0, PetscRealPart(in) - lb); in ST_InternalPP() 513 PetscErrorCode TaoSoftThreshold(Vec in, PetscReal lb, PetscReal ub, Vec out) in TaoSoftThreshold() argument 524 if (lb == ub) { in TaoSoftThreshold() 528 …PetscCheck(lb < ub, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Lower bound needs to be lower than upp… in TaoSoftThreshold() 530 if (ub >= 0 && lb < 0) { in TaoSoftThreshold() [all …]
|
| /petsc/include/ ! |
| H A D | petscoptions.h | 583 …, currentvalue, value, set, lb) PetscOptionsInt_Private(PetscOptionsObject, opt, text, man, c… argument 633 … currentvalue, value, set, lb, ub) PetscOptionsInt_Private(PetscOptionsObject, opt, text, man, … argument 727 …, currentvalue, value, set, lb) PetscOptionsReal_Private(PetscOptionsObject, opt, text, man, c… argument 777 … currentvalue, value, set, lb, ub) PetscOptionsReal_Private(PetscOptionsObject, opt, text, man, … argument
|
| /petsc/src/tao/unconstrained/tutorials/ ! |
| H A D | eptorsion3.c | 83 Vec ub, lb; in main() local 111 PetscCall(VecDuplicate(user.y, &lb)); in main() 115 PetscCall(VecSet(lb, -0.1)); in main() 117 PetscCall(VecSetValue(lb, i, 0., INSERT_VALUES)); in main() 119 PetscCall(VecAssemblyBegin(lb)); in main() 121 PetscCall(VecAssemblyEnd(lb)); in main() 130 PetscCall(TaoSetVariableBounds(tao, lb, ub)); in main() 185 PetscCall(VecDestroy(&lb)); in main()
|
| /petsc/src/sys/objects/ ! |
| H A D | aoptions.c | 688 …const char man[], PetscInt currentvalue, PetscInt *value, PetscBool *set, PetscInt lb, PetscInt ub) in PetscOptionsInt_Private() argument 698 …alue >= lb, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Current value %" PetscInt_FMT " less than … in PetscOptionsInt_Private() 711 …*value >= lb, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Newly set value %" PetscInt_FMT " less t… in PetscOptionsInt_Private() 720 …an[], PetscMPIInt currentvalue, PetscMPIInt *value, PetscBool *set, PetscMPIInt lb, PetscMPIInt ub) in PetscOptionsMPIInt_Private() argument 730 …heck(currentvalue >= lb, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Current value %d less than al… in PetscOptionsMPIInt_Private() 743 …k(!wasset || *value >= lb, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Newly set value %d less tha… in PetscOptionsMPIInt_Private() 772 …t char man[], PetscReal currentvalue, PetscReal *value, PetscBool *set, PetscReal lb, PetscReal ub) in PetscOptionsReal_Private() argument 782 …rentvalue >= lb, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Current value %g less than allowed bo… in PetscOptionsReal_Private() 795 …t || *value >= lb, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Newly set value %g less than allowe… in PetscOptionsReal_Private()
|
| /petsc/src/tao/tutorials/ ! |
| H A D | ex3.c | 333 Vec u, lb, ub; in main() local 343 PetscCall(VecDuplicate(u, &lb)); in main() 345 PetscCall(VecSet(lb, 0.0)); /* satisfied at the minimum anyway */ in main() 351 PetscCall(TaoSetVariableBounds(tao, lb, ub)); in main() 368 PetscCall(VecDestroy(&lb)); in main()
|
| /petsc/src/snes/utils/ ! |
| H A D | dmplexsnes.c | 1062 Vec lb, ub; in DMPlexSetSNESVariableBounds() local 1081 PetscCall(DMCreateGlobalVector(dm, &lb)); in DMPlexSetSNESVariableBounds() 1083 PetscCall(PetscObjectSetName((PetscObject)lb, "Lower Bound")); in DMPlexSetSNESVariableBounds() 1085 PetscCall(VecSet(lb, PETSC_NINFINITY)); in DMPlexSetSNESVariableBounds() 1087 if (hasLower) PetscCall(DMProjectFunction(dm, 0., lfuncs, lctxs, INSERT_VALUES, lb)); in DMPlexSetSNESVariableBounds() 1089 PetscCall(DMPlexInsertBounds(dm, PETSC_TRUE, 0., lb)); in DMPlexSetSNESVariableBounds() 1091 PetscCall(VecViewFromOptions(lb, NULL, "-dm_plex_snes_lb_view")); in DMPlexSetSNESVariableBounds() 1093 PetscCall(SNESVISetVariableBounds(snes, lb, ub)); in DMPlexSetSNESVariableBounds() 1094 PetscCall(VecDestroy(&lb)); in DMPlexSetSNESVariableBounds()
|
| /petsc/include/petsc/mpiuni/ ! |
| H A D | mpi.h | 478 …#define MPI_Type_lb(datatype, lb) (MPIUNI_ARG(datatype), *(lb) = 0, MPI_SUCCE… argument 481 …#define MPI_Type_get_extent(datatype, lb, extent) (*(lb) = 0, *(extent) = MPI_sizeof(datatype… argument 482 …#define MPI_Type_get_true_extent(datatype, lb, extent) (*(lb) = 0, *(extent) = MPI_sizeof(datatype… argument 607 …#define MPI_Type_create_resized(oldtype, lb, extent, newtype) (MPIUNI_ARG(oldtype), MPIUNI_ARG(lb)… argument
|
| /petsc/src/sys/tests/ ! |
| H A D | ex8.c | 35 MPI_Aint lb, extent; in MakeDatatype() local 36 PetscCallMPI(MPI_Type_get_extent(*dtype, &lb, &extent)); in MakeDatatype()
|
| /petsc/src/snes/tutorials/ ! |
| H A D | ex58.c | 43 PetscScalar lb, ub; member 126 PetscCall(VecSet(xl, ctx->lb)); in FormBounds() 478 ctx->lb = .05; in FormBoundaryConditions() 483 PetscCall(PetscOptionsGetScalar(NULL, NULL, "-lb", &ctx->lb, 0)); in FormBoundaryConditions()
|
| /petsc/src/ts/tutorials/advection-diffusion-reaction/ ! |
| H A D | shashi.F90 | 934 Vec x, r, lb, ub 982 PetscCallA(VecDuplicate(x, lb, ierr)) 984 PetscCallA(VecSet(lb, zero, ierr)) 1009 PetscCallA(VecDestroy(lb, ierr))
|
| /petsc/src/tao/complementarity/tutorials/ ! |
| H A D | minsurf1.c | 45 PetscScalar lb = PETSC_NINFINITY; /* lower bound constant */ in main() local 94 PetscCall(VecSet(xl, lb)); in main()
|
| /petsc/src/vec/is/sf/impls/basic/cupm/ ! |
| H A D | sfcupm_impl.hpp | 743 MPI_Aint lb, nbyte; in LinkSetUp() local 745 PetscCallMPI(MPI_Type_get_extent(unit, &lb, &nbyte)); in LinkSetUp() 746 …PetscCheck(lb == 0, PETSC_COMM_SELF, PETSC_ERR_SUP, "Datatype with nonzero lower bound %ld", (long… in LinkSetUp()
|
| /petsc/src/tao/bound/tutorials/ ! |
| H A D | plate2f.F90 | 671 PetscReal lb, ub 675 lb = PETSC_NINFINITY 685 PetscCall(VecSet(xl, lb, ierr))
|
| H A D | plate2.c | 729 PetscReal *xl, lb = PETSC_NINFINITY, ub = PETSC_INFINITY; in MSA_Plate() local 742 PetscCall(VecSet(XL, lb)); in MSA_Plate()
|
| /petsc/src/dm/dt/interface/ ! |
| H A D | dtds.c | 2421 PetscErrorCode PetscDSGetLowerBound(PetscDS ds, PetscInt f, PetscPointBoundFn **lb, void **ctx) in PetscDSGetLowerBound() argument 2426 if (lb) { in PetscDSGetLowerBound() 2427 PetscAssertPointer(lb, 3); in PetscDSGetLowerBound() 2428 *lb = ds->lowerBound[f]; in PetscDSGetLowerBound() 2452 PetscErrorCode PetscDSSetLowerBound(PetscDS ds, PetscInt f, PetscPointBoundFn *lb, PetscCtx ctx) in PetscDSSetLowerBound() argument 2458 if (lb) { in PetscDSSetLowerBound() 2459 PetscValidFunction(lb, 3); in PetscDSSetLowerBound() 2460 ds->lowerBound[f] = lb; in PetscDSSetLowerBound()
|
| /petsc/src/vec/is/sf/impls/basic/ ! |
| H A D | sfpack.c | 650 MPI_Aint lb, nbyte; in PetscSFLinkSetUp_Host() local 652 PetscCallMPI(MPI_Type_get_extent(unit, &lb, &nbyte)); in PetscSFLinkSetUp_Host() 653 …PetscCheck(lb == 0, PETSC_COMM_SELF, PETSC_ERR_SUP, "Datatype with nonzero lower bound %ld", (long… in PetscSFLinkSetUp_Host()
|
| /petsc/src/sys/classes/viewer/impls/binary/ ! |
| H A D | binv.c | 1002 PETSC_UNUSED MPI_Aint lb; in PetscViewerBinaryWriteReadAll() local 1014 PetscCallMPI(MPI_Type_get_extent(mdtype, &lb, &dsize)); in PetscViewerBinaryWriteReadAll()
|
| /petsc/src/vec/is/sf/interface/ ! |
| H A D | sf.c | 2717 MPI_Aint lb, lb_true, bytes, bytes_true; in PetscSFGetDatatypeSize_Internal() local 2720 PetscCallMPI(MPI_Type_get_extent(unit, &lb, &bytes)); in PetscSFGetDatatypeSize_Internal() 2722 …PetscCheck(lb == 0 && lb_true == 0, comm, PETSC_ERR_SUP, "No support for unit type with nonzero lo… in PetscSFGetDatatypeSize_Internal()
|
| /petsc/share/petsc/datafiles/meshes/ ! |
| H A D | testcase3D.cas | 2651 (dpm/parallel/lb-method 1) 2662 (dpm/parallel/lb-chunk-size 0) 7393 (lb/collide-coeffs/cw 0.5) 7394 (lb/collide-coeffs/cs 0.1) 7395 (lb/collide-coeffs/sq 1.92) 7396 (lb/collide-coeffs/s16 1.92) 7397 (lb/collide-coeffs/s2 1.14) 7398 (lb/collide-coeffs/s1 1.63) 7399 (lb/wall/maxyplus 5000.) 7400 (lb/wall/alternate-wf 4) [all …]
|
| /petsc/src/mat/impls/is/ ! |
| H A D | matis.c | 1935 PetscBool lb[4], bb[4]; in MatConvert_IS_XAIJ() local 1937 lb[0] = isseqdense; in MatConvert_IS_XAIJ() 1938 lb[1] = isseqaij; in MatConvert_IS_XAIJ() 1939 lb[2] = isseqbaij; in MatConvert_IS_XAIJ() 1940 lb[3] = isseqsbaij; in MatConvert_IS_XAIJ() 1941 … PetscCallMPI(MPIU_Allreduce(lb, bb, 4, MPI_C_BOOL, MPI_LAND, PetscObjectComm((PetscObject)mat))); in MatConvert_IS_XAIJ()
|
| /petsc/src/mat/impls/aij/mpi/mumps/ ! |
| H A D | mumps.c | 96 …tscMUMPSInt currentvalue, PetscMUMPSInt *value, PetscBool *set, PetscMUMPSInt lb, PetscMUMPSInt ub) in PetscOptionsMUMPSInt_Private() argument 103 …nsInt_Private(PetscOptionsObject, opt, text, man, (PetscInt)currentvalue, &myval, &myset, lb, ub)); in PetscOptionsMUMPSInt_Private()
|