From 18613b9c7b15b233f0f382c0edaffc075601e320 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 17 Sep 2015 15:46:56 +0200 Subject: [PATCH] Make flow_solvent run when SOLVENT is not specified --- opm/autodiff/SolventPropsAdFromDeck.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/opm/autodiff/SolventPropsAdFromDeck.cpp b/opm/autodiff/SolventPropsAdFromDeck.cpp index aac5a8681..d8bb70b6a 100644 --- a/opm/autodiff/SolventPropsAdFromDeck.cpp +++ b/opm/autodiff/SolventPropsAdFromDeck.cpp @@ -36,9 +36,10 @@ SolventPropsAdFromDeck::SolventPropsAdFromDeck(DeckConstPtr deck, const int number_of_cells, const int* global_cell) { - // retrieve the cell specific PVT table index from the deck - // and using the grid... - extractPvtTableIndex(cellPvtRegionIdx_, deck, number_of_cells, global_cell); + if (deck->hasKeyword("SOLVENT")) { + // retrieve the cell specific PVT table index from the deck + // and using the grid... + extractPvtTableIndex(cellPvtRegionIdx_, deck, number_of_cells, global_cell); // surface densities if (deck->hasKeyword("SDENSITY")) {