This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Which function to use instead of "diameter()" ?

0 votes

I want to run "adaptive-possion" demo in "undocumented" file. I have noticed that "diameter()" function is no longer available in the new version of FEniCS. Is there any other function that I can use instead of this?

Thanks a lot in advance.

asked Aug 1, 2016 by masur FEniCS Novice (320 points)

1 Answer

+1 vote
 
Best answer

You can still use diameter(), but it now pops up a warning that says to use circumradius() or h() instead.

*** -------------------------------------------------------------------------
*** Warning: CellType::diameter() has been deprecated in FEniCS version 2016.1.
*** It will (likely) be removed in the next FEniCS release.
*** Use CellType::circumradius() or CellType::h() instead.
*** -------------------------------------------------------------------------

If you look at the most recent version of the adaptive_poisson demo, you will see that diameter() has been replaced by h().

answered Aug 1, 2016 by FF FEniCS User (4,630 points)
selected Aug 16, 2016 by johannr

Thanks a lot, I have failed to check the new demos.

...