mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove Unused Variables
While here, also include requisite headers.
This commit is contained in:
parent
8858d725a8
commit
599742feab
@ -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>{
|
||||||
@ -37,21 +44,19 @@ namespace Opm{
|
|||||||
public:
|
public:
|
||||||
FIBlackOilModel(Simulator& simulator): BlackOilModel<TypeTag>(simulator){
|
FIBlackOilModel(Simulator& simulator): BlackOilModel<TypeTag>(simulator){
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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");
|
||||||
}
|
}
|
||||||
return *intquant;
|
return *intquant;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
} // namespace Opm
|
||||||
#endif
|
#endif // FI_BLACK_OIL_MODEL_HPP
|
||||||
|
Loading…
Reference in New Issue
Block a user