#5576 closed defect (fixed)

math callbacks refactoring

Reported by: amartensen Owned by: amartensen
Priority: major Milestone: 2.3.x
Component: FMU/JMU runtime Version: trunk
Keywords: Cc:

Description


Change History (34)

comment:1 Changed 21 months ago by amartensen

changeset:10775

created branch

comment:2 Changed 21 months ago by amartensen

changeset:10776

writing jmi_pow_der on AD form derived from changeset:10579

comment:3 Changed 21 months ago by amartensen

changeset:10793

merged changeset:10789 to /branches/dev-5576

comment:4 Changed 21 months ago by amartensen

changeset:10795

appending .0 to integers in some contexts in the generated code where they are treated as reals.

comment:5 Changed 21 months ago by amartensen

r10807 merge from trunk
r10808 revert r10807
r10809 merge from trunk
r10810 revert r10809, will re-merge
r10811 merge from trunk
r10812 merge to trunk

comment:6 Changed 21 months ago by amartensen

changeset:10816

not appending ".0" to integer literals that are children of ForIndex.

comment:7 Changed 21 months ago by amartensen

changeset:10819

merge from trunk

comment:8 Changed 21 months ago by amartensen

changeset:10820

merge to trunk

comment:9 Changed 21 months ago by amartensen

changeset:10821

adapted jmi_pow_der to math_ad, replaced with jmi_ad_pow

comment:10 Changed 21 months ago by amartensen

changeset:10824

adapted division, reusing prettyPrintGuarded, with a hook for determining return arguments from the guard function.

comment:11 Changed 21 months ago by Christian Andersson

changeset:10827

Reverting changeset:10820 and changeset:10812 due to problems. Related to ticket:5576

comment:12 Changed 21 months ago by amartensen

changeset:10832

added guard functions to all mathematical function calls (subclasses of FMathematicalFunctionCall in the compiler), so that there is a 1:1 correspondence between jmi_* and jmi_ad_* function calls. The jmi_ad_* wrapper delegates to the jmi_* wrapper, so the error check of the output of the jmi_* function is always performed in the jmi_* function for consistency with the already implemented functions.

comment:13 Changed 21 months ago by amartensen

created #5586 to track the append ".0" to real literal expressions change

comment:14 Changed 21 months ago by amartensen

changeset:10836

constraining "append .0" to instances of FDotPowExp

comment:15 Changed 21 months ago by amartensen

changeset:10843

fixed jmi_ad_exp, jmi_ad_tanh and jmi_ad_log10. renamed shouldAppend() to shouldAppendZeroFractionalPart(). changed shouldAppendFractionalPart() from being restricted only to FDotPowExp to being restricted to some special cases defined in the temporary hook CodePrinter.inGeneratedFunctionCall().

comment:16 Changed 21 months ago by amartensen

changeset:10845

merge from trunk

comment:17 Changed 21 months ago by amartensen

changeset:10846

added possibility to automatically update failing tests. It is now possible to write all unit test failures to file in the test framework. It is toggled by a property output_failing. To use it, append the option -Doutput_failing=<filename> to the JVM arguments. Also, added a corresponding possibility in TestAnnotationizer that reads the file output from the test framework, specified via the -f= option. TestAnnotationizer then updates all tests that are mentioned in that file, i.e. all tests that were previously failing. To use it, add -f=<filename> to the program arguments of TestAnnotationizer.

comment:18 Changed 21 months ago by amartensen

changeset:10848

updated svn:mergeinfo on the dev-branch for the revert commit on trunk r10827

comment:19 Changed 21 months ago by amartensen

r10857 merge from trunk
r10859 merge to trunk

comment:20 Changed 21 months ago by amartensen

changeset:10875

added include statement in base.h

comment:21 Changed 20 months ago by amartensen

r10878 merge from trunk

comment:22 Changed 20 months ago by amartensen

r10879 merge to trunk

comment:23 Changed 20 months ago by amartensen

changeset:10885

removed TODOs and unused inGeneratedFunctionCall()

comment:24 Changed 20 months ago by amartensen

r10886 merge from trunk
r10887 merge to trunk

comment:25 Changed 20 months ago by amartensen

changeset:10889

using jmi_divide() in the *d calculation in jmi_math_ad.c

comment:26 Changed 20 months ago by amartensen

r10890 merge from trunk
r10891 merge to trunk

comment:27 Changed 20 months ago by amartensen

changeset:10892

using jmi_* calls for sinh and cosh

r10893 merge from trunk
r10894 merge to trunk

Last edited 20 months ago by amartensen (previous) (diff)

comment:28 Changed 20 months ago by amartensen

changeset:10895

added jmi_log call to *d instead of normal log call

comment:29 Changed 20 months ago by amartensen

changeset:10897
fix mergeproperties for last merge r10893

comment:30 Changed 20 months ago by amartensen

r10898 merge from trunk
r10899 merge to trunk

comment:31 Changed 20 months ago by amartensen

changeset:10900

pulled out and renamed the Direction enum into java package, is now org.jmodelica.common.ccodegen.CFuncParamDirection

comment:32 Changed 20 months ago by amartensen

r10901 merge from trunk
r10902 merge to trunk

comment:33 Changed 20 months ago by amartensen

r10907 remove dev branch

comment:34 Changed 20 months ago by amartensen

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.