<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Max,<div>Try to use a register for storing the quantity before doing the comparison. That way the types will be correct.</div><div><br></div><div>E.g. register 22:</div><div>Function {</div><div> ...</div><div> mu[] = $1#22 > T_c ? mu_1 : mu_2;</div><div>}</div><div><br></div><div>This is indeed an old bug!</div><div>Regards,</div><div>Ruth</div><div><br></div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Dr. Ir. Ruth V. Sabariego</div><div>University of Liege, Electrical Engineering & Computer Science, </div><div>Applied & Computational Electromagnetics (ACE),</div><div>phone: +32-4-3663737 - fax: +32-4-3662910 - <a href="http://ace.montefiore.ulg.ac.be/">http://ace.montefiore.ulg.ac.be/</a></div><br class="Apple-interchange-newline"><br></div></span></div></span></span>
</div>
<br><div><div>On 06 Jan 2012, at 13:57, <a href="mailto:meyer@itwm.fraunhofer.de">meyer@itwm.fraunhofer.de</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi All,<br><br>I'm trying to define a function that can take two different values<br>depending on whether my discrete function {T} is greater or less than a<br>certain constant T_c.<br><br>What I've done so far is:<br><br>Function {<br> ...<br> mu[] = $1 > T_c ? mu_1 : mu_2;<br>}<br><br>and in the Formulation I tried mu[{T}] and mu[Dof{T}], but I get the<br>following error:<br><br>Comparison of non scalar quantities: Form0 > Scalar<br><br>Thanks,<br>Max Meyer<br><br><br>_______________________________________________<br>getdp mailing list<br><a href="mailto:getdp@geuz.org">getdp@geuz.org</a><br>http://www.geuz.org/mailman/listinfo/getdp<br></div></blockquote></div><br></div></body></html>