{"action":"created","issue":{"url":"https://api.github.com/repos/CFD-GO/TCLB/issues/48","repository_url":"https://api.github.com/repos/CFD-GO/TCLB","labels_url":"https://api.github.com/repos/CFD-GO/TCLB/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/CFD-GO/TCLB/issues/48/comments","events_url":"https://api.github.com/repos/CFD-GO/TCLB/issues/48/events","html_url":"https://github.com/CFD-GO/TCLB/issues/48","id":149979867,"number":48,"title":"d3q19 on single precision","user":{"login":"shkodm","id":13331189,"avatar_url":"https://avatars.githubusercontent.com/u/13331189?v=3","gravatar_id":"","url":"https://api.github.com/users/shkodm","html_url":"https://github.com/shkodm","followers_url":"https://api.github.com/users/shkodm/followers","following_url":"https://api.github.com/users/shkodm/following{/other_user}","gists_url":"https://api.github.com/users/shkodm/gists{/gist_id}","starred_url":"https://api.github.com/users/shkodm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shkodm/subscriptions","organizations_url":"https://api.github.com/users/shkodm/orgs","repos_url":"https://api.github.com/users/shkodm/repos","events_url":"https://api.github.com/users/shkodm/events{/privacy}","received_events_url":"https://api.github.com/users/shkodm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T06:29:10Z","updated_at":"2016-04-22T16:25:03Z","closed_at":null,"body":"I've noticed, that d3q19 model fails to compile for single precision on CPU.\r\nPresumably, due to type conflict somewhere in the model...\r\n\r\n./configure --disable-cuda --disable-double\r\n\r\nI get this error:\r\n```\r\nIn file included from cuda.cpp:645:0:\r\nDynamics_sp.c: In member function 'void Node_Run<(eOperationType)0u, (eCalculateGlobals)1u, (eStage)2u>::CollisionMRT()':\r\nDynamics_sp.c:403:5: error: no matching function for call to 'max(real_t&, double)'\r\nDynamics_sp.c:403:5: note: candidate is:\r\nIn file included from cuda.cpp:21:0:\r\ncross.h:239:40: note: template<class T> const T& max(const T&, const T&)\r\ncross.h:239:40: note:   template argument deduction/substitution failed:\r\nIn file included from cuda.cpp:645:0:\r\nDynamics_sp.c:403:5: note:   deduced conflicting types for parameter 'const T' ('float' and 'double')\r\nIn file included from cuda.cpp:3043:0:\r\nDynamics_sp.c: In member function 'void Node_Run<(eOperationType)0u, (eCalculateGlobals)1u, (eStage)0u>::CollisionMRT()':\r\nDynamics_sp.c:403:5: error: no matching function for call to 'max(real_t&, double)'\r\nDynamics_sp.c:403:5: note: candidate is:\r\nIn file included from cuda.cpp:21:0:\r\ncross.h:239:40: note: template<class T> const T& max(const T&, const T&)\r\ncross.h:239:40: note:   template argument deduction/substitution failed:\r\nIn file included from cuda.cpp:3043:0:\r\nDynamics_sp.c:403:5: note:   deduced conflicting types for parameter 'const T' ('float' and 'double')\r\nIn file included from cuda.cpp:5551:0:\r\nDynamics_sp.c: In member function 'void Node_Run<(eOperationType)0u, (eCalculateGlobals)1u, (eStage)1u>::CollisionMRT()':\r\nDynamics_sp.c:403:5: error: no matching function for call to 'max(real_t&, double)'\r\nDynamics_sp.c:403:5: note: candidate is:\r\nIn file included from cuda.cpp:21:0:\r\ncross.h:239:40: note: template<class T> const T& max(const T&, const T&)\r\ncross.h:239:40: note:   template argument deduction/substitution failed:\r\nIn file included from cuda.cpp:5551:0:\r\nDynamics_sp.c:403:5: note:   deduced conflicting types for parameter 'const T' ('float' and 'double')\r\n```\r\n\r\nCompilation with:\r\n./configure --enable-cuda --disable-double \r\nis fine. \r\n"},"comment":{"url":"https://api.github.com/repos/CFD-GO/TCLB/issues/comments/213498187","html_url":"https://github.com/CFD-GO/TCLB/issues/48#issuecomment-213498187","issue_url":"https://api.github.com/repos/CFD-GO/TCLB/issues/48","id":213498187,"user":{"login":"llaniewski","id":1880696,"avatar_url":"https://avatars.githubusercontent.com/u/1880696?v=3","gravatar_id":"","url":"https://api.github.com/users/llaniewski","html_url":"https://github.com/llaniewski","followers_url":"https://api.github.com/users/llaniewski/followers","following_url":"https://api.github.com/users/llaniewski/following{/other_user}","gists_url":"https://api.github.com/users/llaniewski/gists{/gist_id}","starred_url":"https://api.github.com/users/llaniewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llaniewski/subscriptions","organizations_url":"https://api.github.com/users/llaniewski/orgs","repos_url":"https://api.github.com/users/llaniewski/repos","events_url":"https://api.github.com/users/llaniewski/events{/privacy}","received_events_url":"https://api.github.com/users/llaniewski/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T16:25:03Z","updated_at":"2016-04-22T16:25:03Z","body":"No. I broke it again :D I'll have to sit on it"}}