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

Fix bug in ReferenceState that shifted all arrays by one element if r… #113

Merged
merged 1 commit into from
Feb 5, 2019

Conversation

illorenzo7
Copy link
Contributor

…eading an older "reference" file

I messed up in my previous fix of ReferenceState; I forgot about the two ints in the beginning of the binary 'reference' file, namely sig=314 and nr. So when I closed and reopened the file when handling an exception, the float arrays started in the wrong spot, meaning each ref.radius, ref.density, etc., had their first element from the array previous. This should be fixed by this commit, which reads in two ints after the 'reference' file is opened again.

Sorry about that!

@feathern
Copy link
Contributor

feathern commented Feb 2, 2019

Just saw this -- will look this weekend.

Copy link
Contributor

@feathern feathern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this looks correct to me after a more careful read.

@feathern feathern merged commit ad04416 into geodynamics:master Feb 5, 2019
@illorenzo7 illorenzo7 deleted the fix_ReferenceState_class branch July 13, 2019 08:42
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

Successfully merging this pull request may close these issues.

2 participants