Skip to content

How to read the coordinates of a grid in the ProblemGenerator function? #495

Answered by c-white
tianninglyu asked this question in Q&A
Discussion options

You must be logged in to vote

The coordinates are located on the MeshBlock: pcoord->x1v(i) will work inside ProblemGenerator().

In the jet problem generator, pco is just the name given to the input to the boundary condition function. This could be called anything, but it doesn't actually live on the Mesh.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tianninglyu
Comment options

Answer selected by tianninglyu
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