clang-format : Set PenaltyBreakAssignment to 130

This commit is contained in:
Magne Sjaastad
2019-11-04 15:08:09 +01:00
parent 7c8cf60dba
commit 57cab2457e
105 changed files with 596 additions and 711 deletions

View File

@@ -49,15 +49,12 @@ TEST( RiaCellDividingTools, flowDistanceCubicMainCell_AreaPointInCenter )
double dist = RiaCellDividingTools::computeFlowDistance( mainCellCorners, point );
double expectedDist = ( ( cvf::Vec3d( 12.5, 12.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 17.5, 12.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 17.5, 17.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 12.5, 17.5 ) - point ).length() +
( cvf::Vec3d( 17.5, 12.5, 17.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 17.5 ) - point ).length() +
( cvf::Vec3d( 17.5, 17.5, 17.5 ) - point ).length() ) /
8;
double expectedDist =
( ( cvf::Vec3d( 12.5, 12.5, 12.5 ) - point ).length() + ( cvf::Vec3d( 17.5, 12.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 12.5 ) - point ).length() + ( cvf::Vec3d( 17.5, 17.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 12.5, 17.5 ) - point ).length() + ( cvf::Vec3d( 17.5, 12.5, 17.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 17.5 ) - point ).length() + ( cvf::Vec3d( 17.5, 17.5, 17.5 ) - point ).length() ) /
8;
EXPECT_NEAR( expectedDist, dist, 1e-6 );
}
@@ -72,15 +69,12 @@ TEST( RiaCellDividingTools, flowDistanceCubicMainCell_AreaPointNearCorner )
double dist = RiaCellDividingTools::computeFlowDistance( mainCellCorners, point );
double expectedDist = ( ( cvf::Vec3d( 12.5, 12.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 17.5, 12.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 17.5, 17.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 12.5, 17.5 ) - point ).length() +
( cvf::Vec3d( 17.5, 12.5, 17.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 17.5 ) - point ).length() +
( cvf::Vec3d( 17.5, 17.5, 17.5 ) - point ).length() ) /
8;
double expectedDist =
( ( cvf::Vec3d( 12.5, 12.5, 12.5 ) - point ).length() + ( cvf::Vec3d( 17.5, 12.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 12.5 ) - point ).length() + ( cvf::Vec3d( 17.5, 17.5, 12.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 12.5, 17.5 ) - point ).length() + ( cvf::Vec3d( 17.5, 12.5, 17.5 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 17.5 ) - point ).length() + ( cvf::Vec3d( 17.5, 17.5, 17.5 ) - point ).length() ) /
8;
EXPECT_NEAR( expectedDist, dist, 1e-6 );
}
@@ -95,15 +89,12 @@ TEST( RiaCellDividingTools, flowDistanceHighMainCell_AreaPointNearLowerCorner )
double dist = RiaCellDividingTools::computeFlowDistance( mainCellCorners, point );
double expectedDist = ( ( cvf::Vec3d( 12.5, 12.5, 35 ) - point ).length() +
( cvf::Vec3d( 17.5, 12.5, 35 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 35 ) - point ).length() +
( cvf::Vec3d( 17.5, 17.5, 35 ) - point ).length() +
( cvf::Vec3d( 12.5, 12.5, 85 ) - point ).length() +
( cvf::Vec3d( 17.5, 12.5, 85 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 85 ) - point ).length() +
( cvf::Vec3d( 17.5, 17.5, 85 ) - point ).length() ) /
8;
double expectedDist =
( ( cvf::Vec3d( 12.5, 12.5, 35 ) - point ).length() + ( cvf::Vec3d( 17.5, 12.5, 35 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 35 ) - point ).length() + ( cvf::Vec3d( 17.5, 17.5, 35 ) - point ).length() +
( cvf::Vec3d( 12.5, 12.5, 85 ) - point ).length() + ( cvf::Vec3d( 17.5, 12.5, 85 ) - point ).length() +
( cvf::Vec3d( 12.5, 17.5, 85 ) - point ).length() + ( cvf::Vec3d( 17.5, 17.5, 85 ) - point ).length() ) /
8;
EXPECT_NEAR( expectedDist, dist, 1e-6 );
}