Searched refs:Emax (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex3.c | 228 PetscReal Enorm = 0., lgEnorm, lgEmax, sum = 0., Emax = 0., chargesum = 0.; in MonitorEField() local 250 if (temp > Emax) Emax = temp; in MonitorEField() 257 PetscCallMPI(MPIU_Allreduce(MPI_IN_PLACE, &Emax, 1, MPIU_REAL, MPIU_MAX, comm)); in MonitorEField() 262 lgEmax = Emax != 0 ? PetscLog10Real(Emax) : user->drawlgEmin; in MonitorEField() 285 …MT ")\n", (double)t, (double)sum, (double)Enorm, (double)lgEnorm, (double)Emax, (double)lgEmax, (d… in MonitorEField()
|
| H A D | ex4.c | 146 const PetscReal *Emax; // Emax for each sample member 656 …for (PetscInt i = ctx->s; i < ctx->e; ++i) F[i - ctx->s] = PetscPowReal(10., ctx->Emax[i]) - C * P… in ComputeEmaxResidual() 711 …F[i - ctx->s] = ctx->Emax[i] - (PetscLog10Real(C) - gamma * ctx->t[i] * PetscLog10Real(PETSC_E) + … in ComputeLogEmaxResidual() 752 PetscReal Enorm = 0., lgEnorm, lgEmax, sum = 0., Emax = 0., chargesum = 0.; in MonitorEField() local 775 if (temp > Emax) Emax = temp; in MonitorEField() 781 PetscCallMPI(MPIU_Allreduce(MPI_IN_PLACE, &Emax, 1, MPIU_REAL, MPIU_MAX, comm)); in MonitorEField() 783 lgEmax = Emax != 0 ? PetscLog10Real(Emax) : ctx->drawlgEmin; in MonitorEField() 807 …MT ")\n", (double)t, (double)sum, (double)Enorm, (double)lgEnorm, (double)Emax, (double)lgEmax, (d… in MonitorEField() 812 …Call(PetscDrawLGGetData(ctx->drawlgE, NULL, &ctx->emaxCtx.e, &ctx->emaxCtx.t, &ctx->emaxCtx.Emax)); in MonitorEField() 850 PetscCall(PetscPrintf(PETSC_COMM_SELF, "%g", ctx->emaxCtx.Emax[i])); in MonitorEField()
|
| H A D | ex2.c | 518 PetscReal Enorm = 0., lgEnorm, lgEmax, sum = 0., Emax = 0., chargesum = 0.; in MonitorEField() local 539 if (temp > Emax) Emax = temp; in MonitorEField() 545 PetscCallMPI(MPIU_Allreduce(MPI_IN_PLACE, &Emax, 1, MPIU_REAL, MPIU_MAX, comm)); in MonitorEField() 547 lgEmax = Emax != 0 ? PetscLog10Real(Emax) : ctx->drawlgEmin; in MonitorEField() 569 …MT ")\n", (double)t, (double)sum, (double)Enorm, (double)lgEnorm, (double)Emax, (double)lgEmax, (d… in MonitorEField()
|