UDA: WSOLVENT

This commit is contained in:
Joakim Hove 2019-06-20 12:11:57 +02:00
parent 7a8d092c8b
commit 729dc8dbd9
2 changed files with 2 additions and 2 deletions

View File

@ -1119,7 +1119,7 @@ namespace Opm {
for( const auto& record : keyword ) {
const std::string& wellNamePattern = record.getItem("WELL").getTrimmedString(0);
const auto well_names = wellNames( wellNamePattern , currentStep);
double fraction = record.getItem("SOLVENT_FRACTION").get< double >(0);
double fraction = record.getItem("SOLVENT_FRACTION").get< UDAValue >(0).get<double>();
if (well_names.empty())
invalidNamePattern(wellNamePattern, parseContext, errors, keyword);

View File

@ -3,6 +3,6 @@
"sections" : ["SCHEDULE" ],
"items" :
[{"name" : "WELL" , "value_type" : "STRING"},
{"name" : "SOLVENT_FRACTION" , "value_type" : "DOUBLE" , "dimension" : "1"}
{"name" : "SOLVENT_FRACTION" , "value_type" : "UDA" , "dimension" : "1"}
]
}