Re: [deal.II] NamedData is not supported, how to change NamedData to AnyData?

2017-10-26 Thread Wolfgang Bangerth

On 10/26/2017 08:17 AM, 曾元圆 wrote:


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?


Yes, we list changes from each version to the next here:
  https://www.dealii.org/developer/doxygen/deal.II/pages.html
For each version, the drop-down menu at https://www.dealii.org also has 
an entry called "Changes" or similar that lists what has changed from 
the previous version of deal.II.


Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] NamedData is not supported, how to change NamedData to AnyData?

2017-10-26 Thread 曾元圆
Wow, it's really surprising and exciting to see the original developer of 
the code I'm now runing answering this question! Thank you so much Prof. 
Praveen.This is greetings from remote China! I'm now a master student and 
am running and learning the DG code developed by you. So I really want to 
show my respect and gratitude to you. By the way, though I have leared 
deal.II for a few days, but still found it difficult to grasp this tool. I 
find it too difficult to handle that many classes/functions and assemble 
them to do something. When I try to use a class or a funtion I always try 
to understand what is going on underneath. But when I tried to go deep into 
the code, I found there are too many things to learn and too difficult to 
learn. Take the MeshWorker::DoFInfo/IntegrationInfoBox... as an example, 
it's always difficult for me to understand the designing philosophy and the 
logic behind it, though there are many tutorial examples and documentations 
already. Could you kindly introduce some experience and give advices on how 
to efficiently learn and master this tool and make it into use for a 
beginner like me. Best regards and many thanks!


在 2017年10月26日星期四 UTC+8下午9:07:56,Praveen C写道:
>
> step-39 should be of some help to you. 
>
> best 
> praveen 
>
> > On 26-Oct-2017, at 5:45 PM, 曾元圆 <2012...@gmail.com > 
> wrote: 
> > 
> > I am trying to run a open source code, but an error occurred. 
> > In the code it uses NamedData like this: 
> > NamedData< Vector  *> solution_data; 
> > Info_box.initialize(fe, mapping, solution_data); 
> > 
> > How should I use AnyData to replace it? 
> > Actually I am a new learner, I tried to read the documentation related 
> to AnyData class but didn't quite understand how to use it. 
> > 
> > -- 
> > 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 dealii+un...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] NamedData is not supported, how to change NamedData to AnyData?

2017-10-26 Thread 曾元圆
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  *>, 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  *> solution_data;
solution_data.add (&solution, "solution");
 -->
AnyData 
 
solution_data;
solution_data.add 

 
*>(&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  *> 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: bang...@colostate.edu 
>  
> 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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] NamedData is not supported, how to change NamedData to AnyData?

2017-10-26 Thread Praveen C
step-39 should be of some help to you.

best
praveen

> On 26-Oct-2017, at 5:45 PM, 曾元圆 <2012zg...@gmail.com> wrote:
> 
> I am trying to run a open source code, but an error occurred. 
> In the code it uses NamedData like this:
> NamedData< Vector  *> solution_data;
> Info_box.initialize(fe, mapping, solution_data);
> 
> How should I use AnyData to replace it?
> Actually I am a new learner, I tried to read the documentation related to 
> AnyData class but didn't quite understand how to use it.
> 
> -- 
> 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 dealii+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] NamedData is not supported, how to change NamedData to AnyData?

2017-10-26 Thread 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  *> 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: bange...@colostate.edu
   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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[deal.II] NamedData is not supported, how to change NamedData to AnyData?

2017-10-26 Thread 曾元圆
I am trying to run a open source code, but an error occurred. 
In the code it uses NamedData like this:
NamedData< Vector  *> solution_data;
Info_box.initialize(fe, mapping, solution_data);

How should I use AnyData to replace it?
Actually I am a new learner, I tried to read the documentation related to 
AnyData class but didn't quite understand how to use it.

-- 
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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.