Home
last modified time | relevance | path

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

/petsc/src/vec/vec/utils/
H A Dcomb.c50 …PetscCall(PetscMalloc6(MAXOPS, &(*sr)->lvalues, MAXOPS, &(*sr)->gvalues, MAXOPS, &(*sr)->invecs, M… in PetscSplitReductionCreate()
124 PetscScalar *lvalues = sr->lvalues, *gvalues = sr->gvalues; in PetscCommSplitReductionBegin() local
132 PetscCall(PetscArraycpy(gvalues, lvalues, numops)); in PetscCommSplitReductionBegin()
150 …PetscCallMPI(MPIU_Iallreduce(lvalues, gvalues, cmul * numops, MPIU_REAL, MPIU_MAX, comm, &sr->requ… in PetscCommSplitReductionBegin()
152 …PetscCallMPI(MPIU_Iallreduce(lvalues, gvalues, cmul * numops, MPIU_REAL, MPIU_MIN, comm, &sr->requ… in PetscCommSplitReductionBegin()
154 …PetscCallMPI(MPIU_Iallreduce(lvalues, gvalues, numops, MPIU_SCALAR, MPIU_SUM, comm, &sr->request)); in PetscCommSplitReductionBegin()
179 for (PetscMPIInt i = 0; i < sr->numopsbegin; i++) sr->gvalues[i] = sr->gvalues_mix[i].v; in PetscSplitReductionEnd()
197 PetscScalar *lvalues = sr->lvalues, *gvalues = sr->gvalues; in PetscSplitReductionApply() local
207 PetscCall(PetscArraycpy(gvalues, lvalues, numops)); in PetscSplitReductionApply()
223 for (PetscMPIInt i = 0; i < numops; i++) sr->gvalues[i] = sr->gvalues_mix[i].v; in PetscSplitReductionApply()
[all …]
/petsc/src/tao/unconstrained/tutorials/
H A Drosenbrock4.h29 Vec gvalues; /* vector for writing gradient values of this mpi process */ member
128 PetscCall(VecDestroy(&user->gvalues)); in AppCtxDestroy()
298 PetscCall(VecCreate(user->comm, &user->gvalues)); in CreateVectors()
299 PetscCall(VecSetSizes(user->gvalues, n_coo, PETSC_DETERMINE)); in CreateVectors()
300 PetscCall(VecSetType(user->gvalues, vec_type)); in CreateVectors()
518 PetscCall(VecGetArrayWriteAndMemType(user->gvalues, &g, &memtype_g)); in FormGradient()
532 PetscCall(VecRestoreArrayWriteAndMemType(user->gvalues, &g)); in FormGradient()
536 PetscCall(VecScatterBegin(user->gscatter, user->gvalues, G, ADD_VALUES, SCATTER_REVERSE)); in FormGradient()
537 PetscCall(VecScatterEnd(user->gscatter, user->gvalues, G, ADD_VALUES, SCATTER_REVERSE)); in FormGradient()
574 PetscCall(VecGetArrayWriteAndMemType(user->gvalues, &g, &memtype_g)); in FormObjectiveGradient()
[all …]
/petsc/include/petsc/private/
H A Dpetscimpl.h1480 PetscScalar *gvalues; /* values after call to MPI_Allreduce() */ member