Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResdataGrav.add_survey_FIP will segfault if add_std_density is not called for corresponding pvtnum #961

Open
eivindjahren opened this issue Apr 9, 2024 · 0 comments
Labels

Comments

@eivindjahren
Copy link
Collaborator

eivindjahren commented Apr 9, 2024

The following works fine

            init = ResdataFile(init_file)

            grav = ResdataGrav(grid, init)

            restart_file = ResdataFile(unrst_file)
            restart_view = restart_file.restartView(sim_time=datetime.date(2000, 1, 1))

            grav.add_std_density(1, 0, 0.5)
            grav.add_survey_FIP("fip", restart_view)

however, omitting add_std_density will segfault on the following line:

grav_phase->fluid_mass[iactive] = fip * std_density[pvtnum];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant