13.07.2015 Views

UFL Specification and User Manual 0.3 - FEniCS Project

UFL Specification and User Manual 0.3 - FEniCS Project

UFL Specification and User Manual 0.3 - FEniCS Project

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5AlgorithmsAlgorithms to work with <strong>UFL</strong> forms <strong>and</strong> expressions can be found in thesubmodule ufl.algorithms. You can import all of them with the linefrom ufl.algorithms import *This chapter gives an overview of (most of) the implemented algorithms.The intended audience is primarily developers, but advanced users may findinformation here useful for debugging.While domain specific languages introduce notation to express particularideas more easily, which can reduce the probability of bugs in user code,they also add yet another layer of abstraction which can make debuggingmore difficult when the need arises. Many of the utilities described here canbe useful in that regard.5.1 Formatting expressionsExpressions can be formatted in various ways for inspection, which is particularlyuseful for debugging. We use the following as an example form for81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!