mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
clang-format: Set column width to 140
* Set column width to 140 * Use c++20 * Remove redundant virtual
This commit is contained in:
@@ -24,10 +24,7 @@ public:
|
||||
: m_stub( rips::Properties::NewStub( channel ) )
|
||||
{
|
||||
}
|
||||
Status GetActiveCellProperty( rips::PropertyType propType,
|
||||
const std::string& propertyName,
|
||||
int timeStep,
|
||||
std::vector<double>* results ) const
|
||||
Status GetActiveCellProperty( rips::PropertyType propType, const std::string& propertyName, int timeStep, std::vector<double>* results ) const
|
||||
{
|
||||
rips::PropertyRequest request;
|
||||
rips::CaseRequest* requestCase = new rips::CaseRequest;
|
||||
@@ -63,7 +60,7 @@ TEST( DISABLED_RiaGrpcInterface, SoilAverage )
|
||||
for ( size_t i = 0; i < 10; ++i )
|
||||
{
|
||||
std::vector<double> results;
|
||||
Status status = client.GetActiveCellProperty( rips::PropertyType::DYNAMIC_NATIVE, "SOIL", i, &results );
|
||||
Status status = client.GetActiveCellProperty( rips::PropertyType::DYNAMIC_NATIVE, "SOIL", i, &results );
|
||||
std::cout << "Number of results: " << results.size() << std::endl;
|
||||
double sum = std::accumulate( results.begin(), results.end(), 0.0 );
|
||||
std::cout << "Avg: " << sum / static_cast<double>( results.size() ) << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user