mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed review comments
This commit is contained in:
parent
e1c4a73c43
commit
dedda84a2b
@ -478,7 +478,10 @@ public:
|
|||||||
void endRestart()
|
void endRestart()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
EclOutputBlackOilModule<TypeTag>& eclOutputModule() const
|
const EclOutputBlackOilModule<TypeTag>& eclOutputModule() const
|
||||||
|
{ return *eclOutputModule_; }
|
||||||
|
|
||||||
|
EclOutputBlackOilModule<TypeTag>& mutableEclOutputModule() const
|
||||||
{ return *eclOutputModule_; }
|
{ return *eclOutputModule_; }
|
||||||
|
|
||||||
Scalar restartTimeStepSize() const
|
Scalar restartTimeStepSize() const
|
||||||
@ -515,8 +518,11 @@ private:
|
|||||||
void prepareLocalCellData(const bool isSubStep,
|
void prepareLocalCellData(const bool isSubStep,
|
||||||
const int reportStepNum)
|
const int reportStepNum)
|
||||||
{
|
{
|
||||||
if( !(eclOutputModule_->localDataValid()) ){
|
|
||||||
OPM_TIMEBLOCK(prepareLocalCellData);
|
OPM_TIMEBLOCK(prepareLocalCellData);
|
||||||
|
if (eclOutputModule_->localDataValid()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const auto& gridView = simulator_.vanguard().gridView();
|
const auto& gridView = simulator_.vanguard().gridView();
|
||||||
const int numElements = gridView.size(/*codim=*/0);
|
const int numElements = gridView.size(/*codim=*/0);
|
||||||
const bool log = this->collectToIORank_.isIORank();
|
const bool log = this->collectToIORank_.isIORank();
|
||||||
@ -547,7 +553,6 @@ private:
|
|||||||
eclOutputModule_->validateLocalData();
|
eclOutputModule_->validateLocalData();
|
||||||
OPM_END_PARALLEL_TRY_CATCH("EclWriter::prepareLocalCellData() failed: ", simulator_.vanguard().grid().comm());
|
OPM_END_PARALLEL_TRY_CATCH("EclWriter::prepareLocalCellData() failed: ", simulator_.vanguard().grid().comm());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void captureLocalFluxData()
|
void captureLocalFluxData()
|
||||||
{
|
{
|
||||||
|
@ -647,7 +647,7 @@ namespace Opm {
|
|||||||
{
|
{
|
||||||
OPM_TIMEBLOCK(invalidateAndUpdateIntensiveQuantities);
|
OPM_TIMEBLOCK(invalidateAndUpdateIntensiveQuantities);
|
||||||
ebosSimulator_.model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
|
ebosSimulator_.model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
|
||||||
ebosSimulator_.problem().eclWriter()->eclOutputModule().invalidateLocalData();
|
ebosSimulator_.problem().eclWriter()->mutableEclOutputModule().invalidateLocalData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user