Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

vkbo
Copy link
Member

@vkbo vkbo commented Jul 5, 2019

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.

@vkbo vkbo marked this pull request as ready for review July 9, 2019 16:25
@vkbo vkbo requested review from amereghe, rdemaria and tpersson July 9, 2019 16:25
@vkbo vkbo changed the title Dist Updates New DIST Block (Part 1) Jul 9, 2019
@vkbo vkbo changed the title New DIST Block (Part 1) [WIP] New DIST Block (Part 1) Jul 11, 2019
Copy link
Contributor

@amereghe amereghe left a 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

@vkbo
Copy link
Member Author

vkbo commented Jul 11, 2019

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...

Not sure what you mean. PDGID is available as a column format and also automatically included with IONS.

Flexible implementation, thanks a lot!

I haven't gone through the C part, though

Thanks. Went through and fixed the issues pointed out.
There is no C part to this module.

@amereghe
Copy link
Contributor

Not sure what you mean. PDGID is available as a column format and also automatically included with IONS.

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

@vkbo
Copy link
Member Author

vkbo commented Jul 11, 2019

Not sure what you mean. PDGID is available as a column format and also automatically included with IONS.

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 SIMU block, or if the old blocks are used, it belongs in the HION block.

The default value is 2212 anyway. Everything defaults to proton.

@vkbo
Copy link
Member Author

vkbo commented Jul 11, 2019

To clarify: The pdgid array defaults to pdgid0, which again defaults to 2212. All of this is set in common_modules.f90.

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)
Copy link
Contributor

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'?

Copy link
Member Author

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.

@vkbo vkbo changed the title [WIP] New DIST Block (Part 1) New DIST Block (Part 1) Jul 31, 2019
@vkbo
Copy link
Member Author

vkbo commented Jul 31, 2019

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.

@vkbo vkbo merged commit ec70047 into SixTrack:master Jul 31, 2019
@vkbo vkbo deleted the dist_updates branch August 1, 2019 08:17
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.

4 participants