Searched refs:PETSC_MEX_ERROR (Results 1 – 5 of 5) sorted by relevance
11 #define PETSC_MEX_ERROR(a) \ macro23 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()
11 #define PETSC_MEX_ERROR(a) \ macro23 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()
42 #define PETSC_MEX_ERROR(a) \ macro60 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()
58 #define PETSC_MEX_ERROR(a) \ macro91 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()
63 #define PETSC_MEX_ERROR(a) \ macro163 if (nlhs != 1) PETSC_MEX_ERROR("Open requires one output argument.");175 if (t == -1) PETSC_MEX_ERROR("opening socket");