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.

<strong>UFL</strong> <strong>Specification</strong> <strong>and</strong> <strong>User</strong> <strong>Manual</strong> <strong>0.3</strong>Martin S. Alnæs, Anders LoggThis creates a directory ufl-x.y.z containing the <strong>UFL</strong> source code.If you want the very latest version of <strong>UFL</strong>, it can be accessed directly fromthe development repository through hg (Mercurial):# hg clone http://www.fenics.org/hg/uflThis version may contain features not yet present in the latest release, butmay also be less stable <strong>and</strong> even not work at all.B.1.3 Installing <strong>UFL</strong><strong>UFL</strong> follows the st<strong>and</strong>ard installation procedure for Python packages. Enterthe source directory of <strong>UFL</strong> <strong>and</strong> issue the following comm<strong>and</strong>:# python setup.py installThis will install the <strong>UFL</strong> Python package in a subdirectory called ufl in thedefault location for user-installed Python packages (usually something like/usr/lib/python2.5/site-packages).Inaddition, theexecutableufl-analyse(aPythonscript)willbeinstalledinthe default directory for user-installed Python scripts (usually in /usr/bin).To see a list of optional parameters to the installation script, type# python setup.py install --helpIf you don’t have root access to the system you are using, you can pass the--homeoptiontotheinstallationscripttoinstall<strong>UFL</strong>inyourhomedirectory:# mkdir ~/local# python setup.py install --home ~/local99

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

Saved successfully!

Ooh no, something went wrong!