Skip to content

Commit 7fadf06

Browse files
committed
Minor tidying
Include guards, header includes.
1 parent 9feb293 commit 7fadf06

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

include/bout/petsc_operators.hxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#pragma once
2+
3+
#ifndef BOUT_PETSC_OPERATORS_H
4+
#define BOUT_PETSC_OPERATORS_H
5+
16
#include "bout/build_defines.hxx"
27

38
#if BOUT_HAS_PETSC
@@ -1055,4 +1060,6 @@ private:
10551060

10561061
#warning PETSc not available. No PetscOperators.
10571062

1058-
#endif
1063+
#endif // BOUT_HAS_PETSC
1064+
1065+
#endif //BOUT_PETSC_OPERATORS_H

tests/unit/mesh/test_petsc_operators.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include "bout/array.hxx"
88
#include "bout/bout_types.hxx"
99
#include "bout/output.hxx"
10-
#include "bout/output_bout_types.hxx"
1110
#include "bout/petsc_operators.hxx"
1211
#include "bout/region.hxx"
1312

tests/unit/mesh/test_petsc_operators_extract_evolving_submatrix.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "bout/array.hxx"
88
#include "bout/bout_types.hxx"
9+
#include "bout/globals.hxx"
910
#include "bout/petsc_operators.hxx"
1011
#include "bout/region.hxx"
1112

0 commit comments

Comments
 (0)