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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user