Skip to content

Mesh refinement variables outside pgen file #627

Answered by tomidakn
kyriakosTapinou asked this question in Q&A
Discussion options

You must be logged in to vote

Coordinates are calculated in the MeshBlock constructor, so they are properly set after immediately refinement. Then InitUserMeshBlockData is also called in the constructor. So you should have everything you need.

FYI, you can get the level and logical positions from pmb->loc.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kyriakosTapinou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants