Hi Atgerr, yes, that was the problem. After put those lines the way you said, works!
Regards, Daniel Estrela 2015-04-17 7:00 GMT-03:00 <[email protected]>: > Send Opm mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.opm-project.org/mailman/listinfo/opm > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Opm digest..." > > > Today's Topics: > > 1. Readin Eclipse file (SPE1) error - Tried to access cell > information in a grid with only dimensions (Daniel Estrela) > 2. Re: Readin Eclipse file (SPE1) error - Tried to access cell > information in a grid with only dimensions (Atgeirr Rasmussen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 16 Apr 2015 15:39:56 -0300 > From: Daniel Estrela <[email protected]> > To: [email protected] > Subject: [OPM] Readin Eclipse file (SPE1) error - Tried to access cell > information in a grid with only dimensions > Message-ID: > < > ca+t3ljw8g4nep0gkoh1anxs34fmuvexohrwogbunq_1ecvo...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > > we've been trying to read an Eclipse file (ODEH.DATA). We are having > problem in the very beginning. It says "Tried to access cell information in > a grid with only dimensions" > > Follow bellow the piece of code that we are using to run: > > using namespace Opm; > using namespace std; > EclipseGridConstPtr eclipsegrid; > > std::string deck_filename = "odeh2.data"; > EclipseStateConstPtr eclipseState; > Opm::DeckConstPtr deck; > ParserPtr parser(new Opm::Parser()); > deck = parser->parseFile(deck_filename); > eclipseState.reset( new EclipseState(deck)); > eclipsegrid = eclipseState->getEclipseGrid(); > GridManager gridmanager(eclipsegrid); > > > > std::ofstream vtkfile("tutorial1.vtu"); > Opm::DataMap dm; > Opm::writeVtkData(*gridmanager.c_grid(), dm, vtkfile); > > We also deleted most part of the Eclipse dataset in order to keep just the > grid part. > > We appreciate your help > > > Follow bellow the Eclipse Data set: > > > RUNSPEC > TITLE > ODEH PROBLEM - IMPLICIT OPTION - 1200 DAYS > > DIMENS > 10 10 3 / > -- > -- NONNC > -- > OIL > -- > WATER > -- > GAS > > GRID ================================================================ > > DX 300*1000 / > DY 300*1000 / > DZ 100*20 100*30 100*50 / > > > TOPS 100*8325 / > > PORO 300*0.3 / > > PERMX 100*500 100*50 100*200 / > PERMY 100*500 100*50 100*200 / > PERMZ 100*500 100*50 100*200 / > > > > PROPS =============================================================== > > END > > Regards, > Daniel Estrela > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://www.opm-project.org/pipermail/opm/attachments/20150416/7ae5eda7/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Fri, 17 Apr 2015 09:04:35 +0000 > From: Atgeirr Rasmussen <[email protected]> > To: OPM Mailing List <[email protected]> > Subject: Re: [OPM] Readin Eclipse file (SPE1) error - Tried to access > cell information in a grid with only dimensions > Message-ID: <[email protected]> > Content-Type: text/plain; charset="us-ascii" > > Hi! > > The problem with your deck is as follows: the rules state that everything > after a keyword on the same line (or rather, after position 8 on that line) > is ignored. > > So to our input parser your deck looks incorrect. If you put in a newline > after DX, DY, DZ and all the other keywords (so that they are alone on the > line) > it should work: > > DX > 300*1000 / > (etc.) > > Please tell us if you are successful! > > Atgeirr > > > 16. apr. 2015 kl. 20:39 skrev Daniel Estrela <[email protected]>: > > > Hi, > > > > we've been trying to read an Eclipse file (ODEH.DATA). We are having > problem in the very beginning. It says "Tried to access cell information in > a grid with only dimensions" > > > > Follow bellow the piece of code that we are using to run: > > > > using namespace Opm; > > using namespace std; > > EclipseGridConstPtr eclipsegrid; > > > > std::string deck_filename = "odeh2.data"; > > EclipseStateConstPtr eclipseState; > > Opm::DeckConstPtr deck; > > ParserPtr parser(new Opm::Parser()); > > deck = parser->parseFile(deck_filename); > > eclipseState.reset( new EclipseState(deck)); > > eclipsegrid = eclipseState->getEclipseGrid(); > > GridManager gridmanager(eclipsegrid); > > > > > > > > std::ofstream vtkfile("tutorial1.vtu"); > > Opm::DataMap dm; > > Opm::writeVtkData(*gridmanager.c_grid(), dm, vtkfile); > > > > We also deleted most part of the Eclipse dataset in order to keep just > the grid part. > > > > We appreciate your help > > > > > > Follow bellow the Eclipse Data set: > > > > > > RUNSPEC > > TITLE > > ODEH PROBLEM - IMPLICIT OPTION - 1200 DAYS > > > > DIMENS > > 10 10 3 / > > -- > > -- NONNC > > -- > > OIL > > -- > > WATER > > -- > > GAS > > > > GRID ================================================================ > > > > DX 300*1000 / > > DY 300*1000 / > > DZ 100*20 100*30 100*50 / > > > > > > TOPS 100*8325 / > > > > PORO 300*0.3 / > > > > PERMX 100*500 100*50 100*200 / > > PERMY 100*500 100*50 100*200 / > > PERMZ 100*500 100*50 100*200 / > > > > > > > > PROPS =============================================================== > > > > END > > > > Regards, > > Daniel Estrela > > _______________________________________________ > > Opm mailing list > > [email protected] > > http://www.opm-project.org/mailman/listinfo/opm > > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Opm mailing list > [email protected] > http://www.opm-project.org/mailman/listinfo/opm > > > ------------------------------ > > End of Opm Digest, Vol 31, Issue 3 > ********************************** >
_______________________________________________ Opm mailing list [email protected] http://www.opm-project.org/mailman/listinfo/opm
