Use C++ explicit default initialization.
Avoids warning from -Wmissing-field-initializers.
This commit is contained in:
parent
0895eb37e6
commit
dcc9fe5f41
@ -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.sim_time = timer.currentPosixTime();
|
||||||
rsthead_data.nactive = numCells_;
|
rsthead_data.nactive = numCells_;
|
||||||
rsthead_data.nx = cartesianSize_[0];
|
rsthead_data.nx = cartesianSize_[0];
|
||||||
|
@ -119,7 +119,7 @@ namespace Opm
|
|||||||
rst_file = ecl_rst_file_open_write( filename );
|
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 num_wells = 0;
|
||||||
const int niwelz = 0;
|
const int niwelz = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user