Fix typo in welspecs proto file

This commit is contained in:
Magne Sjaastad committed 2025-11-20 13:52:58 +01:00
1 parent 1039fa54c4
commit 8c473b8a63
4 files changed
+5 -5

No files matched your search

@@ -296,8 +296,8 @@ TEST( RiaGrpcWellPathServiceTest, copyWelsegsToGrpcCopiesAllFields )
EXPECT_TRUE( headerEntry.has_wellbore_volume() );
EXPECT_DOUBLE_EQ( headerEntry.wellbore_volume(), 0.5 );
EXPECT_EQ( headerEntry.info_type(), "ABS" );
EXPECT_TRUE( headerEntry.has_pressure_omponents() );
EXPECT_EQ( headerEntry.pressure_omponents(), "HFA" );
EXPECT_TRUE( headerEntry.has_pressure_components() );
EXPECT_EQ( headerEntry.pressure_components(), "HFA" );
EXPECT_TRUE( headerEntry.has_flow_model() );
EXPECT_EQ( headerEntry.flow_model(), "HO" );
@@ -62,7 +62,7 @@ message SimulatorWelsegsHeaderEntry {
double top_length = 3;
optional double wellbore_volume = 4;
string info_type = 5;
optional string pressure_omponents = 6;
optional string pressure_components = 6;
optional string flow_model = 7;
}
@@ -100,7 +100,7 @@ for well in wells:
txt += str(header.top_length) + " "
txt += fieldValueOrDefaultText(header, "wellbore_volume") + " "
txt += header.info_type + " "
txt += fieldValueOrDefaultText(header, "pressure_omponents") + " "
txt += fieldValueOrDefaultText(header, "pressure_components") + " "
txt += fieldValueOrDefaultText(header, "flow_model")
print(txt)
@@ -127,7 +127,7 @@ void RiaWellPathDataToGrpcConverter::copyWelsegsToGrpc( const RigMswTableData&
headerEntry->set_info_type( welsegsHeader.infoType );
if ( welsegsHeader.pressureComponents.has_value() )
{
headerEntry->set_pressure_omponents( welsegsHeader.pressureComponents.value() );
headerEntry->set_pressure_components( welsegsHeader.pressureComponents.value() );
}
if ( welsegsHeader.flowModel.has_value() )
{