On 12/25/22 13:52, Pranshul Thakur wrote:

Thanks for trying the code. Yes, just checked that we aren't really using a specific deal.II function with AD and wouldn't need to derive our class from Function<dim>. Function<dim, AD> compiled fine with deal.II version 9.2, but it doesn't after this PR <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdealii%2Fdealii%2Fpull%2F14211&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Ce92ce00ce73b43e61ba308dae6b9f1a0%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638075984677313930%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9dQ24fgI17PdU3YTUoVMnKP7m1XmyoJa%2FyB8oJckDzQ%3D&reserved=0> improved the check (which is a good check if functions taking in Function<dim> expect real/complex types).

I have to admit that I find it mildly annoying that the compiler forces the entire class to use arithmetic types for RangeNumberType (as opposed to only requiring them for those functions that actually use the Vector class). At the same time, in your case the solution simply is to not derive your class from Function<dim,...> since there is nothing you could do with a reference- or pointer-to-base.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/88788c97-496b-e986-0382-00555be88e23%40colostate.edu.

Reply via email to