Searched refs:vmatlab (Results 1 – 2 of 2) sorted by relevance
60 PetscViewer_Socket *vmatlab = (PetscViewer_Socket *)viewer->data; in PetscViewerDestroy_Socket() local63 if (vmatlab->port) { in PetscViewerDestroy_Socket()67 ierr = closesocket(vmatlab->port); in PetscViewerDestroy_Socket()69 ierr = close(vmatlab->port); in PetscViewerDestroy_Socket()73 PetscCall(PetscFree(vmatlab)); in PetscViewerDestroy_Socket()379 PetscViewer_Socket *vmatlab; local382 PetscCall(PetscNew(&vmatlab));383 vmatlab->port = 0;384 vmatlab->flowcontrol = 256; /* same default as in PetscViewerCreate_Binary() */385 v->data = (void *)vmatlab;[all …]
100 PetscViewer_Matlab *vmatlab = (PetscViewer_Matlab *)viewer->data; in PetscViewerFileSetMode_Matlab() local103 vmatlab->btype = type; in PetscViewerFileSetMode_Matlab()112 PetscViewer_Matlab *vmatlab = (PetscViewer_Matlab *)viewer->data; in PetscViewerFileSetName_Matlab() local113 PetscFileMode type = vmatlab->btype; in PetscViewerFileSetName_Matlab()117 if (vmatlab->ep) matClose(vmatlab->ep); in PetscViewerFileSetName_Matlab()120 if (!vmatlab->rank) { in PetscViewerFileSetName_Matlab()121 if (type == FILE_MODE_READ) vmatlab->ep = matOpen(name, "r"); in PetscViewerFileSetName_Matlab()122 else if (type == FILE_MODE_WRITE) vmatlab->ep = matOpen(name, "w"); in PetscViewerFileSetName_Matlab()