Still, we are only discussing an implementation detail. I would rather discuss 
what a useful interface would look like... And unless Joakim is in a hurry, I 
would like to resume that discussion after the OPM release...



I appreciate all the comments, but I strongly with Atgeirr that much of the 
discussion so far has been on implementation questions, as for the 
interface/use of this functionality my thought was that the parser would create 
an EclDeck instance which would present an API to the application using the 
parser, i.e. something like:





EclParser parser = new EclParser();

EclDeck deck = new EclDeck();



if (deck.load( parser  , "ECLIPSE.DATA")) {

    ....

    ....

    EclDeckKW * equil = deck.get_kw("EQUIL")

    if (equil) {

       double owc_region2 = equil.get("OWC" , 2);   <-------- As I see it the 
main challenge will

       ...                                                                      
     be to embed suffient semantic information

                                                                                
     runtime that the parser/deck can make sense

                                                                                
     out of a statement like this.

   }

}

But we are not in a hurry; discussion can resume after the OPM release. Myself 
and my new colleague Kristian will think and fiddle a bit.



Joakim







-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you
_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm

Reply via email to