dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #02027
[HG] Allow local data to be attached to Functions:
One or more new changesets pushed to the primary DOLFIN repository.
A short summary of the last three changesets is included below.
changeset: 1714:6c00a353d4eeff52a5378b1249a87b8b59d0fd0d
tag: tip
user: "Anders Logg <logg@xxxxxxxxx>"
date: Mon Feb 20 17:19:20 2006 -0500
files: src/kernel/function/ConstantFunction.cpp src/kernel/function/DiscreteFunction.cpp src/kernel/function/FunctionPointerFunction.cpp src/kernel/function/UserFunction.cpp src/kernel/function/dolfin/ConstantFunction.h src/kernel/function/dolfin/DiscreteFunction.h src/kernel/function/dolfin/Function.h src/kernel/function/dolfin/FunctionPointerFunction.h src/kernel/function/dolfin/GenericFunction.h src/kernel/function/dolfin/UserFunction.h
description:
Allow local data to be attached to Functions:
void attach(Vector& x, bool local = false);
void attach(Mesh& mesh, bool local = false);
void attach(FiniteElement& element, bool local = false);
If local is set, the data will be considered local to the Function.
The Function takes responsibility for the data (including deletion at
the appropriate time). Use with caution.
This is mainly to be used when reading Function data from file, when we
need to create the Vector, the Mesh and the FiniteElement (they are not
references to somebody else's data).
changeset: 1713:574e18c0b1802df22847ce8fe8abcfb7475a865f
user: "Anders Logg <logg@xxxxxxxxx>"
date: Mon Feb 20 16:51:10 2006 -0500
files: src/kernel/fem/FiniteElement.cpp src/kernel/fem/FiniteElementSpec.cpp src/kernel/fem/dolfin/FiniteElement.h src/kernel/fem/dolfin/FiniteElementSpec.h src/kernel/io/XMLFiniteElementSpec.cpp src/test/main.cpp
description:
Implement factory function FiniteElement::makeElement()
Example usage:
FiniteElement* P1 = FiniteElement::makeElement("Lagrange", "triangle", 1);
changeset: 1712:7f9f91c2c4b661dc6ee0f05b8f2ac6f212d51db0
user: "Anders Logg <logg@xxxxxxxxx>"
date: Mon Feb 20 15:42:31 2006 -0500
files: src/kernel/fem/FiniteElementSpec.cpp src/kernel/fem/dolfin/FiniteElementSpec.h
description:
Add missing files, sorry.
-------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin