triqs.mesh.mesh_product.MeshProduct.copy_from

MeshProduct.copy_from(another)[source]

Deep-copy the contents of another into self factor by factor.

Parameters:
anotherMeshProduct

Source product mesh. Must have the same rank as self.

Returns:
MeshProduct

Result of the elementwise copy_from on the factor meshes.

Raises:
AssertionError

If another.rank does not match self.rank.