discretize.TreeMesh.equals

TreeMesh.equals(other)[source]

Compares current mesh with another mesh to determine if they are identical

This method compares all the properties of the current mesh to other_mesh and determines if both meshes are identical. If so, this function returns a boolean value of True . Otherwise, the function returns False .

Parameters
other_meshdiscretize.base.BaseMesh

An instance of any discretize mesh class.

Returns
bool

True if meshes are identical and False otherwise.