Lines Matching full:if
10 @brief Check if a filename has a file extension
26 if (len < ext_len) *is_extension = PETSC_FALSE; in HoneeCheckFilenameExtension()
39 if (file_type == PETSC_INT32) { in BinaryReadIntoInt()
43 } else if (file_type == PETSC_INT64) { in BinaryReadIntoInt()
71 if (isBin) { in HoneeLoadInitialCondition()
75 } else if (isCGNS) { in HoneeLoadInitialCondition()
76 #if defined(PETSC_HAVE_CGNS) in HoneeLoadInitialCondition()
93 if (!set) PetscCall(PetscPrintf(comm, "WARNING: Couldn't find solution time in file\n")); in HoneeLoadInitialCondition()
95 if (!set) { // Based on assumption that solution name of has form "FlowSolutionXXX" in HoneeLoadInitialCondition()
120 If written by HONEE, will also load the solution time and timestep, otherwise not.
125 …@param[out] time Solution time the Vec was written at, or `NULL`. Set to 0 if legacy file f…
126 …@param[out] step_number Timestep number the Vec was written at, or `NULL`. Set to 0 if legacy file…
138 if (token == HONEE_FILE_TOKEN_32 || token == HONEE_FILE_TOKEN_64 || token == HONEE_FILE_TOKEN) { in HoneeLoadBinaryVec()
141 if (token == HONEE_FILE_TOKEN_32) file_type = PETSC_INT32; in HoneeLoadBinaryVec()
142 else if (token == HONEE_FILE_TOKEN_64) file_type = PETSC_INT64; in HoneeLoadBinaryVec()
151 if (token == VEC_FILE_CLASSID) { in HoneeLoadBinaryVec()
169 if (time) *time = file_time; in HoneeLoadBinaryVec()
170 if (step_number) *step_number = file_step_number; in HoneeLoadBinaryVec()