| /petsc/src/ts/tutorials/ |
| H A D | ex5.c | 62 PetscReal norm_2, norm_max; /* error norms */ member 102 appctx.norm_max = 0.0; in main() 214 …vg. error (max norm) = %g\n", (double)(appctx.norm_2 / steps), (double)(appctx.norm_max / steps))); in main() 346 PetscReal norm_2, norm_max; in Monitor() local 375 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor() 377 if (norm_max < 1e-14) norm_max = 0; in Monitor() 379 … 2-norm error = %g, max norm error = %g\n", step, (double)time, (double)norm_2, (double)norm_max)); in Monitor() 381 appctx->norm_max += norm_max; in Monitor()
|
| H A D | ex4.c | 70 PetscReal norm_2, norm_max; /* error norms */ member 111 appctx.norm_max = 0.0; in main() 252 …vg. error (max norm) = %g\n", (double)(appctx.norm_2 / steps), (double)(appctx.norm_max / steps))); in main() 398 PetscReal norm_2, norm_max; in Monitor() local 427 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor() 429 if (norm_max < 1e-14) norm_max = 0; in Monitor() 435 …g 2-norm error = %g max norm error = %g\n", step, (double)time, (double)norm_2, (double)norm_max)); in Monitor() 437 appctx->norm_max += norm_max; in Monitor()
|
| H A D | ex6.c | 63 PetscReal norm_2, norm_max; /* error norms */ member 105 appctx.norm_max = 0.0; in main() 217 …vg. error (max norm) = %g\n", (double)(appctx.norm_2 / steps), (double)(appctx.norm_max / steps))); in main() 348 PetscReal norm_2, norm_max, dt, dttol; in Monitor() local 378 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor() 381 …= %g, max norm error = %g\n", step, (double)dt, (double)crtime, (double)norm_2, (double)norm_max)); in Monitor() 383 appctx->norm_max += norm_max; in Monitor()
|
| H A D | ex3.c | 64 PetscReal norm_2, norm_max; /* error norms */ member 111 appctx.norm_max = 0.0; in main() 237 …vg. error (max norm) = %g\n", (double)(appctx.norm_2 / steps), (double)(appctx.norm_max / steps))); in main() 385 PetscReal norm_2, norm_max, dt, dttol; in Monitor() local 414 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor() 417 …r = %g, max norm error = %g\n", step, (double)dt, (double)time, (double)norm_2, (double)norm_max)); in Monitor() 420 appctx->norm_max += norm_max; in Monitor()
|
| /petsc/src/mat/tests/ |
| H A D | ex118.c | 129 PetscReal norm, norm_max; in CkEigenSolutions() local 164 norm_max = 0.0; in CkEigenSolutions() 172 if (norm > norm_max) norm_max = norm; in CkEigenSolutions() 177 …PetscCall(PetscPrintf(PETSC_COMM_SELF, " max_resi: %g\n", (double)norm_max)); in CkEigenSolutions()
|
| H A D | ex116.c | 200 PetscReal norm, tmp, dot, norm_max, dot_max; in CkEigenSolutions() local 232 norm_max = 0.0; in CkEigenSolutions() 240 if (norm > norm_max) norm_max = norm; in CkEigenSolutions() 244 …PetscCall(PetscPrintf(PETSC_COMM_SELF, " max_resi: %g\n", (double)norm_max)); in CkEigenSolutions()
|
| H A D | ex120.c | 250 PetscReal norm, tmp, norm_max, dot_max, rdot; in CkEigenSolutions() local 282 norm_max = 0.0; in CkEigenSolutions() 290 if (norm > norm_max) norm_max = norm; in CkEigenSolutions() 294 …PetscCall(PetscPrintf(PETSC_COMM_SELF, " max_resi: %g\n", (double)norm_max)); in CkEigenSolutions()
|
| /petsc/src/ts/tests/ |
| H A D | ex3.c | 229 PetscReal norm_2, norm_max, h = 1.0 / (m + 1); in Monitor() local 251 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor() 252 …m error = %6.4f, max norm error = %6.4f\n", step, (double)time, (double)norm_2, (double)norm_max)); in Monitor()
|