writeInitial(): Don't Copy 'int_data' Unnecessarily

The object does potentially hold multiple grid-sized vectors and we
already have a copy on entry into the function.  We can use move().
This commit is contained in:
Bård Skaflestad
2019-06-19 19:56:15 +02:00
parent fa37250446
commit 281f701f27

View File

@@ -479,7 +479,7 @@ void EclipseIO::writeInitial( data::Solution simProps, std::map<std::string, std
simProps.convertFromSI( es.getUnits() );
if( ioConfig.getWriteINITFile() )
this->impl->writeINITFile( simProps , int_data, nnc );
this->impl->writeINITFile( simProps , std::move(int_data), nnc );
if( ioConfig.getWriteEGRIDFile( ) )
this->impl->writeEGRIDFile( nnc );