{"action":"created","issue":{"url":"https://api.github.com/repos/opesci/opesci-fd/issues/68","repository_url":"https://api.github.com/repos/opesci/opesci-fd","labels_url":"https://api.github.com/repos/opesci/opesci-fd/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/opesci/opesci-fd/issues/68/comments","events_url":"https://api.github.com/repos/opesci/opesci-fd/issues/68/events","html_url":"https://github.com/opesci/opesci-fd/issues/68","id":141338005,"number":68,"title":"running model cgen problem","user":{"login":"vinirn","id":13967576,"avatar_url":"https://avatars.githubusercontent.com/u/13967576?v=3","gravatar_id":"","url":"https://api.github.com/users/vinirn","html_url":"https://github.com/vinirn","followers_url":"https://api.github.com/users/vinirn/followers","following_url":"https://api.github.com/users/vinirn/following{/other_user}","gists_url":"https://api.github.com/users/vinirn/gists{/gist_id}","starred_url":"https://api.github.com/users/vinirn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinirn/subscriptions","organizations_url":"https://api.github.com/users/vinirn/orgs","repos_url":"https://api.github.com/users/vinirn/repos","events_url":"https://api.github.com/users/vinirn/events{/privacy}","received_events_url":"https://api.github.com/users/vinirn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-16T17:05:33Z","updated_at":"2016-03-16T17:21:51Z","closed_at":null,"body":"I am unable to run the model eigenwave3d.py. I am getting the following message. Has it something t do with cgen?\r\n\r\n> python tests/eigenwave3d.py\r\n> Eigenwave3D example (mode=default)\r\n> domain size: (1.0, 1.0, 1.0)\r\n> grid size: (100, 100, 100)\r\n> approximation order: [2, 4, 4, 4]\r\n> dt: 0.002\r\n> tmax: 1.0\r\n> require dt < 0.00495\r\n> stress kernel AI\r\n> 2.00, 2.00 (weighted), 60 ADD, 60 MUL, 9 LOAD, 6 STORE\r\n> velocity kernel AI\r\n> 1.50, 1.50 (weighted), 36 ADD, 36 MUL, 9 LOAD, 3 STORE\r\n> overall algorithm AI\r\n> 1.47, 1.46 (weighted)\r\n> Traceback (most recent call last):\r\n>   File \"tests/eigenwave3d.py\", line 339, in <module>\r\n>     main()\r\n>   File \"tests/eigenwave3d.py\", line 327, in main\r\n>     pluto=args.pluto, tile=args.tile, fission=args.fission)\r\n>   File \"tests/eigenwave3d.py\", line 190, in default\r\n>     grid.generate(filename_p)\r\n>   File \"/home/marcos/Dropbox/opesci/opesci-fd-master/opesci-fd/opesci/grid.py\", line 63, in generate\r\n>     self.src_code = str(self.cgen_template.generate())\r\n>   File \"/home/marcos/Dropbox/opesci/opesci-fd-master/opesci-fd/opesci/templates/regular3d_tmpl.py\", line 38, in generate\r\n>     statements = [getattr(self, m)() for m in self._template_methods]\r\n>   File \"/home/marcos/Dropbox/opesci/opesci-fd-master/opesci-fd/opesci/templates/regular3d_tmpl.py\", line 45, in execute\r\n>     return cgen.FunctionBody(self.execute_function_signature(), self.execute_function_body())\r\n>   File \"/home/marcos/Dropbox/opesci/opesci-fd-master/opesci-fd/opesci/templates/regular3d_tmpl.py\", line 55, in execute_function_body\r\n>     statements += [self.grid.declare_fields]\r\n>   File \"/home/marcos/Dropbox/opesci/opesci-fd-master/opesci-fd/opesci/staggeredgrid.py\", line 516, in declare_fields\r\n>     result = super(StaggeredGrid, self).declare_fields\r\n>   File \"/home/marcos/Dropbox/opesci/opesci-fd-master/opesci-fd/opesci/regulargrid.py\", line 489, in declare_fields\r\n>     ifdef = cgen.IfDef('_MSC_VER', [cgen.Assign(vec, '(%s*) _aligned_malloc(%s*sizeof(%s), %s)' % (self.real_t, str(vsize), self.real_t, str(self.alignment)))],\r\n> AttributeError: 'module' object has no attribute 'IfDef'\r\n> "},"comment":{"url":"https://api.github.com/repos/opesci/opesci-fd/issues/comments/197441057","html_url":"https://github.com/opesci/opesci-fd/issues/68#issuecomment-197441057","issue_url":"https://api.github.com/repos/opesci/opesci-fd/issues/68","id":197441057,"user":{"login":"navjotk","id":679809,"avatar_url":"https://avatars.githubusercontent.com/u/679809?v=3","gravatar_id":"","url":"https://api.github.com/users/navjotk","html_url":"https://github.com/navjotk","followers_url":"https://api.github.com/users/navjotk/followers","following_url":"https://api.github.com/users/navjotk/following{/other_user}","gists_url":"https://api.github.com/users/navjotk/gists{/gist_id}","starred_url":"https://api.github.com/users/navjotk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navjotk/subscriptions","organizations_url":"https://api.github.com/users/navjotk/orgs","repos_url":"https://api.github.com/users/navjotk/repos","events_url":"https://api.github.com/users/navjotk/events{/privacy}","received_events_url":"https://api.github.com/users/navjotk/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T17:21:51Z","updated_at":"2016-03-16T17:21:51Z","body":"@vinirn : This seems to be related to the version of cgen. Can you reinstall cgen from github (not PyPI), possibly in a clean python env, just to be sure the correct version of cgen is being used?"}}