[petsc-users] plexvtk viewer

Jed Brown jedbrown at mcs.anl.gov
Fri May 10 02:48:14 CDT 2013


Matthew Knepley <knepley at gmail.com> writes:

> On Thu, May 9, 2013 at 11:11 AM, Dharmendar Reddy
> <dharmareddy84 at gmail.com>wrote:
>
>> Hello,
>>          I am getting an error, when i try to vec view for dofs defined on
>> nodes and cell centers.  I find this error massage strange, i am the dofs
>> belong to different fields, why is it considered a mixed type object? It
>> works if us fileds with only nodal or only cell dofs
>>
>> Is it possible to support a case wehre i have few fields which are
>> differed on nodes, and few which are defined on cell (this are usually
>> auxiliary variables providing information such as material parameters).
>> Attached a test case
>>
>
> This may be possible. You would have to change the PetscViewerVTKFieldType
> to be bitflags. After that,
> I am not sure if anything would break in the routine. I don't have much
> time right now, but I will look at it
> later if no one else gets to it.

We just need to classify _per field_ rather than per vector.  I think
all the viewing code will work if we have one PetscViewerVTKFieldType
per field.


More information about the petsc-users mailing list