{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/911","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/911/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/911/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/911/events","html_url":"https://github.com/tbeu/Modelica/issues/911","id":197536597,"number":911,"title":"Modelica.Mechanics.MultiBody.Frames.Internal.maxWithoutEvent","user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"id":506762997,"url":"https://api.github.com/repos/tbeu/Modelica/labels/bug","name":"bug","color":"ee0701","default":true},{"id":506769562,"url":"https://api.github.com/repos/tbeu/Modelica/labels/L:Mechanics.MultiBody","name":"L:Mechanics.MultiBody","color":"0000aa","default":false}],"state":"open","locked":false,"assignee":{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false},"assignees":[{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/tbeu/Modelica/milestones/43","html_url":"https://github.com/tbeu/Modelica/milestone/43","labels_url":"https://api.github.com/repos/tbeu/Modelica/milestones/43/labels","id":2214846,"number":43,"title":"ModelicaSpec3.2rev2","description":"","creator":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"closed","created_at":"2016-12-25T12:59:51Z","updated_at":"2016-12-26T05:02:55Z","due_on":"2012-09-07T07:00:00Z","closed_at":"2016-12-25T12:59:51Z"},"comments":1,"created_at":"2016-12-26T05:02:55Z","updated_at":"2016-12-26T05:03:04Z","closed_at":null,"body":"**Reported by pharman on 22 Nov 2012 13:18 UTC**\nFrom the documentation of Modelica.Mechanics.MultiBody.Frames.Internal.maxWithoutEvent:\n\n_Function **maxWithoutEvent** returns the maximum of its two\ninput arguments. This functions is used instead of the Modelica\nbuilt-in function \"max\" or an if-statement with \"noEvent(..)\",\nbecause Dymola prints a warning message when differentiating\nin these cases. For the special cases as used in the MultiBody\nlibrary, these warning messages are irrelevant but will potentially\nirritate the user. The C-function \"maxWithoutEvent\" and its\nderivatives provided as additional functions \"maxWithoutEvent_d\"\nand \"maxWithoutEvent_dd\" will not lead to such warning\nmessages._\n\n`maxWithoutEvent` and it's derivative functions are not defined as C-functions. So the reference to them being such should be removed from the documentation and the commented-out `Header` annotation should be removed. There shouldn't be implementations of functions just to avoid warning messages in particular tools.\n\nIs the `Integer dummy;` just a fudge to prevent the automatic inlining of the function?\n\nWould `annotation(Inline=false, GenerateEvents=false);` not achieve the same goal (with `dummy` removed)?\n\n```\nfunction maxWithoutEvent\n      \"Maximum of the input arguments, without event and without warning message when differentiating\"\n      extends Modelica.Icons.Function;\n      input Real u1;\n      input Real u2;\n      output Real y;\n      //  annotation (Header=\"#include \\\"MultiBody.h\\\"\");\n    protected\n      Integer dummy;\n    algorithm\n      y := if u1 > u2 then u1 else u2;\n      dummy := 0;\n      annotation (Inline=false,\n    derivative=maxWithoutEvent_d);\nend maxWithoutEvent;\n```\n\n\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/911"},"comment":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/comments/269162617","html_url":"https://github.com/tbeu/Modelica/issues/911#issuecomment-269162617","issue_url":"https://api.github.com/repos/tbeu/Modelica/issues/911","id":269162617,"user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T05:03:04Z","updated_at":"2016-12-26T05:03:04Z","body":"**Comment by pharman on 23 Nov 2012 11:27 UTC**\n(Put it in the wrong milestone, changing to MSL3.2.1)\n"}}
{"actor":{"display_login":"modelica-trac-importer"}}