Skip to content

Efield lepton updates#3

Merged
gsalkuin merged 4 commits intogsalkuin:developfrom
srtee:efield_lepton_updates
Jan 15, 2025
Merged

Efield lepton updates#3
gsalkuin merged 4 commits intogsalkuin:developfrom
srtee:efield_lepton_updates

Conversation

@srtee
Copy link
Copy Markdown

@srtee srtee commented Jan 14, 2025

The first two commits streamline code for easier future debugging and development, making the following changes:

  • Uniform flagging between phi and dphi (previously one set of arrays was initialized as true and the other false; this is asking for a future dev to introduce a bug!)
  • Replace vectors with arrays where the size is known at compile time (i.e. 3 dimensions)
  • Deduplicate code for computing forces from phi and dphi with two flag-checks per inner loop (acceptable, to me, to avoid future bugs if one set of duplicate code is updated but not another).

The last two commits propose a completely different way of updating the Lepton expression references -- by getting the pointer to each reference returned by getVariableReference, making the update process smoother in the subsequent repeated force loops. In my opinion this is nicer and more maintainable code -- BUT that is just my opinion so I am okay for this commit to be reverted.

@gsalkuin gsalkuin merged commit 906399b into gsalkuin:develop Jan 15, 2025
gsalkuin pushed a commit that referenced this pull request Jan 15, 2025
gsalkuin pushed a commit that referenced this pull request Mar 4, 2025
Kokkos SNAP grid local compute
gsalkuin pushed a commit that referenced this pull request Apr 29, 2025
…etup-python-5

Bump actions/setup-python from 4 to 5
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.

2 participants