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

fort1 file cannot be read, mydump.f #4

Open
piu58 opened this issue May 10, 2021 · 1 comment
Open

fort1 file cannot be read, mydump.f #4

piu58 opened this issue May 10, 2021 · 1 comment

Comments

@piu58
Copy link

piu58 commented May 10, 2021

I found a mistake in mydump.f. The writing and the reading si not symmetric, so the program crashes if restarted .
In mydum.f, line 118:

    write (J) ((list(k,i),k=1,list(1,i)+2),i=1,ntot)

and line 250

    read (J) (list(1,i),(list(k,i),k=2,list(1,i)+2),i=1,ntot)

I replaced line 118 by

    write (J) (list(1,i),(list(k,i),k=2,list(1,i)+2),i=1,ntot)

and it seems to work.

@lwang-astro
Copy link
Owner

Thank you. This version of NBODY6++GPU is already out of data. Please go to https://github.com/nbodyx/Nbody6ppGPU to access the new version. This problem was already fixed in the new version. By the way, my maintainment for NBODY6++GPU has stopped. If you like, you can check my new N-body code PeTar (https://github.com/lwang-astro/PeTar)

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