Searched refs:f_local (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/tao/unconstrained/tutorials/ |
| H A D | rosenbrock4.h | 468 PetscReal f_local = 0.0; in FormObjective() local 480 PetscCall(RosenbrockObjective_Host(user->problem, x, o, &f_local)); in FormObjective() 481 PetscCallMPI(MPIU_Allreduce(&f_local, f, 1, MPI_DOUBLE, MPI_SUM, user->comm)); in FormObjective() 562 PetscReal f_local = 0.0; in FormObjectiveGradient() local 577 PetscCall(RosenbrockObjectiveGradient_Host(user->problem, x, o, &f_local, g)); in FormObjectiveGradient() 578 …PetscCallMPI(MPIU_Allreduce((void *)&f_local, (void *)f, 1, MPI_DOUBLE, MPI_SUM, PETSC_COMM_WORLD)… in FormObjectiveGradient()
|