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
_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm