DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project DOLFIN User Manual - FEniCS Project

fenicsproject.org
from fenicsproject.org More from this publisher
12.07.2015 Views

DOLFIN User ManualHoffman, Jansson, Logg, Wellsexample shows how to write a Makefile for the above example:CFLAGSLIBSCXXLINK= ‘dolfin-config --cflags‘= ‘dolfin-config --libs‘= ‘dolfin-config --compiler‘= ‘dolfin-config --linker‘DEST = dolfin-poissonOBJECTS = main.oall: $(DEST)install:clean:-rm -f *.o core *.core $(OBJECTS) $(DEST)$(DEST): $(OBJECTS)$(LINK) -o $@ $(OBJECTS) $(CFLAGS) $(LIBS).cpp.o:$(CXX) $(CFLAGS) -c $

DOLFIN User ManualHoffman, Jansson, Logg, Wells2.2.5 Visualizing the solutionDOLFIN relies on external programs for visualization. In this example wechose to save the solution in VTK format, which can be imported into forexample ParaView or MayaVi.Figure 2.1: The solution of Poisson’s equation (2.1) visualized in ParaView.23

<strong>DOLFIN</strong> <strong>User</strong> <strong>Manual</strong>Hoffman, Jansson, Logg, Wellsexample shows how to write a Makefile for the above example:CFLAGSLIBSCXXLINK= ‘dolfin-config --cflags‘= ‘dolfin-config --libs‘= ‘dolfin-config --compiler‘= ‘dolfin-config --linker‘DEST = dolfin-poissonOBJECTS = main.oall: $(DEST)install:clean:-rm -f *.o core *.core $(OBJECTS) $(DEST)$(DEST): $(OBJECTS)$(LINK) -o $@ $(OBJECTS) $(CFLAGS) $(LIBS).cpp.o:$(CXX) $(CFLAGS) -c $

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

Saved successfully!

Ooh no, something went wrong!