Home
last modified time | relevance | path

Searched refs:dims (Results 1 – 4 of 4) sorted by relevance

/honee/src/
H A Dhonee-file.c222 …nst MPI_Comm comm, const char path[], const PetscInt char_array_len, PetscInt dims[2], FILE **fp) { in PhastaDatFileOpen()
233 for (PetscInt i = 0; i < ndims; i++) dims[i] = atoi(array[i]); in PhastaDatFileOpen()
249 PetscInt dims[2]; in PhastaDatFileGetNRows() local
253 PetscCall(PhastaDatFileOpen(comm, path, char_array_len, dims, &fp)); in PhastaDatFileGetNRows()
254 *nrows = dims[0]; in PhastaDatFileGetNRows()
267 PetscInt dims[2]; in PhastaDatFileReadToArrayReal() local
273 PetscCall(PhastaDatFileOpen(comm, path, char_array_len, dims, &fp)); in PhastaDatFileReadToArrayReal()
275 for (PetscInt i = 0; i < dims[0]; i++) { in PhastaDatFileReadToArrayReal()
281 PetscCheck(ndims == dims[1], comm, PETSC_ERR_FILE_UNEXPECTED, in PhastaDatFileReadToArrayReal()
282 …of %s does not contain enough columns (%d instead of %" PetscInt_FMT ")", i, path, ndims, dims[1]); in PhastaDatFileReadToArrayReal()
[all …]
H A Dhonee-meshtransform.c12 int ndims, dims[2] = {0.}; in GetYNodeLocs() local
25 for (PetscInt i = 0; i < ndims; i++) dims[i] = atoi(array[i]); in GetYNodeLocs()
28 if (ndims < 2) dims[1] = 1; // Assume 1 column of data is not otherwise specified in GetYNodeLocs()
29 *nynodes = dims[0]; in GetYNodeLocs()
32 for (PetscInt i = 0; i < dims[0]; i++) { in GetYNodeLocs()
37 PetscCheck(ndims == dims[1], comm, PETSC_ERR_FILE_UNEXPECTED, in GetYNodeLocs()
38 …T " of %s does not contain correct number of columns (%d instead of %d)", i, path, ndims, dims[1]); in GetYNodeLocs()
/honee/problems/
H A Dstg_shur14.c60 PetscInt dims[2]; in ReadStgInflow() local
68 PetscCall(PhastaDatFileOpen(comm, path, char_array_len, dims, &fp)); in ReadStgInflow()
79 PetscCheck(ndims == dims[1], comm, PETSC_ERR_FILE_UNEXPECTED, in ReadStgInflow()
80 …es not have correct number of columns (%d instead of %" PetscInt_FMT ")", i, path, ndims, dims[1]); in ReadStgInflow()
117 PetscInt dims[2]; in ReadStgRand() local
125 PetscCall(PhastaDatFileOpen(comm, path, char_array_len, dims, &fp)); in ReadStgRand()
134 PetscCheck(ndims == dims[1], comm, PETSC_ERR_FILE_UNEXPECTED, in ReadStgRand()
135 …es not have correct number of columns (%d instead of %" PetscInt_FMT ")", i, path, ndims, dims[1]); in ReadStgRand()
/honee/include/
H A Dhonee-file.h19 …onst MPI_Comm comm, const char path[], const PetscInt char_array_len, PetscInt dims[2], FILE **fp);