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

Segmentation fault (core dumped) issue when Reading hdf5 files #196

Open
thegiantspaceman opened this issue Jan 3, 2023 · 3 comments
Open

Comments

@thegiantspaceman
Copy link

I am using linux OS and have installed NCL using the conda install method here. I have NCL version 6.6.2 and it works fine except for the fact that it cannot read hdf5 files. To illustrate this error, below is a test script to write and then read an hdf5 file. The script is able to write to hdf5, but once it goes to read hdf5 it gives "Segmentation fault (core dumped)." How can I fix this issue?

begin
fn = "./out.hdf5"
a= (/1,2/)
;WRITE
f = addfile(fn, "c")
f->a = (/a/)
;READ
f = addfile(fn, "r")
s = f->a
end

@rbrownrigg
Copy link
Contributor

rbrownrigg commented Jan 3, 2023 via email

@thegiantspaceman
Copy link
Author

Thank you for the quick reply Rick. I added "delete(f)" before reading, but I still get the same seg fault issue. I also have tried to open an hdf5 file output from a model and I encounter the exact same error. Should I try to build NCL differently on my machine? Do you have any other suggestions?

-Reuben

@rbrownrigg
Copy link
Contributor

rbrownrigg commented Jan 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants