← Back to team overview

dolfin team mailing list archive

Re: patch to enable CellData export for vector functions

 

On Thu, Dec 18, 2008 at 03:56:22PM -0700, Bartosz Sawicki wrote:
> On 18/12/08 03:00 PM, Anders Logg wrote:
>> I just pushed an update that should identify discontinuous fields
>> without relying on signatures. See if it works.
>>
>
> Unfortunately, it doesn't work.
> There is a tiny bug.
>
> --- a/dolfin/io/VTKFile.cpp    Thu Dec 18 23:00:10 2008 +0100
> +++ b/dolfin/io/VTKFile.cpp    Thu Dec 18 15:53:04 2008 -0700
> @@ -192,7 +192,7 @@
>    bool only_cell_dofs = dofmap.needs_mesh_entities(tdim);
>    for (uint i = 0; i < tdim; i++)
>    {
> -    if (dofmap.needs_mesh_entities(tdim))
> +    if (dofmap.needs_mesh_entities(i))
>        only_cell_dofs = false;
>    }
>    if (only_cell_dofs)
>
> After this quick fix, works fine. Thanks.
>
> BArtek

Fixed now.

-- 
Anders

Attachment: signature.asc
Description: Digital signature


References