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