Added comment about header/data for each timestep
We would like to build up and write the header only once (with ecl_sum_fwrite_smspec) and then the data for each timestep (with ecl_sum_fwrite_step), but since the data attach to the summary object and so does the header, how do we keep the header in memory without also accumulating all the data?
This commit is contained in:
@@ -927,6 +927,11 @@ void EclipseWriter::writeTimeStep(
|
||||
}
|
||||
|
||||
/* Summary variables (well reporting) */
|
||||
// TODO: instead of writing the header (smspec) every time, it should
|
||||
// only be written when there is a change in the well configuration
|
||||
// (first timestep, in practice), and reused later. but how to do this
|
||||
// without keeping the complete summary in memory (which will then
|
||||
// accumulate all the timesteps)?
|
||||
EclipseSummary sum (outputDir_, baseName_, timer, *parser_);
|
||||
sum.addWells (*parser_, uses_);
|
||||
sum.writeTimeStep (timer, wellState);
|
||||
|
||||
Reference in New Issue
Block a user