| cloptions.c (eff337b5e128a4d9e45773f9d24fa63e3fd4d398) | cloptions.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 --- 88 unchanged lines hidden (view full) --- 97 98 { 99 PetscBool option_set; 100 char amat_type[256] = ""; 101 PetscCall(PetscOptionsFList("-amat_type", "Set the type of Amat distinct from Pmat (-dm_mat_type)", NULL, MatList, amat_type, amat_type, 102 sizeof(amat_type), &option_set)); 103 if (option_set) PetscCall(PetscStrallocpy(amat_type, (char **)&app_ctx->amat_type)); 104 } | 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 --- 88 unchanged lines hidden (view full) --- 97 98 { 99 PetscBool option_set; 100 char amat_type[256] = ""; 101 PetscCall(PetscOptionsFList("-amat_type", "Set the type of Amat distinct from Pmat (-dm_mat_type)", NULL, MatList, amat_type, amat_type, 102 sizeof(amat_type), &option_set)); 103 if (option_set) PetscCall(PetscStrallocpy(amat_type, (char **)&app_ctx->amat_type)); 104 } |
| 105 PetscCall(PetscOptionsBool("-pmat_pbdiagonal", "Assemble only point-block diagonal for Pmat", NULL, app_ctx->pmat_pbdiagonal, 106 &app_ctx->pmat_pbdiagonal, NULL)); | |
| 107 108 // Provide default ceed resource if not specified 109 if (!ceed_flag) { 110 const char *ceed_resource = "/cpu/self"; 111 strncpy(app_ctx->ceed_resource, ceed_resource, 10); 112 } 113 // If we request a GPU, make sure PETSc has initialized its device (which is 114 // MPI-aware in case multiple devices are available) before CeedInit so that --- 97 unchanged lines hidden --- | 105 106 // Provide default ceed resource if not specified 107 if (!ceed_flag) { 108 const char *ceed_resource = "/cpu/self"; 109 strncpy(app_ctx->ceed_resource, ceed_resource, 10); 110 } 111 // If we request a GPU, make sure PETSc has initialized its device (which is 112 // MPI-aware in case multiple devices are available) before CeedInit so that --- 97 unchanged lines hidden --- |