Browse Source

Added missing number conversion.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
de483cd3c1
  1. 6
      src/storm-pomdp-cli/storm-pomdp.cpp

6
src/storm-pomdp-cli/storm-pomdp.cpp

@ -88,10 +88,10 @@ namespace storm {
auto const& gridSettings = storm::settings::getModule<storm::settings::modules::GridApproximationSettings>(); auto const& gridSettings = storm::settings::getModule<storm::settings::modules::GridApproximationSettings>();
typename storm::pomdp::modelchecker::ApproximatePOMDPModelchecker<ValueType>::Options options; typename storm::pomdp::modelchecker::ApproximatePOMDPModelchecker<ValueType>::Options options;
options.initialGridResolution = gridSettings.getGridResolution(); options.initialGridResolution = gridSettings.getGridResolution();
options.explorationThreshold = gridSettings.getExplorationThreshold();
options.explorationThreshold = storm::utility::convertNumber<ValueType>(gridSettings.getExplorationThreshold());
options.doRefinement = gridSettings.isRefineSet(); options.doRefinement = gridSettings.isRefineSet();
options.refinementPrecision = gridSettings.getRefinementPrecision();
options.numericPrecision = gridSettings.getNumericPrecision();
options.refinementPrecision = storm::utility::convertNumber<ValueType>(gridSettings.getRefinementPrecision());
options.numericPrecision = storm::utility::convertNumber<ValueType>(gridSettings.getNumericPrecision());
options.cacheSubsimplices = gridSettings.isCacheSimplicesSet(); options.cacheSubsimplices = gridSettings.isCacheSimplicesSet();
if (storm::NumberTraits<ValueType>::IsExact) { if (storm::NumberTraits<ValueType>::IsExact) {
if (gridSettings.isNumericPrecisionSetFromDefault()) { if (gridSettings.isNumericPrecisionSetFromDefault()) {

Loading…
Cancel
Save