| /honee/ |
| H A D | Makefile | 2 -include $(CONFIG) 4 -include $(COMMON) 6 pkgconf-path = $(if $(wildcard $(1)/$(2).pc),$(1)/$(2).pc,$(2)) 10 # PETSC_ARCH - for example when using PETSc installed through Spack. 14 petsc.pc := $(call pkgconf-path,$(PETSC_DIR)/$(PETSC_ARCH)/lib/pkgconfig,petsc) 17 ceed.pc := $(call pkgconf-path,$(CEED_DIR)/lib/pkgconfig,ceed) 19 pkgconf = $(shell pkg-config $(if $(STATIC),--static) $1 | $(SED) -e 's/^"//g' -e 's/"$$//g') 23 PEDANTICFLAGS ?= -Werror -pedantic 25 CC = $(call pkgconf, --variable=ccompiler $(petsc.pc) $(ceed.pc)) 26 CFLAGS = -std=c99 \ [all …]
|
| H A D | .gitignore | 5 *.o 73 .ccls-cache 84 .auctex-auto/
|
| H A D | .gitlab-ci.yml | 1 # ---------------------------------------------------------------------------------------- 3 # ---------------------------------------------------------------------------------------- 5 - test:stage-lint 6 - test:stage-full 7 - test:post 8 - test:docs 9 - deploy 15 .test-basic: 19 - web 20 - merge_requests [all …]
|
| H A D | Doxyfile | 20 # doxygen -x [configFile] 24 # doxygen -x_noenv [configFile] 26 #--------------------------------------------------------------------------- 28 #--------------------------------------------------------------------------- 31 # file that follow. The default is UTF-8 which is also the encoding used for all 35 # The default value is: UTF-8. 37 DOXYFILE_ENCODING = UTF-8 40 # double-quotes, unless you are using Doxywizard) that should identify the 57 PROJECT_BRIEF = "HONEE - High-Order Navier-stokes Equation Evaluator" 74 # sub-directories (in 2 levels) under the output directory of each output format [all …]
|
| /honee/examples/ |
| H A D | conv_plot.py | 4 # Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707. 8 # libraries and APIs for efficient high-order finite element and spectral 12 # The CEED research is supported by the Exascale Computing Project 17-SC-20-SC, 28 parser.add_argument('-f', 51 ax.loglog(h, E, 'o', color=colors[i]) 52 ax.loglog(h, H, '--', color=colors[i], label='O(h$^' + str(p) + '$)')
|
| /honee/src/ |
| H A D | strong_boundary_conditions.c | 1 // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors. 2 // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause 22 MPI_Comm comm = honee->comm; in SetupStrongSTG_Ceed() 28 dXdx_size = num_comp_x * (dim - height_cell); in SetupStrongSTG_Ceed() 62 for (PetscCount b = 0; b < problem->num_bc_defs; b++) { in SetupStrongSTG_Ceed() 63 BCDefinition bc_def_ = problem->bc_defs[b]; in SetupStrongSTG_Ceed() 89 for (PetscInt o = 0; o < num_orientations_values; o++) { in SetupStrongSTG_Ceed() local 92 PetscInt orientation = orientation_values[o]; in SetupStrongSTG_Ceed() 121 // -- Setup Operator in SetupStrongSTG_Ceed() 131 // -- Compute geometric factors in SetupStrongSTG_Ceed() [all …]
|
| H A D | bc_definition.c | 1 // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors. 2 // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause 5 #include <dm-utils.h> 6 #include <petsc-ceed.h> 16 @return An error code: 0 - success, otherwise - failure 45 PetscCall(PetscStrallocpy(name, &bc_def_->name)); in BCDefinitionCreate() 47 bc_def_->num_label_values = num_label_values; in BCDefinitionCreate() 48 PetscCall(PetscMalloc1(num_label_values, &bc_def_->label_values)); in BCDefinitionCreate() 49 for (PetscInt i = 0; i < num_label_values; i++) bc_def_->label_values[i] = label_values[i]; in BCDefinitionCreate() 65 if (bc_def_->name) PetscCall(PetscFree(bc_def_->name)); in BCDefinitionDestroy() [all …]
|
| H A D | honee-file.c | 1 // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors. 2 // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause 5 /// Custom file I/O functions for HONEE 7 #include <honee-file.h> 25 PetscCheck(ext_len, comm, PETSC_ERR_ARG_WRONG, "Zero-size extension: %s", extension); in HoneeCheckFilenameExtension() 27 else PetscCall(PetscStrncmp(filename + len - ext_len, extension, ext_len, is_extension)); in HoneeCheckFilenameExtension() 38 *out = -13; // appease the overzealous GCC compiler warning Gods in BinaryReadIntoInt() 110 …l condition from CGNS requires PETSc to be built with support. Reconfigure using --with-cgns-dir"); in HoneeLoadInitialCondition() 153 …ecLoad_Binary()` in PETSc for source code reference of how to handle Vecs written with 64-bit PETSc in HoneeLoadBinaryVec() 198 file_mode == -1 ? "UNDEFINED" : PetscFileModes[file_mode]); in HoneeWriteBinaryVec()
|
| /honee/examples/meshes/ |
| H A D | Makefile | 3 ALL = $(foreach q,1,$(foreach n,08 12 20 40,cylinder-q$(q)-n$(n).msh)) 7 cylinder-q1-n20.msh: 9 cylinder-q1-n08.msh: GMSH_FLAGS = -order 1 -setnumber N 08 -setnumber Rb 0.7 10 cylinder-q1-n12.msh: GMSH_FLAGS = -order 1 -setnumber N 12 -setnumber Rb 0.8 11 cylinder-q1-n20.msh: GMSH_FLAGS = -order 1 -setnumber N 20 12 cylinder-q1-n40.msh: GMSH_FLAGS = -order 1 -setnumber N 40 13 cylinder-q2-n20.msh: GMSH_FLAGS = -order 2 -setnumber N 20 14 cylinder-q2-n40.msh: GMSH_FLAGS = -order 2 -setnumber N 40 15 cylinder-q1-n12-recirc.msh: GMSH_FLAGS = -order 1 -setnumber N 12 -setnumber H 1 -setnumber xL 1 -s… 18 $(GMSH) -3 $(GMSH_FLAGS) $< -o $@ [all …]
|
| /honee/problems/ |
| H A D | advection.c | 1 // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors. 2 // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause 22 MPI_Comm comm = honee->comm; in PRINT_ADVECTION() 23 Ceed ceed = honee->ceed; in PRINT_ADVECTION() 29 PetscCall(DMGetDimension(honee->dm, &dim)); in PRINT_ADVECTION() 30 PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->ics.qfctx, CEED_MEM_HOST, &setup_ctx)); in PRINT_ADVECTION() 31 …PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->apply_vol_rhs.qfctx, CEED_MEM_HOST, &adve… in PRINT_ADVECTION() 38 app_ctx->problem_name, StabilizationTypes[advection_ctx->stabilization], in PRINT_ADVECTION() 39 … StabilizationTauTypes[advection_ctx->stabilization_tau], AdvDifWindTypes[setup_ctx->wind_type])); in PRINT_ADVECTION() 41 if (setup_ctx->wind_type == ADVDIF_WIND_TRANSLATION) { in PRINT_ADVECTION() [all …]
|
| H A D | newtonian.c | 1 // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors. 2 // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause 20 MPI_Comm comm = honee->comm; in PRINT_NEWTONIAN() 21 Ceed ceed = honee->ceed; in PRINT_NEWTONIAN() 25 …PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->apply_vol_rhs.qfctx, CEED_MEM_HOST, &newt… in PRINT_NEWTONIAN() 30 app_ctx->problem_name, StabilizationTypes[newt_ctx->stabilization])); in PRINT_NEWTONIAN() 31 PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->apply_vol_rhs.qfctx, &newt_ctx)); in PRINT_NEWTONIAN() 39 Ceed ceed = honee->ceed; in CreateKSPMassOperator_NewtonianStabilized() 54 PetscCallCeed(ceed, CeedOperatorCompositeGetSubList(honee->op_rhs_ctx->op, &sub_ops)); in CreateKSPMassOperator_NewtonianStabilized() 79 PetscCallCeed(ceed, CeedOperatorSetField(*op_mass, "q", elem_restr_q, basis_q, honee->q_ceed)); in CreateKSPMassOperator_NewtonianStabilized() [all …]
|
| /honee/doc/ |
| H A D | runtime_options.md | 4 HONEE is controlled via command-line options. 7 :::{list-table} Common Runtime Options 8 :header-rows: 1 10 * - Option 11 - Description 12 - Default value 14 * - `-ceed` 15 - CEED resource specifier 16 - `/cpu/self/opt/blocked` 18 * - `-problem` [all …]
|
| /honee/qfunctions/ |
| H A D | utils_eigensolver_jacobi.h | 1 // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors. 2 // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause 25 ///@brief Find the off-diagonal index in row i whose absolute value is largest 29 /// @returns Index of absolute largest off-diagonal element in row i 39 /// uses the max_idx_row[] array to find the answer in O(n) time. 48 for (CeedInt i = 1; i < N - 1; i++) { in MaxEntry() 69 CeedScalar A_jj_ii = (A[j * N + j] - A[i * N + i]); in CalcRot() 71 // kappa = (A[j][j] - A[i][i]) / (2*A[i][j]) in CalcRot() 77 // t satisfies: t^2 + 2*t*kappa - 1 = 0 in CalcRot() 80 if (kappa < 0.0) rotmat_cst[2] = -rotmat_cst[2]; in CalcRot() [all …]
|