12.07.2015 Views

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DOLFIN</strong> <strong>User</strong> <strong>Manual</strong>Hoffman, Jansson, Logg, WellsB.1.4Compiling the demo programsAfter compiling the <strong>DOLFIN</strong> library according to the instructions above, youmay want to try one of the demo programs in the subdirectory src/demo/of the <strong>DOLFIN</strong> source tree. Just enter the directory containing the demoprogram you want to compile and type make. You may also compile all demoprograms at once using the command# make demoB.1.5Compiling a program against <strong>DOLFIN</strong>Whether you are writing your own Makefiles or using an automated buildsystem such as GNU Autotools or BuildSystem, it is straightforward to compilea program against <strong>DOLFIN</strong>. The necessary include and library pathscan be obtained through the script dolfin-config which is automaticallygenerated during the compilation of <strong>DOLFIN</strong> and installed in the bin subdirectoryof the specified with --prefix. Assuming this directory isin your executable path (environment variable PATH), the include path forbuilding <strong>DOLFIN</strong> can be obtained from the command# dolfin-config --cflagsand the path to <strong>DOLFIN</strong> libraries can be obtained from the command# dolfin-config --libsIf dolfin-config is not in your executable path, you need to provide thefull path to dolfin-config.Examples of how to write a proper Makefile are provided with each of theexample programs in the subdirectory src/demo/ in the <strong>DOLFIN</strong> sourcetree.102

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

Saved successfully!

Ooh no, something went wrong!