[Dune] [#661] Use Python to evaluate function strings

Dune dune at dune-project.org
Wed Nov 18 14:34:51 CET 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Carsten Gräser (Carsten) 

Attached to Project - Dune
Summary - Use Python to evaluate function strings
Task Type - Feature Request
Category - Common
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - We have a small class that allows to use python expressions/functions/callable objects as functions in dune. Using such an approach we would not need to implement our own parsers e.g. for coarse grid creation while having the full power of python.

Currently it implements the old dune-disc FunctionBase interface and uses some stuff from our own modules. However we could easily change this switching to the new function interface in dune-common. Furthermore there are the following issues:

1) It leads to many un-avoidable valgrind warnings (this is an issue of embedded python)
2) We don't have a nice configure test for this.
3) Implementation is not very robust ( python syntax error leads to segfault).
3) Implementation would be much simpler, more readable, more robust using boost::python.

Nevertheless it might also be very usefull for others.

It would we nice to have your comments on whether you'd like to see it in dune.

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=661

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list