Sorry, I should have describe my problem more specificlly. The problem is,
I'm running a code writen several years ago. In the code it used the class:
NamedData< Vector <double> *>, but Deal.II has deleted this template class
so I have no idea how it work and the way to use it. I searched in the
mailing list and get to know that this class was replaced by a new class:
AnyData. But AnyData is not a template class, so I don't know how to change
from NameData to AnyData. I just looked up step 39 and solved the problem.
It should be changed to like this:
NamedData< Vector <double> *> solution_data;
solution_data.add (&solution, "solution");
------>
AnyData
<http://www.dealii.org/developer/doxygen/deal.II/classAnyData.html>
solution_data;
solution_data.add
<http://www.dealii.org/developer/doxygen/deal.II/classAnyData.html#a5949f684f8ce7ccce9d45e65af32580c>
<Vector<double>
<http://www.dealii.org/developer/doxygen/deal.II/classVector.html>*>(&solution,
"solution");
Is there a record on how the template/class/function names are changed, so
I can find it quickly in case one day in the future I found the code I
wrote today can't run?
Anyway, thank you so much for your reply Prof.Bangerth. Thank you!
在 2017年10月26日星期四 UTC+8下午8:51:24,Wolfgang Bangerth写道:
>
> On 10/26/2017 06:15 AM, 曾元圆 wrote:
> > I am trying to run a open source code, but an error occurred.
> > In the code it uses NamedData like this:
> > NamedData< Vector <double> *> solution_data;
> > Info_box.initialize(fe, mapping, solution_data);
>
> What is the error you get? The first step in fixing an error is to
> carefully
> read the error message.
>
> Best
> W.
>
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: [email protected]
> <javascript:>
> www: http://www.math.colostate.edu/~bangerth/
>
>
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.