mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
clang-format : Set PenaltyBreakAssignment to 130
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user