Re: [deal.II] Help with Vector template instantiations

2016-09-10 Thread Wolfgang Bangerth
On 09/10/2016 11:22 AM, dragniko...@gmail.com wrote: Yes, no problem. I see those files changed a lot since the 8.4.1 release. Anyway, I see the two spots are the same as in 8.4.1. I'll send you the patch. Fantastic, thanks! W. -- ---

Re: [deal.II] Help with Vector template instantiations

2016-09-10 Thread dragnikolic
Yes, no problem. I see those files changed a lot since the 8.4.1 release. Anyway, I see the two spots are the same as in 8.4.1. I'll send you the patch. Dragan On Saturday, September 10, 2016 at 5:42:01 PM UTC+1, Wolfgang Bangerth wrote: > > On 09/10/2016 10:33 AM, dragn...@gmail.com wrote:

Re: [deal.II] Help with Vector template instantiations

2016-09-10 Thread Wolfgang Bangerth
On 09/10/2016 10:33 AM, dragniko...@gmail.com wrote: Hello Wolfgang, Yes, I do explicitly instantiate these templates in my code. The datatype is different from what is already defined in deal.II. Something like: #include #include template class Vector; But these two guys: dealii::Vector >::o

Re: [deal.II] Help with Vector template instantiations

2016-09-10 Thread dragnikolic
Hello Wolfgang, Yes, I do explicitly instantiate these templates in my code. The datatype is different from what is already defined in deal.II. Something like: #include #include template class Vector; But these two guys: dealii::Vector >::operator=(std::complex) and dealii::Vector::lp_norm(int

Re: [deal.II] Help with Vector template instantiations

2016-09-10 Thread Wolfgang Bangerth
Dragan, I need to use Vector FullMatrix, BlockVector and BlockSparseMatrix with different datatype than what is already provided and instantiated (float, double...). I have the following problem when instantiating with a different type: the linking fails due to the multiple definitions of the f

[deal.II] Help with Vector template instantiations

2016-09-10 Thread dragnikolic
Hello, I need to use Vector FullMatrix, BlockVector and BlockSparseMatrix with different datatype than what is already provided and instantiated (float, double...). I have the following problem when instantiating with a different type: the linking fails due to the multiple definitions of the f

[deal.II] Re: Help with the weak form

2016-09-10 Thread dragnikolic
Thank you Bruno. Dragan On Friday, September 9, 2016 at 1:07:19 PM UTC+1, Bruno Turcksin wrote: > > Dragon, > > On Friday, September 9, 2016 at 7:02:15 AM UTC-4, dragn...@gmail.com > wrote: >> >> Thank you Denis. >> >> I tried that. The function log(c/(1-c)) looks like: >> >> >>

Re: [deal.II] How to declare a constant that is used in a template?

2016-09-10 Thread Wolfgang Bangerth
On 09/10/2016 03:49 AM, dealii.gr...@gmail.com wrote: I have a dimension independent code which can work for 1D, 2D and 3D. The dimension of the problem is defined in the input file. Is there a way to declare a constant integer variable (dim) for template? for 1D dim = 1; for 2D dim = 2; else d

[deal.II] How to declare a constant that is used in a template?

2016-09-10 Thread dealii . group
Dear all I have a dimension independent code which can work for 1D, 2D and 3D. The dimension of the problem is defined in the input file. Is there a way to declare a constant integer variable (dim) for template? for 1D dim = 1; for 2D dim = 2; else dim = 3; then, FEM solid("parameters.prm");