Home
last modified time | relevance | path

Searched refs:PETSC_MEX_ERROR (Results 1 – 5 of 5) sorted by relevance

/petsc/src/sys/classes/viewer/impls/socket/mex-scripts/
H A Dsread.c11 #define PETSC_MEX_ERROR(a) \ macro
23 if (nlhs != 1) PETSC_MEX_ERROR("Receive requires one output argument."); in mexFunction()
24 if (nrhs != 3) PETSC_MEX_ERROR("Receive requires three input arguments."); in mexFunction()
32 if (ierr) PETSC_MEX_ERROR("Unable to receive double items."); in mexFunction()
36 if (ierr) PETSC_MEX_ERROR("Unable to receive int items."); in mexFunction()
40 if (ierr) PETSC_MEX_ERROR("Unable to receive char items."); in mexFunction()
43 } else PETSC_MEX_ERROR("Unknown datatype."); in mexFunction()
H A Dswrite.c11 #define PETSC_MEX_ERROR(a) \ macro
23 if (nrhs != 3) PETSC_MEX_ERROR("Receive requires three input arguments."); in mexFunction()
30 if (ierr) PETSC_MEX_ERROR("Unable to send double items."); in mexFunction()
36 if (ierr) PETSC_MEX_ERROR("Unable to send int items."); in mexFunction()
42 if (ierr) PETSC_MEX_ERROR("Unable to send char items."); in mexFunction()
44 } else PETSC_MEX_ERROR("Unknown datatype."); in mexFunction()
H A Dsclose.c42 #define PETSC_MEX_ERROR(a) \ macro
60 if (!nrhs) PETSC_MEX_ERROR("Needs one argument, the port"); in mexFunction()
63 …if (setsockopt(t, SOL_SOCKET, SO_LINGER, (char *)&linger, sizeof(Linger))) PETSC_MEX_ERROR("Settin… in mexFunction()
64 if (close(t)) PETSC_MEX_ERROR("closing socket"); in mexFunction()
H A Dbread.c58 #define PETSC_MEX_ERROR(a) \ macro
91 else PETSC_MEX_ERROR("PetscBinaryRead: Unknown type"); in PetscBinaryRead()
98 if (err < 0) PETSC_MEX_ERROR("Error reading from socket\n"); in PetscBinaryRead()
136 else PETSC_MEX_ERROR("PetscBinaryRead: Unknown type"); in PetscBinaryWrite()
165 if (err < 0) PETSC_MEX_ERROR("Error writing to socket\n"); in PetscBinaryWrite()
H A Dsopen.c63 #define PETSC_MEX_ERROR(a) \ macro
163 if (nlhs != 1) PETSC_MEX_ERROR("Open requires one output argument.");
175 if (t == -1) PETSC_MEX_ERROR("opening socket");