???
This commit is contained in:
@@ -64,13 +64,14 @@ namespace Opm {
|
||||
DeckItemConstPtr ParserIntItem::scan(RawRecordPtr rawRecord) const {
|
||||
DeckIntItemPtr deckItem(new DeckIntItem(name()));
|
||||
int defaultValue = m_default;
|
||||
|
||||
if (sizeType() == ALL) { // This can probably not be combined with a default value ....
|
||||
// The '*' should be interpreted as a multiplication sign
|
||||
while (rawRecord->size() > 0) {
|
||||
std::string token = rawRecord->pop_front();
|
||||
if (tokenContainsStar( token )) {
|
||||
StarToken<int> st(token);
|
||||
int value = defaultValue;
|
||||
int value = defaultValue; // This probably does never apply
|
||||
if (st.hasValue())
|
||||
value = st.value();
|
||||
deckItem->push_backMultiple( value , st.multiplier() );
|
||||
|
||||
Reference in New Issue
Block a user