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

Bunch Example: Add Single e- Setup #1755

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jan 9, 2017

Follow-up to #1716: Adds a single e- setup with the same center as the bunch's Gaussian
cloud. Re-adds a single-particle radiation test which is less hard to maintain as the previous one.

Also adds a particleId to all particles in the Bunch example, since it is
a) useful in that test and
b) particleIds have not yet been covered by the compile suite and/or documented in examples

To Do

  • rebase after depending PRs are merged
  • RT test if it works as expected

@ax3l ax3l added component: examples PIConGPU or PMacc examples refactoring code change to improve performance or to unify a concept but does not change public API labels Jan 9, 2017
@ax3l ax3l added this to the Next Stable: 0.3.0 / 1.0.0 milestone Jan 9, 2017
@ax3l ax3l requested a review from PrometheusPi January 9, 2017 16:00
@ax3l ax3l force-pushed the topic-updateBunchIdSinglePart branch from 816f3e9 to 7fb7a3a Compare January 9, 2017 16:31
Copy link
Member

@PrometheusPi PrometheusPi left a comment

Choose a reason for hiding this comment

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

looks good to me - just one suggestion

* unit: meter */
(PMACC_C_VECTOR_DIM(float_64, simDim, sigma_SI, 6.0e-6, 6.0e-6, 6.0e-6))
); /* struct GaussianCloudParam */
return 0.0;
Copy link
Member

Choose a reason for hiding this comment

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

just for clarity could you write:

if( isStartCell )
    return 1.0;
else
    return 0.0;

Copy link
Member Author

Choose a reason for hiding this comment

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

imho, that is a question of personal preference.
since they is no code obfuscating what is happening, I will keep it that way if we do not find something more to change along.

@ax3l
Copy link
Member Author

ax3l commented Jan 11, 2017

@PrometheusPi did it create the expected radiation signature for you in both cases (bunch vs. single e-)?

@PrometheusPi
Copy link
Member

@ax3l My run time test failed for both bunch and single particle when picongpu tried to write radiation data (hdf5). I will check - might be just my setup.

@PrometheusPi
Copy link
Member

@ax3l Please adjust the walltime in the *.cfg to 5h

@PrometheusPi
Copy link
Member

@ax3l Due to the gas -> density change, there are some conflicts with this pull request. Please resolve.

@PrometheusPi
Copy link
Member

Run time test works as expected.

ax3l added 2 commits January 17, 2017 09:51
Adds a single e- setup with the same center as the bunch's Gaussian
cloud.
@ax3l ax3l force-pushed the topic-updateBunchIdSinglePart branch from 7fb7a3a to 9bd1c81 Compare January 17, 2017 08:51
@PrometheusPi PrometheusPi merged commit ef69637 into ComputationalRadiationPhysics:dev Jan 18, 2017
@ax3l ax3l deleted the topic-updateBunchIdSinglePart branch January 18, 2017 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: examples PIConGPU or PMacc examples refactoring code change to improve performance or to unify a concept but does not change public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants