Skip to content

Conversation

@Antoinehoff
Copy link
Collaborator

This solves issue #929

The setup of the periodicity for the Maxwellian-Gaussian Projection does not call information about the field anymore. It now depends only on the species.

The code is a bit more complicated though because one cannot directly call the BC from the species->info structure for a prescribed dimension but one has to pass by the gk_fetch_bc_with_dir_edge routine.

Also, I am thinking now that it could be useful to have an assert checking that if we set GKYL_BC_GK_SPECIES_IWL to one edge, the other edge is also GKYL_BC_GK_SPECIES_IWL.

Copy link
Collaborator

@manauref manauref left a comment

Choose a reason for hiding this comment

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

@Antoinehoff shouldn't this also check the is_dir_periodic of the app? i.e., if we are doing a periodic sim without IWL, then this code here should also set fg_ctx.is_dir_periodic = true, right?

@manauref manauref merged commit a0f5299 into main Jan 22, 2026
1 check failed
@manauref manauref deleted the small_gk_species_proj_periodicity_change branch January 22, 2026 04:24
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