clang-format: Set column width to 140

* Set column width to 140
* Use c++20
* Remove redundant virtual
This commit is contained in:
Magne Sjaastad
2023-02-26 10:48:40 +01:00
parent 2bf3a511fe
commit 42b901ec28
1535 changed files with 10456 additions and 19398 deletions

View File

@@ -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;