Changeset 10840


Ignore:
Timestamp:
Mar 26, 2018 10:50:26 AM (21 months ago)
Author:
mjohnsson
Message:

Storing all work on #5577 in a branch

Location:
branches/dev-5577
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/dev-5577

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/dev-5577/Compiler/ModelicaMiddleEnd/test/modelica/Differentiation.mo

    r10834 r10840  
    22552255")})));
    22562256        end Functional1;
     2257    model SmoothOrderDerivation1
     2258      function f
     2259        input Real x;
     2260        input Real h;
     2261        input Real c;
     2262        output Real y_d;
     2263      algorithm
     2264          y_d :=c*x;
     2265        annotation (Inline=false, smoothOrder=99);
     2266      end f;
     2267      Real m, a, b, c;
     2268      Real r, t, y;
     2269      equation
     2270        m=f(time,time,time);
     2271        a = der(m);
     2272        b = der(a);
     2273        c = der(b);     
     2274        r = der(c);
     2275        t = der(t);
     2276        y = der(y);
     2277        annotation(__JModelica(UnitTesting(tests={
     2278            FClassMethodTestCase(
     2279            name="SmoothOrderDerivation1",
     2280            description="Test correct autoderivation with smoothOrder",
     2281            eliminate_linear_equations=false,
     2282            methodName="checkDerivativeAnnotations",
     2283            methodResult="[]")})));
     2284    end SmoothOrderDerivation1;
    22572285    model DerivativeFunctionMissmatch1
    22582286     function f
Note: See TracChangeset for help on using the changeset viewer.