Remove Unused Variables

While here, also include requisite headers.
This commit is contained in:
Bård Skaflestad 2023-03-27 10:46:05 +02:00
parent 8858d725a8
commit 599742feab

View File

@ -28,6 +28,13 @@
#ifndef FI_BLACK_OIL_MODEL_HPP #ifndef FI_BLACK_OIL_MODEL_HPP
#define FI_BLACK_OIL_MODEL_HPP #define FI_BLACK_OIL_MODEL_HPP
#include <opm/models/blackoil/blackoilmodel.hh>
#include <opm/models/utils/propertysystem.hh>
#include <opm/common/ErrorMacros.hpp>
#include <stdexcept>
namespace Opm{ namespace Opm{
template<typename TypeTag> template<typename TypeTag>
class FIBlackOilModel: public BlackOilModel<TypeTag>{ class FIBlackOilModel: public BlackOilModel<TypeTag>{
@ -40,12 +47,10 @@ namespace Opm{
// standard flow // standard flow
const IntensiveQuantities& intensiveQuantities(unsigned globalIdx, unsigned timeIdx) const{ const IntensiveQuantities& intensiveQuantities(unsigned globalIdx, unsigned timeIdx) const{
const auto& primaryVars = this->solution(timeIdx);
const auto& problem = this->simulator_.problem();
const auto intquant = this->cachedIntensiveQuantities(globalIdx, timeIdx);
if (!this->enableIntensiveQuantityCache_){ if (!this->enableIntensiveQuantityCache_){
OPM_THROW(std::logic_error, "Run without intentive quantites not enabled: Use --enable-intensive-quantity=true"); OPM_THROW(std::logic_error, "Run without intensive quantites not enabled: Use --enable-intensive-quantity=true");
} }
const auto* intquant = this->cachedIntensiveQuantities(globalIdx, timeIdx);
if(!intquant){ if(!intquant){
OPM_THROW(std::logic_error, "Intensive quantites need to be updated in code"); OPM_THROW(std::logic_error, "Intensive quantites need to be updated in code");
} }
@ -53,5 +58,5 @@ namespace Opm{
} }
}; };
} } // namespace Opm
#endif #endif // FI_BLACK_OIL_MODEL_HPP