OPM / opm-output

This repository is intended for output-writer functionality for the flow simulators in OPM
http://www.opm-project.org
GNU General Public License v3.0
3 stars 21 forks source link

Added possiblity: writing integer fields to INIT files. #216

Closed stefoss23 closed 6 years ago

stefoss23 commented 7 years ago

An extra argument of type std::map has been added to EclipseIO::writeInitial:

void EclipseIO::writeInitial( data::Solution simProps, std::map<std::string, std::vector<int> > map, const NNC& nnc)

All entries in map will be written to INIT file in ecl keyword format.

joakim-hove commented 7 years ago

jenkins build this with downstreams opm-parser=1154 please

blattms commented 7 years ago

Please try to compile this with OPM/opm-simulators#1336

joakim-hove commented 7 years ago

I am deeply sorry - I have misguided regarding vector sizes in this PR. Instead of forcing the output vectors to have nx*ny*nzelements the writeInit( ) method should just pass the integer data directly through to the INIT file - whatever size.

Sorry about the mess.

joakim-hove commented 6 years ago

jenkins build this with downstreams opm-simulators=1336 please

blattms commented 6 years ago

So for slow thinkers like me: How long does the integer vector has to be?

joakim-hove commented 6 years ago

Now - fully unregulated.

blattms commented 6 years ago

meaning either number of active cells or number of all cartesian cells (dims[0]dims[1]dims[2]).