-
Notifications
You must be signed in to change notification settings - Fork 44
New DIST Block (Part 1) #905
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
Conversation
… to be equal to napx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the moment just some minor changes. On the other hand, it is not clear to me if FORMAT
with a keyword different from IONS
properly sets the pdgid...
Flexible implementation, thanks a lot!
I haven't gone through the C part, though
Not sure what you mean.
Thanks. Went through and fixed the issues pointed out. |
Yes, imagine that the user requests the FORMAT for 6D-normalised coordinates. I don't think we have the place in the DIST block where pdgid is set to that of proton |
That is set in the The default value is 2212 anyway. Everything defaults to proton. |
To clarify: The |
…l variables, replacing old betrel
xv1(1:napx) = xv1(1:napx) + clo(1)*real(idz(1),fPrec) | ||
yv1(1:napx) = yv1(1:napx) + clop(1)*real(idz(1),fPrec) | ||
xv2(1:napx) = xv2(1:napx) + clo(2)*real(idz(2),fPrec) | ||
yv2(1:napx) = yv2(1:napx) + clop(2)*real(idz(2),fPrec) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the units of the clo(2) is it x'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is. The code here was moved from main_cr some time last year.
We will merge the changes made at this point even if the module needs more development. merging now makes it easier for @tpersson to work on DISTlib and use the new input parsing. The block is backwards compatible with the old DIST block, so while we develop, we will keep the new features undocumented until it's stable. |
Adding the FORMAT keyword to the DIST block with support for various column types and units. This is the first step of the DIST block upgrades preparing for linking with the dist generator library.
The format is backwards compatible with the old 14 column DIST files. If no FORMAT is specified, this file is assumed. Alternatively, the old format can be selected with the FORMAT specifier OLD_DIST.