SimulatorFullyImplicitOutput: added flag for async output.

This commit is contained in:
Robert Kloefkorn
2016-03-29 10:48:24 +02:00
parent 29053dc18d
commit d5c375f297
2 changed files with 12 additions and 4 deletions

View File

@@ -307,9 +307,15 @@ namespace Opm
// serial output is only done on I/O rank
if( isIORank )
{
// spawn write thread that calls eclWriter.writeTimeStepSerial
WriterCall call( *this, timer, state, wellState, substep );
std::async( std::move( call ) );
if( asyncOutput_ ) {
// spawn write thread that calls eclWriter.writeTimeStepSerial
WriterCall call( *this, timer, state, wellState, substep );
std::async( std::move( call ) );
}
else {
// just write the data to disk
writeTimeStepSerial( timer, state, wellState, substep );
}
}
}