[visit-developers] mesh of expressions

Kathleen S. Biagas biagas2 at llnl.gov
Mon Jun 1 19:00:22 EDT 2015


Hi Sveta,

Are you trying to get the meshname during the plugin's GetVar method?
You might want to use avtDatabaseMetaData::MeshForVar method.
You can use the protected 'metadata' object of avtFileFormat, IIRC.

Kathleen

On Mon, 2015-06-01 at 22:51 +0000, Miller, Mark C. wrote:
> Hi Sveta,
> 
> 
> Hmm. Well, first, I'll assume you are NOT talking about CMFE
> expressions as those a) change the mesh and b) include information
> about the target mesh in the expression's arguments.
> 
> 
> For other expressions, I think its sufficient to find first terminal
> node (e.g. non-expression term) in the expression and ask that
> variable what its mesh is. However, I am not sure how easy it is to
> traverse an expression in python code. 
> 
> 
> Mark
> 
> 
> 
> 
> From: Sveta <sveta at txcorp.com>
> Reply-To: "visit-developers at elist.ornl.gov"
> <visit-developers at elist.ornl.gov>
> Date: Monday, June 1, 2015 12:52 PM
> To: "visit-developers at elist.ornl.gov"
> <visit-developers at elist.ornl.gov>
> Subject: [visit-developers] mesh of expressions
> 
> 
> 
>         In Vs plugin, we register expressions, but when I try to
>         access the name 
>         of the mesh (exr->GetMesh()) associated with an expression, no
>         name 
>         comes up, although VisIt knows this internally after
>         parsing.  Is there 
>         a way to know the expression's mesh?
>         
>         
>         Thanks,
>         Sveta
>         
>         




More information about the visit-developers mailing list