Trim spaces and avoid spaces in generated address text

* Trim spaces and avoid spaces in generated address text
* Fix unit test
This commit is contained in:
Magne Sjaastad
2023-01-24 11:26:34 +01:00
committed by GitHub
parent 95f3490acd
commit c8dbf3d125
5 changed files with 12 additions and 6 deletions

View File

@@ -923,8 +923,9 @@ std::string RifEclipseSummaryAddress::baseVectorName( const std::string& vectorN
//--------------------------------------------------------------------------------------------------
std::string RifEclipseSummaryAddress::blockAsString() const
{
return std::to_string( this->cellI() ) + ", " + std::to_string( this->cellJ() ) + ", " +
std::to_string( this->cellK() );
// Avoid space in address text https://github.com/OPM/ResInsight/issues/9707
return std::to_string( this->cellI() ) + "," + std::to_string( this->cellJ() ) + "," + std::to_string( this->cellK() );
}
//--------------------------------------------------------------------------------------------------