[visit-users] A simple program to test silo file validity.

Olivier Cessenat cessenat at free.fr
Mon Apr 6 13:38:35 EDT 2009


Great, it is fine.

Thanks a lot.

Olivier Cessenat.


Le lundi 06 avril 2009 à 09:15 -0700, Brad Whitlock a écrit :
> Use the GetMetaData() function to return the metadata.
> 
> db = "foo.silo"
> metadata = GetMetaData(db)
> # Print the metadata to see what's in it
> print metadata
> # Iterate over the meshes (this pattern is applicable to other object types)
> for i in range(metadata.GetNumMeshes()):
>      mesh = metadata.GetMeshes(i)
>      if mesh.name in ("quadmesh", "matmesh", "surfmesh", "wiremesh"):
>          do_something(mesh)
> 
> >OK, then I would like to write a script that will look for
> >"quadmesh" being present as well as "matmesh", surfmesh" and "wiremesh".
> >
> >How can I test if those items are present in the Silo file, from a
> >Python script ran by VisIt, or how can I ask for the list of available
> >meshes or data in a Silo file ?
> >
> >Thank you.
> >
> >Olivier Cessenat.
> >
> 
> 




More information about the visit-users mailing list