| /honee/tests/junit-xml/junit_xml/ |
| H A D | __init__.py | 60 If not already unicode, decode it. 62 if IS_PY2: 63 if isinstance(var, unicode): # noqa: F821 66 if encoding: 80 Can handle unicode strings or binary strings if their encoding is provided. 99 if not test_cases: 127 if any(c.assertions for c in self.test_cases): 128 …e_attributes["assertions"] = str(sum([int(c.assertions) for c in self.test_cases if c.assertions])) 129 … test_suite_attributes["disabled"] = str(len([c for c in self.test_cases if not c.is_enabled])) 130 test_suite_attributes["errors"] = str(len([c for c in self.test_cases if c.is_error()])) [all …]
|
| /honee/src/ |
| H A D | petsc_ops.c | 17 if (local_size) PetscCall(VecGetLocalSize(V_loc, local_size)); in DMGetLocalVectorInfo() 18 if (global_size) PetscCall(VecGetSize(V_loc, global_size)); in DMGetLocalVectorInfo() 19 if (vec_type) PetscCall(VecGetType(V_loc, vec_type)); in DMGetLocalVectorInfo() 30 if (local_size) PetscCall(VecGetLocalSize(V, local_size)); in DMGetGlobalVectorInfo() 31 if (global_size) PetscCall(VecGetSize(V, global_size)); in DMGetGlobalVectorInfo() 32 if (vec_type) PetscCall(VecGetType(V, vec_type)); in DMGetGlobalVectorInfo() 40 …* All passed in objects are reference copied and may be destroyed if desired (with the exception o… 47 …eedVector` for operator active input. May be `CEED_VECTOR_NONE` or `NULL`. If `NULL`, `CeedVector`… 49 …edVector` for operator active output. May be `CEED_VECTOR_NONE` or `NULL`. If `NULL`, `CeedVector`… 51 …aram[in] X_loc Local `Vec` for operator active input. If `NULL`, vector will be obtained if ne… [all …]
|
| H A D | setupts.c | 17 // @brief Insert Boundary values if it's a new time 20 if (honee->time_bc_set != t) { in UpdateBoundaryValues() 40 if (honee->phys->solution_time_label) in RHS_NS() 43 if (honee->phys->timestep_size_label) in RHS_NS() 48 …if (honee->app_ctx->divFdiffproj_method != DIV_DIFF_FLUX_PROJ_NONE) PetscCall(DivDiffFluxProjectio… in RHS_NS() 54 // Run PCApply manually if using ksp_type preonly -pc_type jacobi in RHS_NS() 62 if (ispreonly && isjacobi) PetscCall(PCApply(pc, R, G)); in RHS_NS() 88 if (!wall_is) continue; // No wall points on this process, skip in Surface_Forces_NS() 129 …if (honee->phys->solution_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(honee->op_i… in IFunction_NS() 131 …if (honee->phys->timestep_size_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(honee->op_i… in IFunction_NS() [all …]
|
| H A D | mat-ceed.c | 19 #if PETSC_VERSION_LT(3, 24, 0) 41 if (registered) PetscFunctionReturn(PETSC_SUCCESS); in MatCeedRegisterLogEvents() 78 // Check if COO pattern set in MatCeedAssemblePointBlockDiagonalCOO() 83 if (ctx->mats_assembled_pbd[i] == mat_coo) index = i; in MatCeedAssemblePointBlockDiagonalCOO() 85 if (index == -1) { in MatCeedAssemblePointBlockDiagonalCOO() 91 // -- Assemble sparsity pattern if mat hasn't been assembled before in MatCeedAssemblePointBlockDiagonalCOO() 93 if (stage_amg_setup == -1) { in MatCeedAssemblePointBlockDiagonalCOO() 106 …if (!ctx->coo_values_pbd) PetscCallCeed(ctx->ceed, CeedVectorCreate(ctx->ceed, num_entries, &ctx->… in MatCeedAssemblePointBlockDiagonalCOO() 131 if (is_spd_known) PetscCall(MatSetOption(mat_coo, MAT_SPD, is_spd)); in MatCeedAssemblePointBlockDiagonalCOO() 155 if (use_ceed_pbd) { in MatCeedAssembleInnerBlockDiagonalMat() [all …]
|
| H A D | bc_definition.c | 22 if (registered) PetscFunctionReturn(PETSC_SUCCESS); in BCDefinitionInitalize() 63 if (!bc_def_) PetscFunctionReturn(PETSC_SUCCESS); in BCDefinitionDestroy() 65 if (bc_def_->name) PetscCall(PetscFree(bc_def_->name)); in BCDefinitionDestroy() 66 if (bc_def_->label_values) PetscCall(PetscFree(bc_def_->label_values)); in BCDefinitionDestroy() 67 if (bc_def_->essential_comps) PetscCall(PetscFree(bc_def_->essential_comps)); in BCDefinitionDestroy() 68 if (bc_def_->dm) PetscCall(DMDestroy(&bc_def_->dm)); in BCDefinitionDestroy() 69 if (bc_def_->DestroyCtx) PetscCall((*bc_def_->DestroyCtx)(&bc_def_->ctx)); in BCDefinitionDestroy() 93 if (!viewer) PetscCall(PetscViewerASCIIGetStdout(PetscObjectComm((PetscObject)bc_def), &viewer)); in BCDefinitionView() 97 if (size == 1 && format == PETSC_VIEWER_LOAD_BALANCE) PetscFunctionReturn(PETSC_SUCCESS); in BCDefinitionView() 106 if (is_detailed) PetscCall(DMView(bc_def->dm, viewer)); in BCDefinitionView() [all …]
|
| H A D | dm-utils.c | 34 if (dm_field == fields[i]) { in DMFieldToDSField() 66 if the routine is called again with the same arguments, the same `CeedElemRestriction` is returned. 89 if (domain_label) PetscCall(PetscObjectGetName((PetscObject)domain_label, &label_name)); in DMPlexCeedElemRestrictionCreate() 96 if (container_restriction) { in DMPlexCeedElemRestrictionCreate() 124 if the routine is called again with the same arguments, the same `CeedElemRestriction` is returned. 143 if (!dm_coord) { in DMPlexCeedElemRestrictionCoordinateCreate() 161 …@param[in] is_collocated Boolean flag indicating if the data is collocated on the nodes (`PETSC… 179 if (domain_label) { in DMPlexCeedElemRestrictionStridedCreate() 183 if (domain_is) { in DMPlexCeedElemRestrictionStridedCreate() 193 if (point_is) { in DMPlexCeedElemRestrictionStridedCreate() [all …]
|
| H A D | setuplibceed.c | 60 if (problem->create_mass_operator) PetscCall(problem->create_mass_operator(honee, &op_mass)); in CreateKSPMass() 117 if (num_comps_jac_data) { in SetupLibceed() 130 if (app_ctx->divFdiffproj_method != DIV_DIFF_FLUX_PROJ_NONE) { in SetupLibceed() 162 if (problem->apply_vol_rhs.qf_func_ptr) { in SetupLibceed() 172 if (app_ctx->divFdiffproj_method != DIV_DIFF_FLUX_PROJ_NONE) in SetupLibceed() 182 if (app_ctx->divFdiffproj_method != DIV_DIFF_FLUX_PROJ_NONE) in SetupLibceed() 190 if (problem->apply_vol_ifunction.qf_func_ptr) { in SetupLibceed() 202 if (app_ctx->divFdiffproj_method != DIV_DIFF_FLUX_PROJ_NONE) in SetupLibceed() 206 …if (num_comps_jac_data) PetscCallCeed(ceed, CeedQFunctionAddOutput(qf_ifunction_vol, "jac_data", n… in SetupLibceed() 214 if (app_ctx->divFdiffproj_method != DIV_DIFF_FLUX_PROJ_NONE) in SetupLibceed() [all …]
|
| H A D | honee-file.c | 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. [all …]
|
| H A D | misc.c | 22 …if (honee->phys->ics_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(honee->op_ics_ct… in ICs_FixMultiplicity() 114 if (error > app_ctx->test_tol) { in RegressionTest() 156 if (problem->compute_exact_solution_error && honee->app_ctx->test_type == TESTTYPE_NONE) { in PostProcess() 163 if (honee->app_ctx->test_type == TESTTYPE_NONE) { in PostProcess() 172 if (honee->app_ctx->test_type == TESTTYPE_SOLVER) { in PostProcess() 180 if (PetscFree(data)) return CeedError(NULL, CEED_ERROR_ACCESS, "PetscFree failed"); in FreeContextPetsc() 193 if (context_ == NULL) PetscFunctionReturn(PETSC_SUCCESS); in NodalProjectionDataDestroy() 203 @brief Sets the value of an option if it is not already set 214 if (!has_option) PetscCall(PetscOptionsSetValue(options, name, value)); in HoneeOptionsSetValueDefault() 302 if (dim == 2) box_faces_str[3] = '\0'; in PrintRunInfo() [all …]
|
| H A D | cloptions.c | 44 if (string[0] == '\0') { in ISO8601TimeDurationToSeconds() 84 if (help_set) { in ProcessCommandLineOptions() 126 if (option_set) app_ctx->checkpoint_vtk = PETSC_TRUE; in ProcessCommandLineOptions() 139 if (!rank) PetscCall(PetscMkdir(app_ctx->output_dir)); in ProcessCommandLineOptions() 143 if (app_ctx->cont_file[0] != '\0') app_ctx->use_continue_file = PETSC_TRUE; in ProcessCommandLineOptions() 161 if (option_set) PetscCall(PetscStrallocpy(amat_type, (char **)&app_ctx->amat_type)); in ProcessCommandLineOptions() 166 …if (option_set) PetscCall(PetscPrintf(comm, "Warning! -pmat_pbdiagonal no longer used. Pmat assemb… in ProcessCommandLineOptions() 169 // Provide default ceed resource if not specified in ProcessCommandLineOptions() 170 if (!ceed_flag) { in ProcessCommandLineOptions() 174 // If we request a GPU, make sure PETSc has initialized its device (which is in ProcessCommandLineOptions() [all …]
|
| H A D | honee_versioning.c | 19 if (major) *major = HONEE_VERSION_MAJOR; in HoneeGetVersion() 20 if (minor) *minor = HONEE_VERSION_MINOR; in HoneeGetVersion() 21 if (patch) *patch = HONEE_VERSION_PATCH; in HoneeGetVersion() 22 if (release) *release = HONEE_VERSION_RELEASE; in HoneeGetVersion()
|
| H A D | boundary_condition.c | 17 if (bc_def == NULL) PetscFunctionReturn(PETSC_SUCCESS); in AddBCDefinitionToSegBuffer() 42 if (bc_def) { in BoundaryConditionSetUp() 62 if (!bc_def) { in BoundaryConditionSetUp() 66 if (bc_def) { in BoundaryConditionSetUp() 106 if (honee_bc->qfctx) PetscCallCeed(ceed, CeedQFunctionContextDestroy(&honee_bc->qfctx)); in HoneeBCDestroy() 107 if (honee_bc->DestroyCtx) PetscCall((*honee_bc->DestroyCtx)(&honee_bc->ctx)); in HoneeBCDestroy() 121 …fctx `CeedQFunctionContext` for the IFunction (also shared with the IJacobian, if applicable) 157 …if (num_comps_jac_data) PetscCallCeed(ceed, CeedQFunctionAddOutput(*qf_ifunc, "surface jacobian da… in HoneeBCCreateIFunctionQF() 204 …if (num_comps_jac_data) PetscCallCeed(ceed, CeedQFunctionAddInput(*qf_ijac, "surface jacobian data… in HoneeBCCreateIJacobianQF() 245 if (num_comps_jac_data > 0) { in HoneeBCAddIFunctionOp() [all …]
|
| H A D | honee-meshtransform.c | 28 if (ndims < 2) dims[1] = 1; // Assume 1 column of data is not otherwise specified in GetYNodeLocs() 56 * If `node_locs` is not NULL, then the nodes will be placed at `node_locs` locations. 57 …* If it is NULL, then the modified coordinate values will be set in the array, along with `num_nod… 87 if (!*node_locs) { in HoneeMeshTransform_PlateMesh() 100 if (y_box_index <= N) { in HoneeMeshTransform_PlateMesh() 107 …if (coords[i][0] == domain_min[0] && coords[i][2] == domain_min[2]) temp_node_locs[y_box_index] = … in HoneeMeshTransform_PlateMesh() 115 if (*num_node_locs > faces[1] + 1) { in HoneeMeshTransform_PlateMesh() 176 "If empty, will use the algorithmic mesh warping.", in HoneeMeshTransformFromOptions() 180 …if (strcmp(mesh_ynodes_path, "")) PetscCall(GetYNodeLocs(comm, mesh_ynodes_path, &mesh_ynodes, &me… in HoneeMeshTransformFromOptions()
|
| H A D | setupdm.c | 24 if (isCGNS) { in CreateDM() 47 …if (distribute && num_ranks > 1) PetscCall(HoneeOptionsSetValueDefault(NULL, "-dm_plex_csr_alg", "… in CreateDM() 60 if (num_fields) { in CreateDM() 85 if (use_strongstg) PetscCall(SetupStrongStg(dm, problem, phys)); in SetUpDM() 102 if (essential_comps > 0) { in SetUpDM() 139 if (i + 1 == honee->app_ctx->viz_refine) d = 1; in VizRefineDM() 144 if (!i) honee->interp_viz = interp_next; in VizRefineDM()
|
| /honee/tests/ |
| H A D | junit_common.py | 34 if not issubclass(type, Enum): 38 if isinstance(default, self.enum_type): 50 if isinstance(values, self.enum_type): 182 … """Check if a test case should be skipped prior to running, returning the reason for skipping 191 Optional[str]: Skip reason, or `None` if test case should not be skipped 196 """Check if a test case should be allowed to fail, based on its stderr output 205 Optional[str]: Skip reason, or `None` if unexpected error 210 """Check whether a test case is expected to fail and if it failed expectedly 230 bool: True if the test is allowed to print console output 239 bool: True if `cgnsdiff` is found [all …]
|
| H A D | junit.py | 29 …add_argument('--smartredis-dir', type=str, default='', help='path to SmartSim library, if present') 47 return diff_output if diff_output else None 66 if test.startswith('navierstokes'): 96 … """Check if a test case should be skipped prior to running, returning the reason for skipping 105 Optional[str]: Skip reason, or `None` if test case should not be skipped 108 if (condition == 'cpu') and ('gpu' in resource): 110 if condition == 'torch' and not self.has_torch: 114 """Check if a test case should be allowed to fail, based on its stderr output 123 Optional[str]: Skip reason, or `None` if unexpeced error 125 if 'No SYCL devices of the requested type are available' in stderr: [all …]
|
| H A D | smartsim_regression_framework.py | 62 If two eigenvectors are very close to the vorticity vector, this can cause the ordering to flip. 65 if not np.allclose(database_array, correct_array, atol=atol, rtol=rtol): 69 if not np.all(idx_notclose[1] == 4): 75 test_fail = False if np.allclose(-database_vorticity, correct_vorticity, 78 if test_fail: 98 if self.directory_path.exists() and self.directory_path.is_dir(): 109 # SmartRedis will complain if these aren't set 191 if client: 201 output = "" if isinstance(exception, NoError) else ''.join( 213 if not passTest and 'occa' in ceed_resource: [all …]
|
| /honee/ |
| H A D | Doxyfile | 48 # could be handy for archiving the generated documentation or if some version 67 # into which the generated documentation will be written. If a relative path is 68 # entered, it will be relative to the location where doxygen was started. If 73 # If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096 95 # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII 96 # characters to appear in the names of generated files. If set to NO, non-ASCII 118 # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member 125 # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief 128 # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 135 # used to form the text in various listings. Each string in this list, if found [all …]
|
| H A D | common.mk | 10 color_out = @if [ -t 1 ]; then \ 15 # if TERM=dumb, use it, otherwise switch to the term one 16 output = $(if $(TERM:dumb=),$(call color_out,$1,$2),$(call emacs_out,$1,$2)) 18 # if V is set to non-nil, turn the verbose mode 19 quiet = $(if $(V),$($(1)),$(call output,$1,$@);$($(1))) 29 # Older versions work if you spell it "\#foo", but 4.3 will include the backslash. We define $(HASH…
|
| H A D | Makefile | 6 pkgconf-path = $(if $(wildcard $(1)/$(2).pc),$(1)/$(2).pc,$(2)) 16 CEED_DIR ?= $(if $(wildcard $(PETSC_DIR)/$(PETSC_ARCH)/lib/pkgconfig/ceed.pc),$(PETSC_DIR)/$(PETSC_… 19 pkgconf = $(shell pkg-config $(if $(STATIC),--static) $1 | $(SED) -e 's/^"//g' -e 's/"$$//g') 30 $(if $(PEDANTIC),$(PEDANTICFLAGS)) 33 $(if $(PEDANTIC),$(PEDANTICFLAGS)) 34 CXX = $(call pkgconf, --variable=cxxcompiler $(petsc.pc) $(ceed.pc)) $(if $(PEDANTIC),$(PEDAN… 40 # ASAN must be left empty if you don't want to use it 44 CFLAGS += $(if $(ASAN),$(AFLAGS)) 45 FFLAGS += $(if $(ASAN),$(AFLAGS)) 46 LDFLAGS += $(if $(ASAN),$(AFLAGS)) [all …]
|
| /honee/include/ |
| H A D | petsc-ceed-utils.h | 11 …Note: If `vec_copy` is non-null, it is assumed to be a valid pointer to a `Vec` and `VecDestroy()`… 30 …Note: If `dm_copy` is non-null, it is assumed to be a valid pointer to a `DM` and `DMDestroy()` wi… 58 …If the types differ, `array_ceed` is freed with `free()` and `array_petsc` is allocated with `mall… 74 if (sizeof(int_c) == sizeof(int_p)) { in IntArrayCeedToPetsc() 87 …If the types differ, `array_petsc` is freed with `PetscFree()` and `array_ceed` is allocated with … 103 if (sizeof(int_c) == sizeof(int_p)) { in IntArrayPetscToCeed() 249 @return CeedElemTopology, or 0 if no equivelent CeedElemTopology was found 278 if (strstr(vec_type, VECCUDA)) *mat_type = MATAIJCUSPARSE; in DefaultMatTypeFromVecType() 279 else if (strstr(vec_type, VECHIP)) *mat_type = MATAIJHIPSPARSE; in DefaultMatTypeFromVecType() 280 else if (strstr(vec_type, VECKOKKOS)) *mat_type = MATAIJKOKKOS; in DefaultMatTypeFromVecType() [all …]
|
| H A D | petsc-ceed.h | 7 #if defined(__clang_analyzer__) 15 #if defined(__clang_analyzer__) 23 If the error code is non-zero, then a PETSc error is set with the libCEED error message. 31 if (PetscUnlikely(ierr_q_ != CEED_ERROR_SUCCESS)) { \
|
| H A D | smartsim-impl.h | 12 #if defined(__clang_analyzer__) 21 …if (disable_calls == PETSC_TRUE) break; … 23 …if (PetscUnlikely(ierr_smartredis_call_q_ != SRNoError)) … 39 #if defined(PETSC_USE_64BIT_INDICES)
|
| /honee/qfunctions/ |
| H A D | utils_eigensolver_jacobi.h | 33 if (fabs(A[i * N + j]) > fabs(A[i * N + j_max])) j_max = j; in MaxEntryRow() 50 if (fabs(A[i * N + j]) > max_entry) { in MaxEntry() 70 if (A_jj_ii != 0.0) { in CalcRot() 75 if (A_ij != 0.0) { in CalcRot() 80 if (kappa < 0.0) rotmat_cst[2] = -rotmat_cst[2]; in CalcRot() 127 /// If so, then update max_idx_row for that row. 171 if (i == max_idx_row[w]) max_idx_row[w] = MaxEntryRow(A, N, w); in ApplyRot() 172 else if (fabs(A[w * N + i]) > fabs(A[w * N + max_idx_row[w]])) max_idx_row[w] = i; in ApplyRot() 189 if (j == max_idx_row[w]) max_idx_row[w] = MaxEntryRow(A, N, w); in ApplyRot() 190 else if (fabs(A[w * N + j]) > fabs(A[w * N + max_idx_row[w]])) max_idx_row[w] = j; in ApplyRot() [all …]
|
| /honee/src/smartsim/ |
| H A D | smartsim.c | 15 if (!smartsim_) PetscFunctionReturn(PETSC_SUCCESS); in SmartSimDataDestroy() 33 if (rank % smartsim->collocated_database_num_ranks == 0) { in SmartSimTrainingSetup() 74 If `SmartSimData` has not already been initialized, this will initialize and create the struct. 84 if (!has_smartsim) PetscCall(SmartSimSetup(honee)); in HoneeGetSmartSimData() 90 @brief Checks if a tensor with `name` is in the SmartRedis database 92 Function will error out if tensor does not exist.
|