UDA: WSOLVENT
This commit is contained in:
parent
7a8d092c8b
commit
729dc8dbd9
@ -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);
|
||||
|
@ -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"}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user