| setuplibceed.c (91d8b1ea738b1f1e2da477a71d3db5b7a7ff033b) | setuplibceed.c (38690fecfcf11bfdf51c3082dadeac248fcdcecf) |
|---|---|
| 1// Copyright (c) 2017-2024, 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 --- 67 unchanged lines hidden (view full) --- 76 { // lumped by default 77 PC pc; 78 PetscCall(KSPGetPC(user->mass_ksp, &pc)); 79 PetscCall(PCSetType(pc, PCJACOBI)); 80 PetscCall(PCJacobiSetType(pc, PC_JACOBI_ROWSUM)); 81 PetscCall(KSPSetType(user->mass_ksp, KSPPREONLY)); 82 } 83 PetscCall(KSPSetFromOptions_WithMatCeed(user->mass_ksp, mat_mass)); | 1// Copyright (c) 2017-2024, 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 --- 67 unchanged lines hidden (view full) --- 76 { // lumped by default 77 PC pc; 78 PetscCall(KSPGetPC(user->mass_ksp, &pc)); 79 PetscCall(PCSetType(pc, PCJACOBI)); 80 PetscCall(PCJacobiSetType(pc, PC_JACOBI_ROWSUM)); 81 PetscCall(KSPSetType(user->mass_ksp, KSPPREONLY)); 82 } 83 PetscCall(KSPSetFromOptions_WithMatCeed(user->mass_ksp, mat_mass)); |
| 84 PetscCall(KSPSetFromOptions(user->mass_ksp)); | |
| 85 PetscCall(VecDestroy(&Zeros_loc)); 86 PetscCall(MatDestroy(&mat_mass)); 87 } 88 89 PetscCallCeed(ceed, CeedOperatorDestroy(&op_mass)); 90 PetscFunctionReturn(PETSC_SUCCESS); 91} 92 --- 392 unchanged lines hidden --- | 84 PetscCall(VecDestroy(&Zeros_loc)); 85 PetscCall(MatDestroy(&mat_mass)); 86 } 87 88 PetscCallCeed(ceed, CeedOperatorDestroy(&op_mass)); 89 PetscFunctionReturn(PETSC_SUCCESS); 90} 91 --- 392 unchanged lines hidden --- |