Re: [deal.II] ifem

2016-12-17 Thread luca.heltai
Dear Joaquin,

as I wrote to you on one of my previous emails, the repository 

https://github.com/luca-heltai/ans-ifem

contains a branch that compiles correctly, without those warnings, on the 
development version of deal.II.

There are some more warnings due to the deprecation of the ‘sadd’ function and 
the ‘read_input’ one if you use the development version. I’m removing these 
now, and I’ll release a new version “warning-free”.

Best,
L.


> On 15 Dec 2016, at 7:16, Jean-Paul Pelteret  wrote:
> 
> Dear Joaquin,
> 
> The warning appears because you are calling a function that is marked as 
> deprecated, so although it remains in the library for now it will be removed 
> in the near future.
> 
> There are two alternate functions you can call if you would like to remove 
> the warning right now. They are the normal "* operator" (if contracting over 
> the inner two indices of the tensors) and the general contract function that 
> takes in two tensors and returns the result. The indices over which the 
> contract function operates are specified as template parameters. You can see 
> an example of how to use it in the function documentation.
> 
> I hope that this helps you.
> Jean-Paul
> 
> On Thursday, December 15, 2016 at 12:06:16 AM UTC+1, Joaquin wrote:
> Dear all,
> 
> I am trying to run the IFEM code on FSI problems, developed by Luca Heltai. I 
> am using deal.II 8.4.1. I edited some parts of the code due to warnings 
> because it is considered deprecated for the version I am using. I stopped 
> when warning appears for line 1038:
> 
> 1037  if((!par.semi_implicit) || (!par.use_spread))
> 1038  contract (PeFT, Pe[qs], 2, F[qs], 2);
> 
> The warning I see is as follows:
> 
> jomivalen@Nalia ~/ifem/ans-ifem $ make
> Scanning dependencies of target ifem
> [ 25%] Building CXX object CMakeFiles/ifem.dir/source/immersed_fem.cc.o
> /home/jomivalen/ifem/ans-ifem/source/immersed_fem.cc: In instantiation of 
> ‘void 
> ImmersedFEM::residual_and_or_Jacobian(dealii::BlockVector&, 
> dealii::BlockSparseMatrix&, const dealii::BlockVector&, const 
> dealii::BlockVector&, double, double) [with int dim = 2]’:
> /home/jomivalen/ifem/ans-ifem/source/immersed_fem.cc:2046:16:   required from 
> here
> /home/jomivalen/ifem/ans-ifem/source/immersed_fem.cc:1038:44: warning: ‘void 
> dealii::contract(dealii::Tensor<2, dim, Number>&, const dealii::Tensor<2, 
> dim, Number>&, unsigned int, const dealii::Tensor<2, dim, Number>&, unsigned 
> int) [with int dim = 2; Number = double]’ is deprecated (declared at 
> /home/jomivalen/cfem/dealii/include/deal.II/base/tensor_deprecated.h:262) 
> [-Wdeprecated-declarations]
>  contract (PeFT, Pe[qs], 2, F[qs], 2);   // contract (PeFT, Pe[qs], 
> 2, F[qs], 2);
> ^
> 
> I don't know how to actualize the contract function despite having seen the 
> indications in the file "tensor.h".
> 
> Thanks for any help,
> Joaquín
> 
> -- 
> 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.


[deal.II] ifem

2016-12-14 Thread 'Joaquin' via deal.II User Group
Dear all,

I am trying to run the IFEM code on FSI problems, developed by Luca Heltai. 
I am using deal.II 8.4.1. I edited some parts of the code due to warnings 
because it is considered deprecated for the version I am using. I stopped 
when warning appears for line 1038:

1037  if((!par.semi_implicit) || (!par.use_spread))
*1038  contract (PeFT, Pe[qs], 2, F[qs], 2);*

The warning I see is as follows:

jomivalen@Nalia ~/ifem/ans-ifem $ make
Scanning dependencies of target ifem
[ 25%] Building CXX object CMakeFiles/ifem.dir/source/immersed_fem.cc.o
/home/jomivalen/ifem/ans-ifem/source/immersed_fem.cc: In instantiation of 
‘void 
ImmersedFEM::residual_and_or_Jacobian(dealii::BlockVector&, 
dealii::BlockSparseMatrix&, const dealii::BlockVector&, 
const dealii::BlockVector&, double, double) [with int dim = 2]’:
/home/jomivalen/ifem/ans-ifem/source/immersed_fem.cc:2046:16:   required 
from here
/home/jomivalen/ifem/ans-ifem/source/immersed_fem.cc:1038:44: warning: 
‘void dealii::contract(dealii::Tensor<2, dim, Number>&, const 
dealii::Tensor<2, dim, Number>&, unsigned int, const dealii::Tensor<2, dim, 
Number>&, unsigned int) [with int dim = 2; Number = double]’ is deprecated 
(declared at 
/home/jomivalen/cfem/dealii/include/deal.II/base/tensor_deprecated.h:262) 
[-Wdeprecated-declarations]
 contract (PeFT, Pe[qs], 2, F[qs], 2);   // contract (PeFT, Pe[qs], 
2, F[qs], 2);
^

I don't know how to actualize the contract function despite having seen the 
indications in the file "tensor.h".

Thanks for any help,
Joaquín

-- 
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.