Searched refs:global_l2 (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex36.cxx | 460 PetscReal l2err = 0.0, linferr = 0.0, global_l2, global_linf; in ComputeDiscreteL2Error() local 501 PetscCallMPI(MPIU_Allreduce(&l2err, &global_l2, 1, MPI_DOUBLE, MPI_SUM, PETSC_COMM_WORLD)); in ComputeDiscreteL2Error() 503 …PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Computed Errors: L_2 = %f, L_inf = %f\n", sqrt(global_l2 … in ComputeDiscreteL2Error()
|
| H A D | ex35.cxx | 500 PetscReal l2err = 0.0, linferr = 0.0, global_l2, global_linf; in ComputeDiscreteL2Error() local 546 PetscCallMPI(MPIU_Allreduce(&l2err, &global_l2, 1, MPI_DOUBLE, MPI_SUM, PETSC_COMM_WORLD)); in ComputeDiscreteL2Error() 548 …PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Computed Errors: L_2 = %f, L_inf = %f\n", sqrt(global_l2 … in ComputeDiscreteL2Error()
|