Skip to content

Commit

Permalink
Apply clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree authored and github-actions[bot] committed Nov 7, 2024
1 parent 91821ea commit 0d413f4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/bout/field3d.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ void checkData(const Field3D& f, const std::string& region = "RGN_NOBNDRY");
/// Ignored with disabled CHECK; Throw an exception if \p f is not
/// allocated or if any elements are non-finite (for CHECK > 2)
inline void checkData(const Field3D& UNUSED(f),
const std::string& UNUSED(region) = "RGN_NOBNDRY") {};
const std::string& UNUSED(region) = "RGN_NOBNDRY"){};
#endif

/// Fourier filtering, removes all except one mode
Expand Down
4 changes: 2 additions & 2 deletions include/bout/utils.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#include <list>
#include <memory>
#include <set>
#include <string>
#include <sstream>
#include <string>

#ifdef _MSC_VER
// finite is not actually standard C++, it's a BSD extention for C
Expand Down Expand Up @@ -544,7 +544,7 @@ inline void checkData(BoutReal f) {
}
#else
/// Ignored with disabled CHECK; Throw an exception if \p f is not finite
inline void checkData(BoutReal UNUSED(f)) {};
inline void checkData(BoutReal UNUSED(f)){};
#endif

/*!
Expand Down
2 changes: 1 addition & 1 deletion src/physics/physicsmodel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
#include <bout/physicsmodel.hxx>
#undef BOUT_NO_USING_NAMESPACE_BOUTGLOBALS

#include "bout/version.hxx"
#include <bout/mesh.hxx>
#include <bout/sys/timer.hxx>
#include <bout/vector2d.hxx>
#include <bout/vector3d.hxx>
#include "bout/version.hxx"

#include <fmt/core.h>

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/include/bout/test_hypre_interface.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#include <cmath>

#include "test_extras.hxx"
#include "fake_mesh_fixture.hxx"
#include "test_extras.hxx"

#include "gmock/gmock.h"
#include "gtest/gtest.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/include/bout/test_petsc_setters.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#if BOUT_HAS_PETSC
#include "gtest/gtest.h"

#include <bout/petsclib.hxx>
#include <bout/petsc_interface.hxx>
#include <bout/petsclib.hxx>

///////////////// Test PetscMatrixElement /////////////////

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/mesh/test_coordinates.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "bout/mesh.hxx"
#include "bout/output.hxx"

#include "test_extras.hxx"
#include "fake_mesh_fixture.hxx"
#include "test_extras.hxx"

using bout::globals::mesh;

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/mesh/test_mesh.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "bout/output.hxx"
#include "bout/region.hxx"

#include "test_extras.hxx"
#include "fake_mesh.hxx"
#include "test_extras.hxx"

/// Test fixture to make sure the global mesh is our fake one
class MeshTest : public ::testing::Test {
Expand Down

0 comments on commit 0d413f4

Please sign in to comment.