Lines Matching refs:localname

336 PetscErrorCode PetscFileRetrieve(MPI_Comm comm, const char url[], char localname[], size_t llen, Pe…  in PetscFileRetrieve()  argument
362 PetscCall(PetscStrncpy(localname, url, llen)); in PetscFileRetrieve()
374 PetscCall(PetscStrncpy(localname, url, llen)); in PetscFileRetrieve()
375 PetscCall(PetscStrstr(localname, ".gz", &par)); in PetscFileRetrieve()
377 PetscCall(PetscTestFile(localname, 'r', found)); in PetscFileRetrieve()
383 PetscCall(PetscStrncpy(localname, tlocalname, llen)); in PetscFileRetrieve()
385 PetscCall(PetscStrstr(localname, ".gz", &par)); in PetscFileRetrieve()
388 PetscCall(PetscTestFile(localname, 'r', found)); in PetscFileRetrieve()
393 PetscCall(PetscStrncpy(localname, tlocalname, llen)); in PetscFileRetrieve()
397 PetscCall(PetscStrlcat(buffer, localname, sizeof(buffer))); in PetscFileRetrieve()
404 PetscCall(PetscTestFile(localname, 'r', found)); in PetscFileRetrieve()
410 fd = fopen(localname, "r"); in PetscFileRetrieve()
411 …SELF, PETSC_ERR_PLIB, "PetscTestFile() indicates %s exists but fopen() cannot open it", localname); in PetscFileRetrieve()
425 PetscCall(PetscStrncpy(localname, url, llen)); in PetscFileRetrieve()
428 PetscCall(PetscStrrchr(localname, '/', &tlocalname)); in PetscFileRetrieve()
434 PetscCall(PetscStrlcat(buffer, localname, sizeof(buffer))); in PetscFileRetrieve()
443 PetscCall(PetscStrncpy(localname, name, llen)); in PetscFileRetrieve()
444 PetscCall(PetscTestFile(localname, 'r', found)); in PetscFileRetrieve()
449 PetscCallMPI(MPI_Bcast(localname, (PetscMPIInt)llen, MPI_CHAR, 0, comm)); in PetscFileRetrieve()