#include "petsc.h" int PetscInitialize(int *argc,char ***args,char file[],const char help[])Collective on MPI_COMM_WORLD or PETSC_COMM_WORLD if it has been set
| argc | - count of number of command line arguments | |
| args | - the command line arguments | |
| file | - [optional] PETSc database file, defaults to ~username/.petscrc (use PETSC_NULL for default) | |
| help | - [optional] Help message to print, use PETSC_NULL for no message |
| -start_in_debugger [noxterm,dbx,xdb,gdb,...] | - Starts program in debugger | |
| -on_error_attach_debugger [noxterm,dbx,xdb,gdb,...] | - Starts debugger when error detected | |
| -on_error_emacs <machinename> causes emacsclient to jump to error file | - . -debugger_nodes [node1,node2,...] - Indicates nodes to start in debugger | |
| -debugger_pause [sleeptime] (in seconds) | - Pauses debugger | |
| -stop_for_debugger | - Print message on how to attach debugger manually to process and wait (-debugger_pause) seconds for attachment | |
| -trmalloc | - Indicates use of PETSc error-checking malloc | |
| -trmalloc_off | - Indicates not to use error-checking malloc | |
| -fp_trap | - Stops on floating point exceptions (Note that on the IBM RS6000 this slows code by at least a factor of 10.) | |
| -no_signal_handler | - Indicates not to trap error signals | |
| -shared_tmp | - indicates /tmp directory is shared by all processors | |
| -not_shared_tmp | - each processor has own /tmp | |
| -tmp | - alternative name of /tmp directory | |
| -get_total_flops | - returns total flops done by all processors | |
| -get_resident_set_size | - Print memory usage at end of run |
| -log_trace [filename] | - Print traces of all PETSc calls to the screen (useful to determine where a program hangs without running in the debugger). See PetscLogTraceBegin(). | |
| -log_info <optional filename> | - Prints verbose information to the screen | |
| -log_info_exclude <null,vec,mat,sles,snes,ts> | - Excludes some of the verbose messages |
| PETSC_TMP | - alternative tmp directory | |
| PETSC_SHARED_TMP | - tmp is shared by all processes | |
| PETSC_NOT_SHARED_TMP | - each process has its own private tmp | |
| PETSC_VIEWER_SOCKET_PORT | - socket number to use for socket viewer | |
| PETSC_VIEWER_SOCKET_MACHINE | - machine to use for socket viewer to connect to |
call PetscInitialize(file,ierr)
| ierr | - error return code | |
| file | - [optional] PETSc database file name, defaults to ~username/.petscrc (use PETSC_NULL_CHARACTER for default) |
Level:beginner
Location:src/sys/src/objects/pinit.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages