Skip to content

Commit

Permalink
GRIDEDIT-777 Correct Clang formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
BillSenior committed Jan 23, 2024
1 parent 13e6a9c commit 17c3164
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/MeshKernelApi/tests/src/Mesh2DRefinmentTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ TEST(MeshRefinement, RefineAGridBasedOnPolygonThroughApi_OnSpericalCoordinateWit
ASSERT_EQ(3361, mesh2d.num_edges);
}


TEST(MeshRefinement, RefineGridUsingApi_CasulliRefinement_ShouldRefine)
{
// Prepare
Expand All @@ -545,17 +544,17 @@ TEST(MeshRefinement, RefineGridUsingApi_CasulliRefinement_ShouldRefine)
errorCode = meshkernelapi::mkernel_curvilinear_convert_to_mesh2d(meshKernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);

// Refine using Casulli algorithm
errorCode = meshkernelapi::mkernel_mesh2d_casulli_refinement(meshKernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);

// Get the old state
meshkernelapi::Mesh2D mesh2d{};
errorCode = mkernel_mesh2d_get_dimensions(meshKernelId, mesh2d);
// Check number of nodes and edges is correct.
EXPECT_EQ(576, mesh2d.num_nodes);
EXPECT_EQ(1104, mesh2d.num_edges);
}


class MeshRefinementSampleValueTypes : public ::testing::TestWithParam<meshkernel::InterpolationValues>
{
public:
Expand Down Expand Up @@ -589,7 +588,6 @@ TEST_P(MeshRefinementSampleValueTypes, parameters)
int interpolationType;
if (interpolationValueType == meshkernel::InterpolationValues::shortType)
{

errorCode = meshkernelapi::mkernel_get_interpolation_type_short(interpolationType);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
auto [ncols, nrows, xllcenter, yllcenter, cellsize, nodata_value, values] = ReadAscFile<short>(TEST_FOLDER + "/data/MeshRefinementTests/gebcoIntegers.asc");
Expand Down

0 comments on commit 17c3164

Please sign in to comment.