| setupdm.c (eff337b5e128a4d9e45773f9d24fa63e3fd4d398) | setupdm.c (91c97f41bd25cf2fbada21392acdb50722cb486e) |
|---|---|
| 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 --- 18 unchanged lines hidden (view full) --- 27 PetscCall(DMSetMatrixPreallocateSkip(*dm, skip)); 28 } 29 PetscCall(DMSetMatType(*dm, mat_type)); 30 PetscCall(DMSetVecType(*dm, vec_type)); 31 32 // Set Tensor elements 33 PetscCall(PetscOptionsSetValue(NULL, "-dm_plex_simplex", "0")); 34 PetscCall(PetscOptionsSetValue(NULL, "-dm_sparse_localize", "0")); | 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 --- 18 unchanged lines hidden (view full) --- 27 PetscCall(DMSetMatrixPreallocateSkip(*dm, skip)); 28 } 29 PetscCall(DMSetMatType(*dm, mat_type)); 30 PetscCall(DMSetVecType(*dm, vec_type)); 31 32 // Set Tensor elements 33 PetscCall(PetscOptionsSetValue(NULL, "-dm_plex_simplex", "0")); 34 PetscCall(PetscOptionsSetValue(NULL, "-dm_sparse_localize", "0")); |
| 35 PetscCall(PetscOptionsSetValue(NULL, "-dm_blocking_type", "field_node")); 36 |
|
| 35 // Set CL options 36 PetscCall(DMSetFromOptions(*dm)); 37 PetscCall(DMViewFromOptions(*dm, NULL, "-dm_view")); 38 PetscFunctionReturn(PETSC_SUCCESS); 39} 40 41// Setup DM 42PetscErrorCode SetUpDM(DM dm, ProblemData *problem, PetscInt degree, PetscInt q_extra, SimpleBC bc, Physics phys) { --- 98 unchanged lines hidden --- | 37 // Set CL options 38 PetscCall(DMSetFromOptions(*dm)); 39 PetscCall(DMViewFromOptions(*dm, NULL, "-dm_view")); 40 PetscFunctionReturn(PETSC_SUCCESS); 41} 42 43// Setup DM 44PetscErrorCode SetUpDM(DM dm, ProblemData *problem, PetscInt degree, PetscInt q_extra, SimpleBC bc, Physics phys) { --- 98 unchanged lines hidden --- |