{"action":"opened","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/1386","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/1386/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/1386/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/1386/events","html_url":"https://github.com/tbeu/Modelica/issues/1386","id":197117127,"number":1386,"title":"Using <> on Real in Spice3","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":[],"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":null,"comments":0,"created_at":"2016-12-22T08:09:41Z","updated_at":"2016-12-22T08:09:41Z","closed_at":null,"body":"**Reported by jmattsson on 20 Dec 2013 09:39 UTC**\nThe model `Modelica.Electrical.Spice3.Internal.MOS` contains the code:\n```mo\n    parameter Real NRD = 1 \"Number of squares of the drain diffusions\";\n    parameter Real NRS = 1 \"Number of squares of the source diffusions\";\n// ...\n  equation\n    assert( NRD <> 0, \"NRD, length of drain in squares, must not be zero\");\n    assert( NRS <> 0, \"NRS, length of source in squares, must not be zero\");\n```\nThe specification specifically forbids `<>` and `==` for Real expression outside of functions. While the main part of the reasoning for this rule that is given in the spec does not apply to parameter expressions, no exception is made for them.\n\nEither the spec should be updated to allow equality comparisons for Real parameter expressions, or the model should be changed to use something like `abs(NRD) > 1e-20` or `NRD < 0 or NRD > 0` instead. Or perhaps the parameters in question should be Intergers?\n\nThe problem can easily be solved in the library, but I'm setting the ticket on the spec so that we can discuss if we want to allow this or not first. \n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/1386"}}
{"actor":{"display_login":"modelica-trac-importer"}}