Feimi, There is no substitute for this function. The reason it was deprecated is because we are trying to get a unified minimal interface for all our vector classes. The idea is to make it easy to switch between different vector classes. In the process, we have deprecated functions that were not implemented for all the vector classes. However, I do no expect this particular function to be removed any time soon.
Best, Bruno On Saturday, May 12, 2018 at 12:02:14 AM UTC-4, Feimi Yu wrote: > > Hi, > > I'm currently using the ratio function for PETSc vectors to compute vector > inverse in my parallel code. However, > it looks like that ratio() is deprecated. I know there is a potential > floating point exception due to the > undefined behavior when the denominator vector contains zero (because > PETSc's corresponding function does not > check that I guess?). I would like to know if there would be a substitute > or new version of this function after it > is completely removed. > > Thanks! > Feimi > -- 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.