Only write positive values to Summary file

Since production is seen as negative injection, and production rates
often are zero, negative zeros would be returned. Likewise, occasionally
numerical noise gives slightly-below-zero values which are now rounded
to be plain zeros.
This commit is contained in:
Jørgen Kvalsvik 2016-06-10 10:04:00 +02:00
parent 87e24b91b6
commit d65cf1d657

View File

@ -681,7 +681,8 @@ void Summary::add_timestep( int report_step,
duration,
es.getUnits(), sim_well,
state_well, report_step );
ecl_sum_tstep_set_from_node( tstep, node.node, val );
ecl_sum_tstep_set_from_node(
tstep, node.node, val > 0 ? val : 0.0 );
}
}
@ -706,7 +707,8 @@ void Summary::add_timestep( int report_step,
duration,
es.getUnits(), report_step,
sim_wells, state_wells );
ecl_sum_tstep_set_from_node( tstep, node.node, val );
ecl_sum_tstep_set_from_node(
tstep, node.node, val > 0 ? val : 0.0 );
}
}