Use C++ explicit default initialization.

Avoids warning from -Wmissing-field-initializers.
This commit is contained in:
Atgeirr Flø Rasmussen 2015-02-17 10:24:03 +01:00
parent 0895eb37e6
commit dcc9fe5f41
2 changed files with 2 additions and 2 deletions

View File

@ -1082,7 +1082,7 @@ void EclipseWriter::writeTimeStep(const SimulatorTimerInterface& timer,
}
{
ecl_rsthead_type rsthead_data = { 0 };
ecl_rsthead_type rsthead_data = {};
rsthead_data.sim_time = timer.currentPosixTime();
rsthead_data.nactive = numCells_;
rsthead_data.nx = cartesianSize_[0];

View File

@ -119,7 +119,7 @@ namespace Opm
rst_file = ecl_rst_file_open_write( filename );
{
ecl_rsthead_type rsthead_data = { 0 };
ecl_rsthead_type rsthead_data = {};
const int num_wells = 0;
const int niwelz = 0;