Examples
ex1.c: Demonstrates PETSc error handlers.
ex10.c: Tests PetscArraymove()/PetscMemmove()
ex11.c: Tests PetscSynchronizedPrintf() and PetscSynchronizedFPrintf().
ex12.c: Tests timing PetscSortInt().
ex13f.F90:
ex14.c: Tests PetscOptionsGetScalar(), PetscOptionsScalarArray() for complex numbers
ex15.c: Tests inclusion of petscsystypes.h.
ex16.c: Demonstrates PetscMatlabEngineXXX()
ex17.c: Demonstrates PetscFOpens() and PetscSynchronizedFGets().
ex17f.F90:
ex18.c: Tests PetscContainerCreate() and PetscContainerDestroy().
ex19.c: Tests string options with spaces";
ex1f.F90:
ex2.c: Tests the signal handler.
ex20.c: Tests PetscOptionsPrefix{Push,Pop}
ex21.c: Tests PetscTreeProcess()";
ex22.c: Tests the PetscByteSwap()
ex23.c: Tests string options with spaces";
ex24.c: Tests %d and %g formatting
ex25.c: Tests wrapping of math.h functions for real, complex, and scalar types
ex26.c: Tests repeated PetscInitialize/PetscFinalize calls.
ex27.c: Tests PetscMergeIntArray
ex28.c: Tests PetscAtan2Real
ex29.c: Tests PetscInt64Mult()
ex3.c: Tests catching of floating point exceptions.
ex30.c: Tests several PetscLogHandler implementations.
ex31.c: Tests PetscGetFullPath().
ex32.c: Tests deletion of mixed case options";
ex33.c: Tests PetscStack.
ex34.c: Tests IsInf/IsNan routines.
ex35.c: Tests PetscSortReal(), PetscSortRealWithArrayInt(), PetscFindReal
ex36f.F90:
ex37.c: Test PetscFormatConvertGetSize().
ex38f.F90:
ex39.c: Tests PetscIsCloseAtTol() routine.
ex4.c:
ex40.c: Test PETSc integer hash map.
ex41.c: Test PETSc integer hash set.
ex42.c: Test scalability of PetscHSetI hash set.
ex43.c: Test scalability of PetscHSetIJ hash set.
ex44.cxx: Demonstrates call PETSc and Chombo in the same program.
ex45.cxx: Demonstrates call PETSc first and then Trilinos in the same program.
ex46.cxx: Demonstrates calling Trilinos and then PETSc in the same program.
ex47.c: Example for PetscOptionsInsertFileYAML
ex47f.F90:
ex48f90.F90:
ex49.c: Demonstrates PetscDataTypeFromString().
ex49f.F90:
ex5.c: Tests retrieving unused PETSc options.
ex50.c: Tests using PetscViewerGetSubViewer() recursively
ex51.c: Demonstrates PetscFileRetrieve().
ex53.c: Test resource recycling and MPI_Comm and keyval creation in mpi or mpiuni, no PETSc
ex53f.F90:
ex54.c: Tests options file parsing.
ex56.c: Tests PetscHasExternalPackage().
ex56f.F90:
ex57.c: Tests PetscCommGetComm().
ex58.c: Tests PetscGlobalMinMax
ex59.c: Tests not trapping an underflow
ex5f.F90:
ex6.c: Tests options database";
ex60f90.F90:
ex61.c: Tests env: directive in test harness language.
ex62.c: Tests `PetscGarbageKeySortedIntersect()`
ex63.c: Tests `GarbageKeyAllReduceIntersect_Private()` in parallel
ex64.cxx: Tests UnorderedMap.
ex65.c: Test PetscFunctionList.
ex66.c: Tests error message when previous error was not fully handled
ex67.c: Test PetscAssertPointer type generics";
ex68.c: Test PetscLogEventsPause() and PetscLogEventsUnpause()";
ex69.c:
ex69f.F90:
ex6f.F90:
ex7.c: Tests PetscSortIntWithPermutation().
ex70.c: Error handling for destroying PETSC_VIEWER_STDOUT_SELF.
ex71.c: Test getting performance info when the default log handler is not running";
ex72.c: Test dropping PetscLogEventEnd()";
ex73.c: Test dropping PetscLogEventEnd()";
ex74.c: Check MPI error strings. Crashes with known error with MPICH.
ex75.c: Error handling for external library call in void function.
ex76.c: Tests MPIU_Allreduce() for large count.
ex77.c: Tests MPIU_Allreduce() for mis-use.
ex78.c: Tests MPIU_Allreduce() for overflow.
ex8.c: Demonstrates BuildTwoSided functions.
ex9.c: Tests PetscSequentialPhaseBegin() and PetscSequentialPhaseEnd()
Directories