From 01d0a822f1e34fb11a4304aece2f5c5c7cb301ca Mon Sep 17 00:00:00 2001 From: Patrick Sanan Date: Mon, 23 May 2016 11:32:36 +0200 Subject: [PATCH 2/2] dev manual: add some escaped underscores to be able to test compile with pdflatex --- src/docs/tex/manual/developers.tex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/docs/tex/manual/developers.tex b/src/docs/tex/manual/developers.tex index 0de792e..2c4560e 100644 --- a/src/docs/tex/manual/developers.tex +++ b/src/docs/tex/manual/developers.tex @@ -302,10 +302,10 @@ instead use {\em if (!rank)} or {\em if (!v)} or {\em if (flg)} or {\em if (!flg \item MPI routines and macros that are not part of the 1.0 or 1.1 standard should not be used in PETSc without appropriate ./configure checks and \#if defined() checks the code. Code should also be provided that works if the MPI feature is not available. For example, \begin{tabbing} \#if\= defined(PETSC\_HAVE\_MPI\_IN\_PLACE)\\ -\> ierr = MPI_Allgatherv(\=MPI\_IN\_PLACE,0,MPI\_DATATYPE\_NULL,lens,recvcounts,\\ +\> ierr = MPI\_Allgatherv(\=MPI\_IN\_PLACE,0,MPI\_DATATYPE\_NULL,lens,recvcounts,\\ \> \> displs,MPIU\_INT,comm);CHKERRQ(ierr);\\ \#else\\ -\> ierr = MPI_Allgatherv(lens,sendcount,MPIU\_INT,lens,recvcounts,\\ +\> ierr = MPI\_Allgatherv(lens,sendcount,MPIU\_INT,lens,recvcounts,\\ \> \> displs,MPIU\_INT,comm);CHKERRQ(ierr);\\ \#endif \end{tabbing} @@ -408,7 +408,7 @@ return PetscError(\=comm,\_\_LINE\_\_,\_\_FUNCT\_\_,\_\_FILE\_\_,error code,erro \> ''Error message''); \end{tabbing} It calls the error handler with the current function name and location: line number, -file and directory, plus an error code and an error message. Normally \trl{comm} is PETSC_COMM_SELF, it can only be another communicator if +file and directory, plus an error code and an error message. Normally \trl{comm} is PETSC\_COMM\_SELF, it can only be another communicator if one is absolutely sure the same error will be generated on all processes in the communicator. This is to prevent the same error message from being printed by many processes. The \trl{error type} is \trl{PETSC_ERROR_INITIAL} on detection of the initial error and \trl{PETSC_ERROR_REPEAT} for any additional calls. This is so that the detailed error information is only printed once instead of for all levels of returned errors. @@ -447,7 +447,7 @@ The variable \trl{eh} is the current error handler context and is defined in \begin{tabbing} ty\=pedef struct \_EH*\= EH;\\ struct \_EH \{\\ - \>PetscErrorCode \> handler(\=MPI_Comm,int,const char*,const char*,const char *,\\ + \>PetscErrorCode \> handler(\=MPI\_Comm,int,const char*,const char*,const char *,\\ \> \> \> PetscErrorCode,PetscErrorType,const char*,void *);\\ \>void \> *ctx;\\ \>EH \> previous;\\ -- 2.7.1