-
Notifications
You must be signed in to change notification settings - Fork 226
ThomasFermi: Fix Domain Decomposition #2007
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,7 +75,11 @@ namespace ionization | |
|
|
||
| using FrameType = typename SrcSpecies::FrameType; | ||
|
|
||
| /* specify field to particle interpolation scheme */ | ||
| /** specify field to particle interpolation scheme | ||
| * | ||
| * @todo this needs to be done independently/twice if ion species (rho) and electron | ||
| * species (ene) are of different shape | ||
| */ | ||
| using Field2ParticleInterpolation = typename PMacc::traits::Resolve< | ||
| typename GetFlagType<FrameType,interpolation<> >::type | ||
| >::type; | ||
|
|
@@ -166,13 +170,20 @@ namespace ionization | |
| /* kernel call for weighted ion density calculation */ | ||
| density->template computeValue< CORE + BORDER, DensitySolver >(*srcSpecies, currentStep); | ||
| dc.releaseData( SrcSpecies::FrameType::getName() ); | ||
| EventTask densityEvent = density->asyncCommunication( __getTransactionEvent() ); | ||
| densityEvent += density->asyncCommunicationGather( densityEvent ); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for me again: the first of the two lines above gets the event of the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, this code had two bugs with regards to domain decomposition:
The first event, |
||
|
|
||
| /* load species without copying the particle data to the host */ | ||
| auto destSpecies = dc.get< DestSpecies >( DestSpecies::FrameType::getName(), true ); | ||
|
|
||
| /* kernel call for weighted electron energy density calculation */ | ||
| eneKinDens->template computeValue< CORE + BORDER, EnergyDensitySolver >(*destSpecies, currentStep); | ||
| dc.releaseData( DestSpecies::FrameType::getName() ); | ||
| EventTask eneKinEvent = eneKinDens->asyncCommunication( __getTransactionEvent() ); | ||
| eneKinEvent += eneKinDens->asyncCommunicationGather( eneKinEvent ); | ||
|
|
||
| /* contributions from neighboring GPUs to our border area */ | ||
| __setTransactionEvent( densityEvent + eneKinEvent ); | ||
|
|
||
| /* initialize device-side density- and energy density field databox pointers */ | ||
| rhoBox = density->getDeviceDataBox(); | ||
|
|
||
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.
In principle one could add another todo here
If one were to use two different atomic species they would currently each do their own density and energy calculations. Yet they would have no knowledge of each other. But of course IPD effects do not care about the species and so it remains a technical detail to be solved on how to include that. 😃
Uh oh!
There was an error while loading. Please reload this page.
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.
yep, that's a todo I have in my collisional methods, too xD
but let's keep it that way for the bugfix, feel free to add a
.. note::or.. warning::to the user docs you write right nowThere 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.
Sure sure, that's a follow-up feature and I have a hunch that it requires some careful thinking. 😆