[BG fields] Add refactored TWTS laser#704
Conversation
|
The 2D case is currently not passing. |
|
thank you for the pull request 👍 Have a good weekend! :) |
|
Above fix is very dirty 🙈 . Suggestions on improvements, without resorting to pre-compiler directives, are welcome 😇 . |
|
Nice! |
|
it's still a bit hard to review due to the missing rebase against the merged complex pull and the huge number of single commits. I will try a first swipe, but no guarantee :) |
There was a problem hiding this comment.
since you return the result in SI pls use float3_64 here, too.
There was a problem hiding this comment.
Since the result is a normalized quantity the datatype is correct, but I renamed the function.
7ebe4b9 to
cfbe35a
Compare
|
Pull request repository is rebased. (Not just rebased, but the history is cleaner now.) |
a715496 to
264b416
Compare
|
In addition to your suggestions I further cleaned up code and interface. Now the code precision can be changed on an individual basis and the coordinate normalization should make it possible now to use the speedier float_X datatype. Since this round of refactoring has now ended, please go ahead with the review and hack this to pieces! 😄 |
|
sounds great, we will have a look! ✨ |
There was a problem hiding this comment.
@BeyondEspresso you have become a very gentle developer in a steep curve, I like that! Nice and clean. 👍
|
@psychocoderHPC 's suggestions are now online. |
|
small reminder: spaces around operators increase readability (and are part of our coding guidelines). |
|
Fixed this. |
|
@BeyondEspresso great work! @psychocoderHPC since this is a bigger pull request and I think it is ready for a merge for now - are you d'accord? :) |
There was a problem hiding this comment.
@ax3l Note that this is currently unique code that applies to the B-field only (because of intra-cell position offsets). My intention is to generalize this in the upcoming feature update when I introduce different polarizations for the TWTS laser field. (Update: I understand now you were correcting a spelling mistake. 👻 )
|
Ok, I found and fixed another bug in the 2D section. In addition I did some more polishing on the comments. Let's merge this now. 😉 |
|
Bad bugs kick the bucket last... |
|
merge-able now? ;) |
…mplex-BeyondEspresso [BG fields] Add refactored TWTS laser
By re-implementing the TWTS laser as functors, this request concludes a series based on the original pull request #597. Refactoring its separate features led to the subsequent pull requests #600 (BG Fields in mySimulation.hpp, merged), the #664 (Complex class in libPMacc, open) and now this one.
Happy code ripping! 😋
To Do
devas soon as Close #608 Complex Math in libPMacc #664 is merged