Skip to content

AttributeError:'tuple' object has no attribute 'rank' #262

Closed Answered by billsacks
fernandorannou asked this question in ESMPy
Discussion options

You must be logged in to vote

My first guess is that your create_2D_sph_mesh function is not actually returning an ESMPy mesh object but instead is returning a tuple. What do you get if you run this?:

type(sphmesh)

You should get:

esmpy.api.mesh.Mesh

You might also want to compare your code and result with the example here:

https://earthsystemmodeling.org/esmpy_doc/release/latest/html/examples.html#create-a-5-element-mesh

Replies: 1 comment 1 reply

Comment options

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

Answer selected by fernandorannou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESMPy
2 participants