1
# Demonstration of MeshFunction
3
# Original implementation: ../cpp/main.cpp by Ola Skavhaug.
5
__author__ = "Kristian B. Oelgaard (k.b.oelgaard@tudelft.nl)"
6
__date__ = "2007-11-15 -- 2007-11-28"
7
__copyright__ = "Copyright (C) 2007 Kristian B. Oelgaard"
8
__license__ = "GNU LGPL Version 2.1"
12
mesh = Mesh("../mesh2D.xml.gz")
14
# Read mesh function from file
15
file_in = File("../meshfunction.xml")
16
f = MeshFunction("real", mesh)
19
# Write mesh function to file
20
out = File("meshfunction_out.xml");