Lines Matching refs:par2
54 char *buf, *par2, *gz = NULL, *so = NULL; in PetscDLLibraryRetrieve() local
65 par2 = buf; in PetscDLLibraryRetrieve()
66 PetscCall(PetscStrreplace(comm, libname, par2, blen)); in PetscDLLibraryRetrieve()
69 PetscCall(PetscStrrstr(par2, ".gz", &gz)); in PetscDLLibraryRetrieve()
76 PetscCall(PetscStrlen(par2, &len)); in PetscDLLibraryRetrieve()
77 if (par2[len - 1] == 'a' && par2[len - 2] == '.') par2[len - 2] = 0; in PetscDLLibraryRetrieve()
79 PetscCall(PetscFileRetrieve(comm, par2, lname, llen, found)); in PetscDLLibraryRetrieve()
84 PetscCall(PetscStrrstr(par2, suffix, &so)); in PetscDLLibraryRetrieve()
86 if (!so) PetscCall(PetscStrlcat(par2, suffix, blen)); in PetscDLLibraryRetrieve()
89 if (gz) PetscCall(PetscStrlcat(par2, ".gz", blen)); in PetscDLLibraryRetrieve()
92 PetscCall(PetscFileRetrieve(comm, par2, lname, llen, found)); in PetscDLLibraryRetrieve()
128 char libname[PETSC_MAX_PATH_LEN], par2[PETSC_MAX_PATH_LEN], *s; in PetscDLLibraryOpen() local
141 PetscCall(PetscDLLibraryRetrieve(comm, path, par2, PETSC_MAX_PATH_LEN, &foundlibrary)); in PetscDLLibraryOpen()
146 PetscCall(PetscTestFile(par2, 'x', &foundlibrary)); in PetscDLLibraryOpen()
147 …ary, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Dynamic library is not executable: %s %s", path, par2); in PetscDLLibraryOpen()
163 PetscCall(PetscDLOpen(par2, PETSC_DL_DECIDE, &handle)); in PetscDLLibraryOpen()