Home
last modified time | relevance | path

Searched refs:token (Results 1 – 2 of 2) sorted by relevance

/libCEED/examples/fluids/src/
H A Dmisc.c116 PetscInt32 token; in LoadFluidsBinaryVec() local
121 PetscCall(PetscViewerBinaryRead(viewer, &token, 1, NULL, PETSC_INT32)); in LoadFluidsBinaryVec()
122 if (token == FLUIDS_FILE_TOKEN_32 || token == FLUIDS_FILE_TOKEN_64 || in LoadFluidsBinaryVec()
123token == FLUIDS_FILE_TOKEN) { // New style format; we're reading a file with step number and time… in LoadFluidsBinaryVec()
124 if (token == FLUIDS_FILE_TOKEN_32) file_type = PETSC_INT32; in LoadFluidsBinaryVec()
125 else if (token == FLUIDS_FILE_TOKEN_64) file_type = PETSC_INT64; in LoadFluidsBinaryVec()
130 …} else if (token == VEC_FILE_CLASSID) { // Legacy format of just the vector, encoded as [VEC_FILE… in LoadFluidsBinaryVec()
H A Dsetupts.c230 PetscInt32 token = PetscDefined(USE_64BIT_INDICES) ? FLUIDS_FILE_TOKEN_64 : FLUIDS_FILE_TOKEN_32; in WriteOutput() local
231 PetscCall(PetscViewerBinaryWrite(viewer, &token, 1, PETSC_INT32)); in WriteOutput()