{"action":"opened","issue":{"url":"https://api.github.com/repos/firedrakeproject/firedrake/issues/862","repository_url":"https://api.github.com/repos/firedrakeproject/firedrake","labels_url":"https://api.github.com/repos/firedrakeproject/firedrake/issues/862/labels{/name}","comments_url":"https://api.github.com/repos/firedrakeproject/firedrake/issues/862/comments","events_url":"https://api.github.com/repos/firedrakeproject/firedrake/issues/862/events","html_url":"https://github.com/firedrakeproject/firedrake/issues/862","id":172291611,"number":862,"title":"*Real FS* Mixed FS instantiation with >2 spaces fails when some FS is Real","user":{"login":"dorugeber","id":5711063,"avatar_url":"https://avatars.githubusercontent.com/u/5711063?v=3","gravatar_id":"","url":"https://api.github.com/users/dorugeber","html_url":"https://github.com/dorugeber","followers_url":"https://api.github.com/users/dorugeber/followers","following_url":"https://api.github.com/users/dorugeber/following{/other_user}","gists_url":"https://api.github.com/users/dorugeber/gists{/gist_id}","starred_url":"https://api.github.com/users/dorugeber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorugeber/subscriptions","organizations_url":"https://api.github.com/users/dorugeber/orgs","repos_url":"https://api.github.com/users/dorugeber/repos","events_url":"https://api.github.com/users/dorugeber/events{/privacy}","received_events_url":"https://api.github.com/users/dorugeber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-20T21:25:31Z","updated_at":"2016-08-20T21:25:31Z","closed_at":null,"body":"```\r\nfrom firedrake import *\r\n\r\nmesh = PeriodicUnitIntervalMesh(10)\r\n\r\nV1 = FunctionSpace(mesh, \"CG\", 1)\r\nV2 = TensorFunctionSpace(mesh, \"CG\", 1)\r\nV3 = FunctionSpace(mesh, \"Real\", 0)\r\nV = V2*V3  # lives\r\nV = V1*V2*V1  # lives\r\nV = V1*V2*V3  # dies\r\n```\r\n\r\nfails with\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"bug.py\", line 10, in <module>\r\n    V = V1*V2*V3  # dies\r\n  File \"/home/andrew/firedrake/src/firedrake/firedrake/functionspaceimpl.py\", line 203, in __mul__\r\n    return MixedFunctionSpace((self, other))\r\n  File \"/home/andrew/firedrake/src/firedrake/firedrake/functionspace.py\", line 258, in MixedFunctionSpace\r\n    new = impl.MixedFunctionSpace(spaces, name=name)\r\n  File \"/home/andrew/firedrake/src/firedrake/firedrake/functionspaceimpl.py\", line 529, in __init__\r\n    self.comm = self.node_set.comm\r\n  File \"/home/andrew/firedrake/src/PyOP2/pyop2/utils.py\", line 64, in __get__\r\n    obj.__dict__[self.__name__] = result = self.fget(obj)\r\n  File \"/home/andrew/firedrake/src/firedrake/firedrake/functionspaceimpl.py\", line 622, in node_set\r\n    return op2.MixedSet(s.node_set for s in self._spaces)\r\n  File \"/home/andrew/firedrake/src/PyOP2/pyop2/backends.py\", line 118, in __call__\r\n    return t(*args, **kwargs)\r\n  File \"/home/andrew/firedrake/src/PyOP2/pyop2/caching.py\", line 156, in __new__\r\n    obj = make_obj()\r\n  File \"/home/andrew/firedrake/src/PyOP2/pyop2/caching.py\", line 137, in make_obj\r\n    obj.__init__(*args, **kwargs)\r\n  File \"/home/andrew/firedrake/src/PyOP2/pyop2/base.py\", line 979, in __init__\r\n    self.comm = reduce(lambda a, b: a if a is None else a.comm or b if b is None else b.comm, sets)\r\n  File \"/home/andrew/firedrake/src/PyOP2/pyop2/base.py\", line 979, in <lambda>\r\n    self.comm = reduce(lambda a, b: a if a is None else a.comm or b if b is None else b.comm, sets)\r\nAttributeError: 'mpi4py.MPI.Intracomm' object has no attribute 'comm'\r\n```"}}
{"actor":{"display_login":"dorugeber"}}