← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Implemented compilation of C++ expression strings from python.

 

One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.

changeset:   4273:928feadc0907a0df8e95149e0f9d479377deb2f8
tag:         tip
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Wed Jun 04 11:57:07 2008 +0200
files:       site-packages/dolfin/assemble.py site-packages/dolfin/compile_functions.py
description:
Implemented compilation of C++ expression strings from python.
Documentation will follow later :-)


changeset:   4272:141877f4260471d449568450686a762150f80f22
user:        Johannes Ring <johannr@xxxxxxxxx>
date:        Mon Jun 02 08:24:14 2008 +0200
files:       SConstruct
description:
Minor fix in MPI detection (added mpiexec and orterun as alternatives to
mpirun).


changeset:   4271:8431a991a0be07ead18512308cf293a309d4b2a5
user:        Anders Logg <logg@xxxxxxxxx>
date:        Sat May 31 23:09:58 2008 +0200
files:       demo/mesh/ale/cpp/main.cpp demo/mesh/ale/python/demo.py dolfin/parameter/DefaultParameters.h site-packages/dolfin/assemble.py
description:
Several Python assembly optimizations and new options:
The following options are now available:

  dolfin_set("optimize form", True)              # Use optimization -O2 when compiling generated code
  dolfin_set("optimize use dof map cache", True) # Store dof maps in cache for reuse
  dolfin_set("optimize use tensor cache", True)  # Store tensors in cache for reuse

  dolfin_set("optimize", True)                   # All of the above

Each one of these may make a significant difference for the
speed of assembly from Python, in particular for repeated
assembly.

With these options set, the difference in speed between assembly
in C++ and Python using the JIT compiler is negligible. (For forms
which don't depend on functions that are evaluated in Python.)

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin