Searched refs:stepi (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/ts/utils/dmplexlandau/tutorials/ |
| H A D | ex2.c | 140 static PetscErrorCode testNone(TS ts, Vec X, PetscInt stepi, PetscReal time, PetscBool islast, Land… in testNone() argument 146 static PetscErrorCode testSpitzer(TS ts, Vec X, PetscInt stepi, PetscReal time, PetscBool islast, L… in testSpitzer() argument 225 if (stepi > 10 && !rectx->use_spitzer_eta && (old_ratio - ratio < 1.e-6)) { in testSpitzer() 231 if (rectx->plotting || stepi == 0 || reason || rectx->pulse_start == time + 0.98 * dt) { in testSpitzer() 232 …% Te_kev= %10.3e Z_eff=%g E/J to eta ratio= %g (diff=%g) %s %s spit_eta=%g\n", stepi, (double)time, in testSpitzer() 268 static PetscErrorCode testStable(TS ts, Vec X, PetscInt stepi, PetscReal time, PetscBool islast, La… in testStable() argument 303 … time=%10.3e n-%d norm electrons/max=%20.13e ions/max=%20.13e\n", "----", stepi, (double)time, (in… in testStable() 410 static PetscErrorCode Monitor(TS ts, PetscInt stepi, PetscReal time, Vec X, void *actx) in Monitor() argument 424 if (stepi > rectx->plotStep && rectx->plotting) { in Monitor() 430 if ((reason || stepi == 0 || rectx->plotIdx % rectx->print_period == 0) && ctx->verbose > 1) { in Monitor() [all …]
|
| H A D | ex1.c | 206 PetscErrorCode Monitor_nrl(TS ts, PetscInt stepi, PetscReal time, Vec X, void *actx) in Monitor_nrl() argument 212 if (stepi % 100 == 0) { in Monitor_nrl() 213 …PetscCall(PetscPrintf(PETSC_COMM_WORLD, "nrl-step %d time= %g ", (int)stepi, (double)(time / ctx->… in Monitor_nrl() 222 PetscErrorCode Monitor(TS ts, PetscInt stepi, PetscReal time, Vec X, void *actx) in Monitor() argument 240 if (stepi % ctx->verbose == 0 || reason || stepi == 1 || ctx->verbose < 0) { in Monitor() 289 …(PetscPrintf(PETSC_COMM_WORLD, "step %4d) time= %e temperature (eV): ", (int)stepi, (double)time)); in Monitor() 320 PetscCall(TSSetMaxSteps(ts_nrl, stepi + 1)); // next step in Monitor() 323 if (printing) PetscCall(DMPlexLandauPrintNorms(X, stepi /*id + 1*/)); in Monitor()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex48.c | 296 static PetscErrorCode Monitor(TS ts, PetscInt stepi, PetscReal time, Vec X, void *actx) in Monitor() argument 312 if (stepi > ctx->plotStep && ctx->plotting) { in Monitor() 330 ctx->plotStep = stepi; in Monitor()
|
| /petsc/src/ts/utils/dmplexlandau/ |
| H A D | plexland.c | 2392 PetscErrorCode DMPlexLandauPrintNorms(Vec X, PetscInt stepi) in DMPlexLandauPrintNorms() argument 2433 …cInt_FMT ": charge density= %20.13e z-momentum= %20.13e energy= %20.13e", stepi, ii, (double)Petsc… in DMPlexLandauPrintNorms() 2514 …omentum=%20.13e, y-momentum=%20.13e, z-momentum=%20.13e, energy=%21.13e", stepi, ii, (double)Petsc… in DMPlexLandauPrintNorms() 2530 …rgy=%21.13e (m_i[0]/m_e = %g, %" PetscInt_FMT " cells on electron grid)", stepi, (double)PetscReal… in DMPlexLandauPrintNorms() 2533 …ntum=%21.13e, energy=%21.13e (m_i[0]/m_e = %g, %" PetscInt_FMT " cells)", stepi, (double)PetscReal… in DMPlexLandauPrintNorms()
|