I am working on a program that uses ginac to generate source code. One part of the program generates fortran-90 code. Currently I am experimenting with using the csrc output format, but with the print function of the power class redefined as in section 6.3.1 of the online tutorial. Is there a better way? Has anyone implemented a full-blown fortran output format? Best regards, Warren
Dear Warren,
I am working on a program that uses ginac to generate source code. One part of the program generates fortran-90 code. Currently I am experimenting with using the csrc output format, but with the print function of the power class redefined as in section 6.3.1 of the online tutorial. Is there a better way? Has anyone implemented a full-blown fortran output format?
I think the canonical way to do that would be to define a new format for fortran output. If you make that inherit from csrc, you do not need to override very many functions. After that you can make a patch from it and make us happy by mailing it to ginac-devel. :-) Best wishes, Chris
participants (2)
-
Chris.Dams@mi.infn.it
-
Warren Weckesser