dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08067
Re: Add min() function to MeshSize for simple extraction of minimal
couldn't a maximal mesh diameter extraction be added to?
In SpecialFunction.h
class MeshSize : public Function
{
public:
.......
/// Compute maximal cell diameter
real max() const
{
CellIterator c(mesh());
real hmax = c->diameter();
for (; !c.end(); ++c)
hmax = std::max(hmax, c->diameter());
return hmax;
}
};
On Wednesday 14 May 2008, DOLFIN wrote:
> One or more new changesets pushed to the primary dolfin repository.
> A short summary of the last three changesets is included below.
>
> changeset: 4186:0dd09125045151da6a650d768e426a859ee182fc
> tag: tip
> user: "Anders Logg <logg@xxxxxxxxx>"
> date: Wed May 14 19:51:19 2008 +0200
> files: ChangeLog dolfin/function/SpecialFunctions.h
> dolfin/swig/dolfin_docstrings.i site-packages/dolfin/__init__.py
> description:
> Add min() function to MeshSize for simple extraction of minimal
> mesh size.
>
> Example:
>
> h = MeshSize(shape, mesh)
> dt = 0.5*h.min()
>
>
--
Nuno David Lopes
References