[PATCH 1/4] move function wrap_fortran() to FCodePrinter._wrap_fortran()

2010-06-09 Thread Øyvind Jensen
This will let the line wrapping function respect settings of the fortran printer. --- sympy/printing/fcode.py| 107 ++-- sympy/printing/tests/test_fcode.py |5 +- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git

[PATCH 4/4] Created codegenerator FCodeGen for generating compilable fortran code

2010-06-09 Thread Øyvind Jensen
Implemented tests of the generated strings, and a script in test_external/ to test resulting binaries. The existing CCodeGen and related tests was used as templates for the new functionality. --- sympy/test_external/test_codegen_f95_ifort.py | 240 sympy/utilities/codegen.py

[PATCH 2/4] Implemented optional free-form source format for Fortran code printer

2010-06-09 Thread Øyvind Jensen
fcode takes a new keyword: source_format='fixed'|'free' --- sympy/printing/fcode.py| 71 sympy/printing/tests/test_fcode.py |6 ++-- 2 files changed, 58 insertions(+), 19 deletions(-) diff --git a/sympy/printing/fcode.py

Re: Created codegenerator FCodeGen for generating compilable fortran code

2010-06-09 Thread jegerjensen
The above code is also available at http://github.com/jegerjensen/sympy/tree/fortran_codegen (all patches) and http://github.com/jegerjensen/sympy/tree/fortran_free_form2 (For just the 3 first patches) -- You received this message because you are subscribed to the Google Groups sympy-patches

Re: Created codegenerator FCodeGen for generating compilable fortran code

2010-06-09 Thread jegerjensen
Sorry, I didn't know about the tests under doc/. I fixed it in the second patch, and created new branches at github: http://github.com/jegerjensen/sympy/tree/fortran_codegen2 and http://github.com/jegerjensen/sympy/tree/fortran_free_form3 . -- You received this message because you are