I am missing something obvious

from dolfinx.mesh import create_rectangle, GhostMode
import numpy as np
from mpi4py import MPI

domain = create_rectangle(MPI.COMM_WORLD,
                          [np.array([-6, -6, 0]),
                           np.array([6, 6, 0])],
                          [100, 100], GhostMode.none) 

I’m driving myself crazy at this point. This is the error I get:
Cannot interpret ‘dolfinx.cpp.mesh.GhostMode.none’ as a data type

I don’t know enough to know what the error is trying to tell me.
running 0.8.0 on Mac Book Pro M3 through VSCode.

Please read the documentation: dolfinx.mesh — DOLFINx 0.9.0 documentation

GhostMode is the 6th input, and should be specified as a keyword argument if you do not supply cell type and data type (dtype).

Please also make the title of the post more relevant, describing your issue.

1 Like