Skip to content

Allow specification of which field to reflect for wall BCs.#467

Merged
mandli merged 1 commit intoclawpack:masterfrom
ketch:wall_indices
Sep 28, 2014
Merged

Allow specification of which field to reflect for wall BCs.#467
mandli merged 1 commit intoclawpack:masterfrom
ketch:wall_indices

Conversation

@ketch
Copy link
Member

@ketch ketch commented Sep 28, 2014

For some systems, and depending on how the q fields are ordered, it may be useful to reflect different fields at "wall" boundaries. This makes it possible to do so by setting e.g.

solver.reflect_index = [2,3,1]

@ketch
Copy link
Member Author

ketch commented Sep 28, 2014

The specific reason for adding this now is that @sanromd has a significant code base for Maxwell's equations based on an ordering that necessitates this approach. It might be worthwhile eventually to reorder the components of q in his code, but this seemed like a much simpler solution.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) when pulling f82e646 on ketch:wall_indices into 4579f68 on clawpack:master.

mandli added a commit that referenced this pull request Sep 28, 2014
Allow specification of which field to reflect for wall BCs.
@mandli mandli merged commit a1adba1 into clawpack:master Sep 28, 2014
@ketch ketch deleted the wall_indices branch November 5, 2014 13:46
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.

3 participants