| /honee/src/ |
| H A D | setupdm.c | 15 …cErrorCode CreateDM(Honee honee, ProblemData problem, MatType mat_type, VecType vec_type, DM *dm) { in CreateDM() argument 26 PetscCall(DMPlexCreateFromFile(comm, filename, "HONEE", PETSC_TRUE, dm)); in CreateDM() 29 PetscCall(DMCreate(comm, dm)); in CreateDM() 30 PetscCall(DMSetType(*dm, DMPLEX)); in CreateDM() 36 PetscCall(DMSetMatrixPreallocateSkip(*dm, skip)); in CreateDM() 38 PetscCall(DMSetMatType(*dm, mat_type)); in CreateDM() 39 PetscCall(DMSetVecType(*dm, vec_type)); in CreateDM() 45 PetscCall(DMPlexDistributeGetDefault(*dm, &distribute)); in CreateDM() 49 PetscCall(DMSetSparseLocalize(*dm, PETSC_FALSE)); in CreateDM() 50 PetscCall(DMSetBlockingType(*dm, DM_BLOCKING_FIELD_NODE)); in CreateDM() [all …]
|
| H A D | diff_flux_projection.c | 41 PetscCall(DMClone(honee->dm, &projection->dm)); in DivDiffFluxProjectionCreate() 42 PetscCall(DMSetMatrixPreallocateSkip(projection->dm, PETSC_TRUE)); in DivDiffFluxProjectionCreate() 43 PetscCall(DMGetDimension(projection->dm, &dim)); in DivDiffFluxProjectionCreate() 47 PetscCall(PetscObjectSetName((PetscObject)projection->dm, "DivDiffFluxProj")); in DivDiffFluxProjectionCreate() 48 …ByOrder_FEM(PETSC_TRUE, PETSC_TRUE, degree, 1, q_extra, 1, &projection->num_comp, projection->dm)); in DivDiffFluxProjectionCreate() 50 …PetscCall(DMPlexCeedElemRestrictionCreate(honee->ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DE… in DivDiffFluxProjectionCreate() 54 …PetscCall(DMPlexCeedBasisCreate(honee->ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALU… in DivDiffFluxProjectionCreate() 62 PetscCall(DMGetLabel(honee->dm, "Face Sets", &face_sets_label)); in DivDiffFluxProjectionCreate() 63 …PetscCall(DMLabelCreateGlobalValueArray(honee->dm, face_sets_label, &num_face_set_values, &face_se… in DivDiffFluxProjectionCreate() 68 … PetscCall(DMPlexCreateFaceLabel(honee->dm, face_set_values[f], &face_orientation_label_name)); in DivDiffFluxProjectionCreate() [all …]
|
| H A D | dm-utils.c | 23 PetscErrorCode DMFieldToDSField(DM dm, DMLabel domain_label, PetscInt dm_field, PetscInt *ds_field)… in DMFieldToDSField() argument 30 PetscCall(DMGetRegionDS(dm, domain_label, &field_is, &ds, NULL)); in DMFieldToDSField() 41 …PetscCheck(*ds_field != -1, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "Could not find dm_fi… in DMFieldToDSField() 80 PetscErrorCode DMPlexCeedElemRestrictionCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscInt lab… in DMPlexCeedElemRestrictionCreate() argument 94 …PetscCall(PetscObjectContainerQuery((PetscObject)dm, container_name, (void **)&container_restricti… in DMPlexCeedElemRestrictionCreate() 105 …PetscCall(DMPlexGetLocalOffsets(dm, domain_label, label_value, height, dm_field, &num_elem, &elem_… in DMPlexCeedElemRestrictionCreate() 114 PetscCall(PetscObjectContainerCompose((PetscObject)dm, container_name, container_restriction, in DMPlexCeedElemRestrictionCreate() 137 PetscErrorCode DMPlexCeedElemRestrictionCoordinateCreate(Ceed ceed, DM dm, DMLabel domain_label, Pe… in DMPlexCeedElemRestrictionCoordinateCreate() argument 142 PetscCall(DMGetCellCoordinateDM(dm, &dm_coord)); in DMPlexCeedElemRestrictionCoordinateCreate() 144 PetscCall(DMGetCoordinateDM(dm, &dm_coord)); in DMPlexCeedElemRestrictionCoordinateCreate() [all …]
|
| H A D | strong_boundary_conditions.c | 12 PetscErrorCode SetupStrongSTG_Ceed(Ceed ceed, Honee honee, DM dm, ProblemData problem, Physics phys… in SetupStrongSTG_Ceed() argument 25 PetscCall(DMGetLabel(dm, "Face Sets", &domain_label)); in SetupStrongSTG_Ceed() 26 PetscCall(DMGetDimension(dm, &dim)); in SetupStrongSTG_Ceed() 34 PetscCall(DMGetCoordinateDM(dm, &dm_coord)); in SetupStrongSTG_Ceed() 35 …PetscCall(DMPlexCeedBasisCreate(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, height_face, dm_… in SetupStrongSTG_Ceed() 84 PetscCall(DMPlexCreateFaceLabel(dm, inflow_faces[i], &face_orientation_label_name)); in SetupStrongSTG_Ceed() 85 PetscCall(DMGetLabel(dm, face_orientation_label_name, &face_orientation_label)); in SetupStrongSTG_Ceed() 88 …PetscCall(DMLabelCreateGlobalValueArray(dm, face_orientation_label, &num_orientations_values, &ori… in SetupStrongSTG_Ceed() 97 …PetscCall(DMPlexCeedBasisCellToFaceCoordinateCreate(ceed, dm, face_orientation_label, orientation,… in SetupStrongSTG_Ceed() 98 …PetscCall(DMPlexCeedBasisCreate(ceed, dm, face_orientation_label, orientation, height_face, dm_fie… in SetupStrongSTG_Ceed() [all …]
|
| H A D | misc.c | 14 PetscErrorCode ICs_FixMultiplicity(DM dm, Honee honee, Vec Q_loc, Vec Q, CeedScalar time) { in ICs_FixMultiplicity() argument 26 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in ICs_FixMultiplicity() 28 PetscCall(DMGetLocalVector(dm, &Multiplicity_loc)); in ICs_FixMultiplicity() 33 PetscCall(DMGetGlobalVector(dm, &Multiplicity)); in ICs_FixMultiplicity() 35 PetscCall(DMLocalToGlobal(dm, Multiplicity_loc, ADD_VALUES, Multiplicity)); in ICs_FixMultiplicity() 41 PetscCall(DMRestoreLocalVector(dm, &Multiplicity_loc)); in ICs_FixMultiplicity() 42 PetscCall(DMRestoreGlobalVector(dm, &Multiplicity)); in ICs_FixMultiplicity() 49 PetscErrorCode SetBCsFromICs(DM dm, Vec Q, Vec Q_loc) { in SetBCsFromICs() argument 54 PetscCall(DMGetNamedLocalVector(dm, "Qbc", &Qbc)); in SetBCsFromICs() 57 PetscCall(DMGlobalToLocal(dm, Q, INSERT_VALUES, Q_loc)); in SetBCsFromICs() [all …]
|
| H A D | grid_anisotropy_tensor.c | 17 MPI_Comm comm = PetscObjectComm((PetscObject)honee->dm); in GridAnisotropyTensorProjectionSetupApply() 26 PetscCall(DMClone(honee->dm, &grid_aniso_proj->dm)); in GridAnisotropyTensorProjectionSetupApply() 27 PetscCall(DMSetMatrixPreallocateSkip(grid_aniso_proj->dm, PETSC_TRUE)); in GridAnisotropyTensorProjectionSetupApply() 28 …PetscCall(PetscObjectSetName((PetscObject)grid_aniso_proj->dm, "Grid Anisotropy Tensor Projection"… in GridAnisotropyTensorProjectionSetupApply() 33 grid_aniso_proj->dm)); in GridAnisotropyTensorProjectionSetupApply() 35 PetscCall(DMGetLocalSection(grid_aniso_proj->dm, §ion)); in GridAnisotropyTensorProjectionSetupApply() 47 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, grid_aniso_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFA… in GridAnisotropyTensorProjectionSetupApply() 49 …PetscCall(DMPlexCeedBasisCreate(ceed, grid_aniso_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in GridAnisotropyTensorProjectionSetupApply() 50 …PetscCall(QDataGet(ceed, grid_aniso_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_… in GridAnisotropyTensorProjectionSetupApply() 64 …PetscCall(OperatorApplyContextCreate(honee->dm, grid_aniso_proj->dm, ceed, op_rhs_assemble, CEED_V… in GridAnisotropyTensorProjectionSetupApply() [all …]
|
| H A D | qdata.c | 94 PetscErrorCode QDataGetNumComponents(DM dm, CeedInt *q_data_size) { in QDataGetNumComponents() argument 98 PetscCall(DMGetDimension(dm, &dim)); in QDataGetNumComponents() 99 PetscCall(DMGetCoordinateNumComps(dm, &num_comp_x)); in QDataGetNumComponents() 116 PetscCheck(*q_data_size, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, in QDataGetNumComponents() 132 PetscErrorCode QDataGet(Ceed ceed, DM dm, DMLabel domain_label, PetscInt label_value, CeedElemRestr… in QDataGet() argument 142 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, dm, domain_label, label_value, height, &elem_restr… in QDataGet() 143 PetscCall(QDataGetNumComponents(dm, q_data_size)); in QDataGet() 144 PetscCall(DMGetCoordinateNumComps(dm, &num_comp_x)); in QDataGet() 145 PetscCall(DMGetDimension(dm, &dim)); in QDataGet() 161 …PetscCheck(qf_setup, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "%s not valid for DM of dime… in QDataGet() [all …]
|
| H A D | boundary_condition.c | 127 DM dm; in HoneeBCCreateIFunctionQF() local 133 PetscCall(BCDefinitionGetDM(bc_def, &dm)); in HoneeBCCreateIFunctionQF() 138 PetscCall(DMGetDimension(dm, &dim)); in HoneeBCCreateIFunctionQF() 140 PetscCall(QDataBoundaryGetNumComponents(dm, &q_data_size_sur)); in HoneeBCCreateIFunctionQF() 141 PetscCall(DMGetCoordinateNumComps(dm, &num_comp_x)); in HoneeBCCreateIFunctionQF() 145 PetscCall(DMGetLocalSection(dm, §ion)); in HoneeBCCreateIFunctionQF() 175 DM dm; in HoneeBCCreateIJacobianQF() local 181 PetscCall(BCDefinitionGetDM(bc_def, &dm)); in HoneeBCCreateIJacobianQF() 186 PetscCall(DMGetDimension(dm, &dim)); in HoneeBCCreateIJacobianQF() 188 PetscCall(QDataBoundaryGetNumComponents(dm, &q_data_size_sur)); in HoneeBCCreateIJacobianQF() [all …]
|
| H A D | velocity_gradient_projection.c | 18 PetscCall(DMClone(honee->dm, &grad_velo_proj->dm)); in VelocityGradientProjectionCreateDM() 19 PetscCall(DMSetMatrixPreallocateSkip(grad_velo_proj->dm, PETSC_TRUE)); in VelocityGradientProjectionCreateDM() 20 PetscCall(PetscObjectSetName((PetscObject)grad_velo_proj->dm, "Velocity Gradient Projection")); in VelocityGradientProjectionCreateDM() 23 grad_velo_proj->dm)); in VelocityGradientProjectionCreateDM() 25 PetscCall(DMGetLocalSection(grad_velo_proj->dm, §ion)); in VelocityGradientProjectionCreateDM() 53 PetscCall(DMGetDimension(grad_velo_proj->dm, &dim)); in VelocityGradientProjectionSetup() 54 PetscCall(DMGetFieldNumComps(honee->dm, 0, &num_comp_input)); in VelocityGradientProjectionSetup() 55 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, grad_velo_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAU… in VelocityGradientProjectionSetup() 57 …PetscCall(DMPlexCeedBasisCreate(ceed, grad_velo_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, … in VelocityGradientProjectionSetup() 58 …PetscCall(QDataGet(ceed, grad_velo_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_q… in VelocityGradientProjectionSetup() [all …]
|
| H A D | bc_definition.c | 68 if (bc_def_->dm) PetscCall(DMDestroy(&bc_def_->dm)); in BCDefinitionDestroy() 106 if (is_detailed) PetscCall(DMView(bc_def->dm, viewer)); in BCDefinitionView() 231 PetscErrorCode BCDefinitionSetDM(BCDefinition bc_def, DM dm) { in BCDefinitionSetDM() argument 234 if (bc_def->dm) PetscCall(DMDestroy(&bc_def->dm)); in BCDefinitionSetDM() 235 if (dm) { in BCDefinitionSetDM() 236 PetscValidHeaderSpecific(dm, DM_CLASSID, 2); in BCDefinitionSetDM() 237 PetscCall(PetscObjectReference((PetscObject)dm)); in BCDefinitionSetDM() 238 bc_def->dm = dm; in BCDefinitionSetDM() 249 PetscErrorCode BCDefinitionGetDM(BCDefinition bc_def, DM *dm) { in BCDefinitionGetDM() argument 253 PetscAssertPointer(dm, 2); in BCDefinitionGetDM() [all …]
|
| H A D | inverse_multiplicity.c | 23 PetscErrorCode GetInverseMultiplicity(Ceed ceed, DM dm, DMLabel domain_label, PetscInt label_value,… in GetInverseMultiplicity() argument 35 …PetscCall(DMPlexCeedElemRestrictionCollocatedCreate(ceed, dm, domain_label, label_value, height, 1… in GetInverseMultiplicity() 38 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, dm, domain_label, label_value, height, dm_field, &… in GetInverseMultiplicity() 44 PetscCall(DMGetLocalVector(dm, &Multiplicity_loc)); in GetInverseMultiplicity() 45 PetscCall(DMGetGlobalVector(dm, &Multiplicity)); in GetInverseMultiplicity() 51 PetscCall(DMLocalToGlobal(dm, Multiplicity_loc, ADD_VALUES, Multiplicity)); in GetInverseMultiplicity() 52 PetscCall(DMGlobalToLocal(dm, Multiplicity, INSERT_VALUES, Multiplicity_loc)); in GetInverseMultiplicity() 72 PetscCall(DMRestoreLocalVector(dm, &Multiplicity_loc)); in GetInverseMultiplicity() 73 PetscCall(DMRestoreGlobalVector(dm, &Multiplicity)); in GetInverseMultiplicity()
|
| H A D | honee-meshtransform.c | 59 static PetscErrorCode HoneeMeshTransform_PlateMesh(MPI_Comm comm, DM dm, PetscReal growth, PetscInt… in HoneeMeshTransform_PlateMesh() argument 67 PetscCall(DMGetDimension(dm, &dim)); in HoneeMeshTransform_PlateMesh() 70 PetscCall(DMGetBoundingBox(dm, domain_min, domain_max)); in HoneeMeshTransform_PlateMesh() 74 PetscCall(DMGetCoordinatesLocal(dm, &vec_coords)); in HoneeMeshTransform_PlateMesh() 131 PetscCall(DMSetCoordinatesLocal(dm, vec_coords)); in HoneeMeshTransform_PlateMesh() 142 PetscErrorCode HoneeMeshTransformFromOptions(DM dm) { in HoneeMeshTransformFromOptions() argument 143 MPI_Comm comm = PetscObjectComm((PetscObject)dm); in HoneeMeshTransformFromOptions() 181 …PetscCall(HoneeMeshTransform_PlateMesh(comm, dm, mesh_growth, mesh_Ndelta, mesh_refine_height, mes… in HoneeMeshTransformFromOptions() 193 PetscCall(DMPlexGetScale(dm, PETSC_UNIT_LENGTH, &meter)); in HoneeMeshTransformFromOptions() 194 PetscCall(DMGetCoordinatesLocal(dm, &coords)); in HoneeMeshTransformFromOptions() [all …]
|
| H A D | setupts.c | 21 PetscCall(DMPlexInsertBoundaryValues(honee->dm, PETSC_TRUE, Q_loc, t, NULL, NULL, NULL)); in UpdateBoundaryValues() 46 PetscCall(DMGetNamedGlobalVector(honee->dm, "RHS Residual", &R)); in RHS_NS() 47 PetscCall(DMGlobalToLocal(honee->dm, Q, INSERT_VALUES, Q_loc)); in RHS_NS() 67 PetscCall(DMRestoreNamedGlobalVector(honee->dm, "RHS Residual", &R)); in RHS_NS() 72 static PetscErrorCode Surface_Forces_NS(DM dm, Vec G_loc, PetscInt num_walls, const PetscInt walls[… in Surface_Forces_NS() argument 76 MPI_Comm comm = PetscObjectComm((PetscObject)dm); in Surface_Forces_NS() 80 PetscCall(DMGetLabel(dm, "Face Sets", &face_label)); in Surface_Forces_NS() 90 PetscCall(DMGetLocalSection(dm, §ion)); in Surface_Forces_NS() 99 PetscCall(DMPlexPointLocalRead(dm, p, g_array, &r)); in Surface_Forces_NS() 124 PetscCall(DMGlobalToLocalBegin(honee->dm, Q_dot, INSERT_VALUES, Q_dot_loc)); in IFunction_NS() [all …]
|
| H A D | setuplibceed.c | 56 DM dm = honee->dm; in CreateKSPMass() local 66 MPI_Comm comm = PetscObjectComm((PetscObject)dm); in CreateKSPMass() 68 PetscCall(DMCreateLocalVector(dm, &Zeros_loc)); in CreateKSPMass() 70 PetscCall(MatCreateCeed(dm, dm, op_mass, NULL, &mat_mass)); in CreateKSPMass() 92 PetscErrorCode SetupLibceed(Ceed ceed, DM dm, Honee honee, AppCtx app_ctx, ProblemData problem) { in SetupLibceed() argument 102 PetscCall(DMGetDimension(dm, &dim)); in SetupLibceed() 103 PetscCall(DMGetCoordinateNumComps(dm, &num_comp_x)); in SetupLibceed() 113 PetscCall(DMGetCoordinateDM(dm, &dm_coord)); in SetupLibceed() 114 …PetscCall(DMPlexCeedBasisCreate(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, height, dm_field… in SetupLibceed() 116 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, height… in SetupLibceed() [all …]
|
| /honee/include/ |
| H A D | dm-utils.h | 8 PetscErrorCode DMPlexCeedElemRestrictionCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscInt lab… 10 PetscErrorCode DMPlexCeedElemRestrictionCoordinateCreate(Ceed ceed, DM dm, DMLabel domain_label, Pe… 12 PetscErrorCode DMPlexCeedElemRestrictionQDataCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscIn… 14 PetscErrorCode DMPlexCeedElemRestrictionCollocatedCreate(Ceed ceed, DM dm, DMLabel domain_label, Pe… 17 PetscErrorCode DMPlexCeedBasisCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscInt label_value, … 19 PetscErrorCode DMPlexCeedBasisCoordinateCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscInt lab… 20 PetscErrorCode DMPlexCeedCoordinateCreateField(Ceed ceed, DM dm, DMLabel domain_label, PetscInt lab… 22 PetscErrorCode DMPlexCeedBasisCellToFaceCoordinateCreate(Ceed ceed, DM dm, DMLabel domain_label, Pe… 24 PetscErrorCode DMPlexCeedBasisCellToFaceCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscInt lab… 26 PetscErrorCode DMPlexCreateFaceLabel(DM dm, PetscInt dm_face, char **face_label_name); [all …]
|
| H A D | navierstokes.h | 155 DM dm; member 257 extern PetscErrorCode NS_TAYLOR_GREEN(ProblemData problem, DM dm, void *ctx); 258 extern PetscErrorCode NS_GAUSSIAN_WAVE(ProblemData problem, DM dm, void *ctx); 259 extern PetscErrorCode NS_CHANNEL(ProblemData problem, DM dm, void *ctx); 260 extern PetscErrorCode NS_BLASIUS(ProblemData problem, DM dm, void *ctx); 261 extern PetscErrorCode NS_NEWTONIAN_IG(ProblemData problem, DM dm, void *ctx); 262 extern PetscErrorCode NS_DENSITY_CURRENT(ProblemData problem, DM dm, void *ctx); 263 extern PetscErrorCode NS_EULER_VORTEX(ProblemData problem, DM dm, void *ctx); 264 extern PetscErrorCode NS_SHOCKTUBE(ProblemData problem, DM dm, void *ctx); 265 extern PetscErrorCode NS_ADVECTION(ProblemData problem, DM dm, void *ctx); [all …]
|
| H A D | petsc_ops.h | 22 PetscErrorCode DMGetGlobalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *v… 23 PetscErrorCode DMGetLocalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *ve… 26 VecType DMReturnVecType(DM dm); 34 PetscErrorCode DMGetLocalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *ve… 35 PetscErrorCode DMGetGlobalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *v…
|
| /honee/examples/ |
| H A D | navierstokes.c | 62 DM dm; in main() local 86 PetscCall(CreateDM(honee, problem, mat_type, vec_type, &dm)); in main() 87 honee->dm = dm; in main() 88 PetscCall(DMSetApplicationContext(dm, honee)); in main() 89 PetscCall(HoneeMeshTransformFromOptions(dm)); in main() 96 PetscCall((*p)(problem, dm, &honee)); in main() 100 PetscCall(SetUpDM(dm, problem, app_ctx->degree, app_ctx->q_extra, phys_ctx)); in main() 103 if (app_ctx->viz_refine) PetscCall(VizRefineDM(dm, honee, problem, phys_ctx)); in main() 110 PetscCall(DMCreateGlobalVector(dm, &Q)); in main() 112 PetscCall(DMCreateLocalVector(dm, &honee->Q_loc)); in main() [all …]
|
| /honee/src/spanstats/ |
| H A D | spanstats.c | 32 PetscCall(DMDestroy(&spanstats_->dm)); in SpanStatsCtxDestroy() 42 MPI_Comm comm = PetscObjectComm((PetscObject)honee->dm); in SpanwiseStatisticssCreateDM() 52 PetscCall(DMGetBoundingBox(honee->dm, domain_min, domain_max)); in SpanwiseStatisticssCreateDM() 62 PetscCall(DMPlexGetIsoperiodicFaceSF(honee->dm, &num_isoperiodicface, &isoperiodicface)); in SpanwiseStatisticssCreateDM() 75 PetscCall(DMCreateLabel(honee->dm, "Periodic Face")); in SpanwiseStatisticssCreateDM() 76 PetscCall(DMGetLabel(honee->dm, "Periodic Face", &label)); in SpanwiseStatisticssCreateDM() 82 PetscCall(DMGetLabel(honee->dm, "Face Sets", &label)); in SpanwiseStatisticssCreateDM() 85 PetscCall(DMPlexLabelComplete(honee->dm, label)); in SpanwiseStatisticssCreateDM() 86 …cCall(DMPlexFilter(honee->dm, label, 1, PETSC_FALSE, PETSC_FALSE, PetscObjectComm((PetscObject)hon… in SpanwiseStatisticssCreateDM() 87 …PetscCall(DMSetCoordinateDisc(spanstats->dm, NULL, PETSC_FALSE, PETSC_TRUE)); // Ensure that a co… in SpanwiseStatisticssCreateDM() [all …]
|
| H A D | cflpe.c | 31 PetscCall(DMGetDimension(honee->dm, &dim)); in CreateStatisticCollectionOperator() 32 PetscCall(DMGetCoordinateNumComps(honee->dm, &num_comp_x)); in CreateStatisticCollectionOperator() 33 PetscCall(DMGetFieldNumComps(honee->dm, 0, &num_comp_q)); in CreateStatisticCollectionOperator() 70 PetscCheck(qf_stats_collect, PetscObjectComm((PetscObject)honee->dm), PETSC_ERR_SUP, in CreateStatisticCollectionOperator() 74 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in CreateStatisticCollectionOperator() 75 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in CreateStatisticCollectionOperator() 76 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in CreateStatisticCollectionOperator() 77 …PetscCall(QDataGet(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &q_dat… in CreateStatisticCollectionOperator() 128 …PetscCall(OperatorApplyContextCreate(honee->dm, spanstats->dm, honee->ceed, op_stats_collect, hone… in CreateStatisticCollectionOperator() 131 …PetscCall(CeedOperatorCreateLocalVecs(op_stats_collect, DMReturnVecType(spanstats->dm), PETSC_COMM… in CreateStatisticCollectionOperator() [all …]
|
| H A D | turbulence.c | 31 PetscCall(DMGetCoordinateNumComps(honee->dm, &num_comp_x)); in CreateStatisticCollectionOperator() 32 PetscCall(DMGetFieldNumComps(honee->dm, 0, &num_comp_q)); in CreateStatisticCollectionOperator() 52 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in CreateStatisticCollectionOperator() 53 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in CreateStatisticCollectionOperator() 54 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in CreateStatisticCollectionOperator() 55 …PetscCall(QDataGet(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &q_dat… in CreateStatisticCollectionOperator() 91 …PetscCall(OperatorApplyContextCreate(honee->dm, spanstats->dm, honee->ceed, op_stats_collect, hone… in CreateStatisticCollectionOperator() 94 …PetscCall(CeedOperatorCreateLocalVecs(op_stats_collect, DMReturnVecType(spanstats->dm), PETSC_COMM… in CreateStatisticCollectionOperator() 120 …PetscCall(QDataGet(ceed, spanstats->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_parent… in SetupMMSErrorChecking() 137 …PetscCall(OperatorApplyContextCreate(spanstats->dm, spanstats->dm, honee->ceed, op_error, x_ceed, … in SetupMMSErrorChecking() [all …]
|
| /honee/problems/ |
| H A D | advection.c | 29 PetscCall(DMGetDimension(honee->dm, &dim)); in PRINT_ADVECTION() 87 PetscCall(DMGetDimension(honee->dm, &dim)); in CreateKSPMassOperator_AdvectionStabilized() 154 PetscCall(DMGetDimension(projection->dm, &dim)); in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() 155 PetscCall(DMGetFieldNumComps(honee->dm, 0, &num_comp_q)); in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() 174 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() 175 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() 177 …PetscCall(QDataGet(ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &… in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() 230 PetscCall(QDataBoundaryGradientGetNumComponents(honee->dm, &q_data_size)); in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() 236 PetscCall(DMGetLabel(projection->dm, "Face Sets", &face_sets_label)); in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() 237 …PetscCall(DMLabelCreateGlobalValueArray(projection->dm, face_sets_label, &num_face_set_values, &fa… in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() [all …]
|
| H A D | channel.c | 14 static PetscErrorCode DivDiffFluxVerifyMesh(DM dm); 38 PetscErrorCode NS_CHANNEL(ProblemData problem, DM dm, void *ctx) { in NS_CHANNEL() argument 48 PetscCall(NS_NEWTONIAN_IG(problem, dm, ctx)); in NS_CHANNEL() 52 if (use_divdiff_verify_mesh) PetscCall(DivDiffFluxVerifyMesh(dm)); in NS_CHANNEL() 76 PetscCall(DMGetBoundingBox(dm, domain_min, domain_max)); in NS_CHANNEL() 149 static PetscErrorCode DivDiffFluxVerifyMesh(DM dm) { in DivDiffFluxVerifyMesh() argument 156 PetscCall(DMGetDimension(dm, &dim)); in DivDiffFluxVerifyMesh() 158 PetscCall(DMGetBoundingBox(dm, domain_min, domain_max)); in DivDiffFluxVerifyMesh() 162 PetscCall(DMGetCoordinatesLocal(dm, &vec_coords)); in DivDiffFluxVerifyMesh() 183 PetscCall(DMSetCoordinatesLocal(dm, vec_coords)); in DivDiffFluxVerifyMesh()
|
| H A D | newtonian.c | 110 PetscCall(DMGetDimension(projection->dm, &dim)); in DivDiffFluxProjectionCreateRHS_Direct_NS() 111 PetscCall(DMGetFieldNumComps(honee->dm, 0, &num_comp_q)); in DivDiffFluxProjectionCreateRHS_Direct_NS() 130 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in DivDiffFluxProjectionCreateRHS_Direct_NS() 131 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in DivDiffFluxProjectionCreateRHS_Direct_NS() 132 …PetscCall(QDataGet(ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &… in DivDiffFluxProjectionCreateRHS_Direct_NS() 194 PetscCall(QDataBoundaryGradientGetNumComponents(honee->dm, &q_data_size)); in DivDiffFluxProjectionCreateRHS_Direct_NS() 201 PetscCall(DMGetLabel(projection->dm, "Face Sets", &face_sets_label)); in DivDiffFluxProjectionCreateRHS_Direct_NS() 202 …PetscCall(DMLabelCreateGlobalValueArray(projection->dm, face_sets_label, &num_face_set_values, &fa… in DivDiffFluxProjectionCreateRHS_Direct_NS() 210 …PetscCall(DMPlexCreateFaceLabel(projection->dm, face_set_values[f], &face_orientation_label_name)); in DivDiffFluxProjectionCreateRHS_Direct_NS() 211 PetscCall(DMGetLabel(projection->dm, face_orientation_label_name, &face_orientation_label)); in DivDiffFluxProjectionCreateRHS_Direct_NS() [all …]
|
| /honee/src/smartsim/ |
| H A D | solution.c | 31 DM dm, output_dm; in TSMonitor_SmartSimSolutionSetup() local 33 PetscCall(TSGetDM(ts, &dm)); in TSMonitor_SmartSimSolutionSetup() 34 PetscCall(DMGetOutputDM(dm, &output_dm)); in TSMonitor_SmartSimSolutionSetup() 51 DM dm, output_dm; in TSMonitor_SmartSimSolution() local 61 PetscCall(TSGetDM(ts, &dm)); in TSMonitor_SmartSimSolution() 62 PetscCall(DMGetOutputDM(dm, &output_dm)); in TSMonitor_SmartSimSolution() 66 PetscCall(DMGlobalToLocal(honee->dm, Q, INSERT_VALUES, honee->Q_loc)); in TSMonitor_SmartSimSolution()
|