Skip to content

Commit 156bd56

Browse files
lindsayadloganharbour
authored andcommitted
Fix LibmeshPetscCall macros
Refs [idaholab#29817](idaholab#29817)
1 parent d5d495b commit 156bd56

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

modules/subchannel/src/problems/InterWrapper1PhaseProblem.C

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@ formFunctionIW(SNES, Vec x, Vec f, void * info)
3434

3535
PetscFunctionBegin;
3636
problemInfo * cc = static_cast<problemInfo *>(info);
37-
LibmeshPetscCall(VecGetSize(x, &size));
37+
LibmeshPetscCallQ(VecGetSize(x, &size));
3838

3939
libMesh::DenseVector<Real> solution_seed(size, 0.0);
40-
LibmeshPetscCall(VecGetArrayRead(x, &xx));
40+
LibmeshPetscCallQ(VecGetArrayRead(x, &xx));
4141
for (PetscInt i = 0; i < size; i++)
4242
solution_seed(i) = xx[i];
4343

44-
LibmeshPetscCall(VecRestoreArrayRead(x, &xx));
44+
LibmeshPetscCallQ(VecRestoreArrayRead(x, &xx));
4545

4646
libMesh::DenseVector<Real> Wij_residual_vector =
4747
cc->schp->residualFunction(cc->iblock, solution_seed);
4848

49-
LibmeshPetscCall(VecGetArray(f, &ff));
49+
LibmeshPetscCallQ(VecGetArray(f, &ff));
5050
for (int i = 0; i < size; i++)
5151
ff[i] = Wij_residual_vector(i);
5252

53-
LibmeshPetscCall(VecRestoreArray(f, &ff));
53+
LibmeshPetscCallQ(VecRestoreArray(f, &ff));
5454
PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
5555
}
5656

modules/subchannel/src/problems/SubChannel1PhaseProblem.C

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ formFunction(SNES, Vec x, Vec f, void * ctx)
3232

3333
PetscFunctionBegin;
3434
Ctx * cc = static_cast<Ctx *>(ctx);
35-
LibmeshPetscCall(VecGetSize(x, &size));
35+
LibmeshPetscCallQ(VecGetSize(x, &size));
3636

3737
libMesh::DenseVector<Real> solution_seed(size, 0.0);
38-
LibmeshPetscCall(VecGetArrayRead(x, &xx));
38+
LibmeshPetscCallQ(VecGetArrayRead(x, &xx));
3939
for (PetscInt i = 0; i < size; i++)
4040
solution_seed(i) = xx[i];
4141

42-
LibmeshPetscCall(VecRestoreArrayRead(x, &xx));
42+
LibmeshPetscCallQ(VecRestoreArrayRead(x, &xx));
4343

4444
libMesh::DenseVector<Real> Wij_residual_vector =
4545
cc->schp->residualFunction(cc->iblock, solution_seed);
4646

47-
LibmeshPetscCall(VecGetArray(f, &ff));
47+
LibmeshPetscCallQ(VecGetArray(f, &ff));
4848
for (int i = 0; i < size; i++)
4949
ff[i] = Wij_residual_vector(i);
5050

51-
LibmeshPetscCall(VecRestoreArray(f, &ff));
51+
LibmeshPetscCallQ(VecRestoreArray(f, &ff));
5252
PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
5353
}
5454

0 commit comments

Comments
 (0)