Dear Joaquin, The warning appears because you are calling a function <https://dealii.org/8.4.1/doxygen/deal.II/classTensor.html#a24139ea4e2f83c058206632e21efcc9f> 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" <https://dealii.org/8.4.1/doxygen/deal.II/classTensor.html#acff14b5a87224a20eb287ed06017c80f> (if contracting over the inner two indices of the tensors) and the general contract <https://dealii.org/8.4.1/doxygen/deal.II/classTensor.html#a0923600f30b498c743cbef3d2eab4993> 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<dim>::residual_and_or_Jacobian(dealii::BlockVector<double>&, > dealii::BlockSparseMatrix<double>&, const dealii::BlockVector<double>&, > const dealii::BlockVector<double>&, 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.