What is the preferred way to access data stored in the Data class now that it has been removed.
From the changelog of Dolfin 0.9.10
- Make GenericFunction
But I have code that access the Data class as described by the docstring help of Expression i.e.
class MyFunc : public Expression
{
public:
MyFunc() : Expression(3)
{
}
void eval(Array<double>& values, const Data& data) const
{
Point n = data.normal();
values[0] = -n.x()*
values[1] = pow(n.x(), 2)*sin(
values[2] = -n.y()*
}
};
This leads to the compile.log error:
...
dolfin_
...
I assume this is because of the change mentioned above.
If so, how should data such as normals etc. be accessed?
If not, what else have change that might cause this new error?
I am running Lucid on a 64-bit platform.
Thanks
Renier
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply: