mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
writeECLData: avoid unnecessary temporary
This commit is contained in:
parent
301f01eb41
commit
a7740a3ef4
@ -54,7 +54,7 @@ namespace {
|
||||
createIntehead(const int nx, const int ny, const int nz, const int nactive,
|
||||
const time_t time_stamp)
|
||||
{
|
||||
const auto ih = ::Opm::RestartIO::InteHEAD{}
|
||||
return ::Opm::RestartIO::InteHEAD{}
|
||||
.dimensions (nx, ny, nz)
|
||||
.numActive (nactive)
|
||||
.unitConventions (Opm::UnitSystem::newMETRIC())
|
||||
@ -62,9 +62,8 @@ namespace {
|
||||
.wellTableDimensions({ 0, 0, 0, 0, 0, 0, 0 })
|
||||
.calendarDate (timeStamp(time_stamp))
|
||||
.activePhases (phases())
|
||||
.variousParam (201702, 100);
|
||||
|
||||
return ih.data();
|
||||
.variousParam (201702, 100)
|
||||
.data();
|
||||
}
|
||||
|
||||
std::vector<double>
|
||||
@ -82,10 +81,9 @@ namespace {
|
||||
>(start), dur
|
||||
};
|
||||
|
||||
const auto dh = ::Opm::RestartIO::DoubHEAD{}
|
||||
.timeStamp(ts);
|
||||
|
||||
return dh.data();
|
||||
return ::Opm::RestartIO::DoubHEAD{}
|
||||
.timeStamp(ts)
|
||||
.data();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user