dm_utils.c (78da6f49bd4f317104176ab77799905fab1a7277) dm_utils.c (3a10b0eea181dc293479a0dbf82d5df1dcd22873)
1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6// This file is part of CEED: http://github.com/ceed
7
8/// @file

--- 102 unchanged lines hidden (view full) ---

111 Not collective across MPI processes.
112
113 @param[in] ceed `Ceed` context
114 @param[in] dm `DMPlex` holding mesh
115 @param[in] domain_label Label for `DMPlex` domain
116 @param[in] label_value Stratum value
117 @param[in] height Height of `DMPlex` topology
118 @param[in] q_data_size Number of components for `QFunction` data
1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6// This file is part of CEED: http://github.com/ceed
7
8/// @file

--- 102 unchanged lines hidden (view full) ---

111 Not collective across MPI processes.
112
113 @param[in] ceed `Ceed` context
114 @param[in] dm `DMPlex` holding mesh
115 @param[in] domain_label Label for `DMPlex` domain
116 @param[in] label_value Stratum value
117 @param[in] height Height of `DMPlex` topology
118 @param[in] q_data_size Number of components for `QFunction` data
119 @param[in] is_collocated Boolean flag indicating if the data is collocated on the nodes (`PETSC_TRUE`) on on quadrature points (`PETSC_FALSE`)
119 @param[in] is_collocated Boolean flag indicating if the data is collocated on the nodes (`PETSC_TRUE`) or on quadrature points (`PETSC_FALSE`)
120 @param[out] restriction Strided `CeedElemRestriction` for `QFunction` data
121
122 @return An error code: 0 - success, otherwise - failure
123**/
124static PetscErrorCode DMPlexCeedElemRestrictionStridedCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscInt label_value, PetscInt height,
125 PetscInt q_data_size, PetscBool is_collocated, CeedElemRestriction *restriction) {
126 PetscInt num_elem, num_qpts, dm_field = 0;
127

--- 391 unchanged lines hidden ---
120 @param[out] restriction Strided `CeedElemRestriction` for `QFunction` data
121
122 @return An error code: 0 - success, otherwise - failure
123**/
124static PetscErrorCode DMPlexCeedElemRestrictionStridedCreate(Ceed ceed, DM dm, DMLabel domain_label, PetscInt label_value, PetscInt height,
125 PetscInt q_data_size, PetscBool is_collocated, CeedElemRestriction *restriction) {
126 PetscInt num_elem, num_qpts, dm_field = 0;
127

--- 391 unchanged lines hidden ---