OPM / opm-simulators

OPM Flow and experimental simulators, including components such as well models etc.
http://www.opm-project.org
GNU General Public License v3.0
124 stars 122 forks source link

Errors in building opm-common #4875

Open Rasha-Moussaoui opened 1 year ago

Rasha-Moussaoui commented 1 year ago

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

bska commented 1 year ago

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.

Rasha-Moussaoui commented 1 year ago

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

bska commented 1 year ago

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.

Rasha-Moussaoui commented 1 year ago

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

3 4

akva2 commented 1 year ago

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

Rasha-Moussaoui commented 1 year ago

what am I doing wrong? 5 6

akva2 commented 1 year ago

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 commented 1 year ago

also i would do it the other way around

cd ~/Desktop/opm-data/spe1
~/Desktop/project/opm-simulators/build/bin/flow SPE1CASE1.DATA
Rasha-Moussaoui commented 1 year ago

Thank you so much! It worked!

Rasha-Moussaoui commented 1 year ago

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

bska commented 1 year ago

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.

Rasha-Moussaoui commented 1 year ago

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

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

akva2 commented 1 year ago

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.