opm-simulators icon indicating copy to clipboard operation
opm-simulators copied to clipboard

Errors in building opm-common

Open Rasha-Moussaoui opened this issue 2 years ago • 13 comments

Upon building from the source, I got the below error message

2

then I uninstalled the previously downloaded flow simulator from the binary [packages and retried to build the simulator, it gave the below error message. How can we fix this

1

Rasha-Moussaoui avatar Sep 18 '23 08:09 Rasha-Moussaoui

How much memory does your virtual machine have? For what it's worth, Summary.cpp is rather large and you might be running out of memory for the cc1plus process.

bska avatar Sep 18 '23 08:09 bska

It was 2 GB, I changed it to 16 GB and retried building and it worked! Thanks

Rasha-Moussaoui avatar Sep 18 '23 11:09 Rasha-Moussaoui

It was 2 GB, I changed it to 16 GB and retried building and it worked!

Very good. Please close the issue if you're satisfied that the problem has been resolved.

bska avatar Sep 18 '23 11:09 bska

one more thing please. I gave the full path to the Flow executable but got this, what do you recommend

3 4

Rasha-Moussaoui avatar Sep 19 '23 08:09 Rasha-Moussaoui

unlike windows systems the current directory is not in the path. you have to use ./flow to run the binary in current directory.

akva2 avatar Sep 19 '23 08:09 akva2

what am I doing wrong? 5 6

Rasha-Moussaoui avatar Sep 19 '23 09:09 Rasha-Moussaoui

from the looks of it, nothing except giving the wrong path to the data case.

~Desktop 

is the home directory of the 'Desktop' user.

~/Desktop

is the Desktop folder in your home folder.

akva2 avatar Sep 19 '23 09:09 akva2

also i would do it the other way around

cd ~/Desktop/opm-data/spe1
~/Desktop/project/opm-simulators/build/bin/flow SPE1CASE1.DATA

akva2 avatar Sep 19 '23 09:09 akva2

Thank you so much! It worked!

Rasha-Moussaoui avatar Sep 19 '23 09:09 Rasha-Moussaoui

when trying to use the ecl_summary, it says the command not found, how I can resolve this

Rasha-Moussaoui avatar Sep 19 '23 16:09 Rasha-Moussaoui

when trying to use the ecl_summary, it says the command not found, how I can resolve this

That depends greatly on the specifics of what you're trying to accomplish. If you're trying to generate a table of numbers for humans, we have the summary utility which, apart from a few minor differences in the column headings is a drop-in replacement for ecl_summary. If you're trying to plot selected curves there is either ResInsight or qsummary. If you're trying to import result curves into an analysis engine you may want to look into the Python bindings.

In short, unless you tell us what you're trying to accomplish we can't really give any specific advice.

bska avatar Sep 19 '23 16:09 bska

I was trying to apply the tutorial of SPE1 case on the website

WhatsApp Image 2023-09-19 at 8 08 00 PM

Rasha-Moussaoui avatar Sep 19 '23 17:09 Rasha-Moussaoui

Yeah, I am afraid that tutorial page is outdated.

As part of the opm-common build you got a program called 'summary', likely

~/Desktop/project/opm-common/build/bin/summary

this can do the listing and table generation equivalent to the referenced ecl_summary, e.g.

~/Desktop/project/opm-common/build/bin/summary SPE1CASE WBHP:INJ WGIR:INJ WBHP:PROD WOPR:PROD WGPR:PROD

As for plotting there is either qsummary or resinsight as @bska mentioned above. They are both superior to the old summary_plot script.

akva2 avatar Sep 19 '23 18:09 akva2