mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-13 01:41:55 -06:00
Also query unsupported field data for the TransCalculator.
FiedlPropsManager::keys() list the FieldProperties needed by the TransCalculator, but these cannot be queried the normal way as this raises exceptions and results in a deadlock. Hence we use the new funtionality to get also the unsupported ones, by passing true to get_double_field_data.
This commit is contained in:
parent
fd2a0d8a7d
commit
abff765c1d
@ -118,7 +118,10 @@ public:
|
||||
|
||||
for (const auto& doubleKey : m_doubleKeys)
|
||||
{
|
||||
const auto& fieldData = globalProps.get_double_field_data(doubleKey);
|
||||
// We need to allow unsupported keywords to get the data
|
||||
// for TranCalculator, too.
|
||||
const auto& fieldData = globalProps.get_double_field_data(doubleKey,
|
||||
/* allow_unsupported = */ true);
|
||||
data.push_back(std::make_pair(fieldData.data[index],
|
||||
static_cast<unsigned char>(fieldData.value_status[index])));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user