Lines Matching refs:filename

94 …char        filename[PETSC_MAX_PATH_LEN + 1], options[512], proccall[PETSC_MAX_PATH_LEN + 512], sc…  in DMView_Network_Matplotlib()  local
113 PetscCall(PetscMemzero(filename, sizeof(filename))); in DMView_Network_Matplotlib()
147 …PetscCheck(tmpnam_s(filename, sizeof(filename)) == 0, comm, PETSC_ERR_SYS, "Could not acquire temp… in DMView_Network_Matplotlib()
154 …PetscCall(PetscOptionsGetString(NULL, NULL, "-dmnetwork_view_tmpdir", filename, sizeof(filename), … in DMView_Network_Matplotlib()
159 PetscCall(PetscGetTmp(PETSC_COMM_SELF, filename, sizeof(filename))); in DMView_Network_Matplotlib()
162 PetscCall(PetscStrlen(filename, &numChars)); in DMView_Network_Matplotlib()
163 if (filename[numChars - 1] != '/') { in DMView_Network_Matplotlib()
164 filename[numChars] = '/'; in DMView_Network_Matplotlib()
165 filename[numChars + 1] = 0; in DMView_Network_Matplotlib()
168 PetscCall(PetscStrlcat(filename, "XXXXXX", sizeof(filename))); in DMView_Network_Matplotlib()
169 PetscCheck(mkstemp(filename) != -1, comm, PETSC_ERR_SYS, "Could not acquire temporary file"); in DMView_Network_Matplotlib()
172 PetscCheck(tmpnam(filename) != NULL, comm, PETSC_ERR_SYS, "Could not acquire temporary file"); in DMView_Network_Matplotlib()
177 PetscCallMPI(MPI_Bcast(filename, PETSC_MAX_PATH_LEN, MPI_BYTE, 0, comm)); in DMView_Network_Matplotlib()
179 PetscCall(PetscViewerASCIIOpen(comm, filename, &csvViewer)); in DMView_Network_Matplotlib()
248 …rintf(proccall, sizeof(proccall), "%s %s %s %s", PETSC_PYTHON_EXE, scriptFile, options, filename)); in DMView_Network_Matplotlib()
264 …if (rank == 0) PetscCheck(remove(filename) == 0, PETSC_COMM_SELF, PETSC_ERR_SYS, "Failed to delete… in DMView_Network_Matplotlib()