LLNL / Silo

Mesh and Field I/O Library and Scientific Database
https://silo.llnl.gov
Other
30 stars 24 forks source link

Fix PJ cache for GetComponentType #341

Closed markcmiller86 closed 1 year ago

markcmiller86 commented 1 year ago

Getting objects in python module using absolute or relative paths (except for ojects in the cwd) was not working.

The PDB driver has a caching mechanism with various variables controlling it. One is an integer flag, use_PJgroup_cache. That flag was being used to control some behavior of the cache but not all of it. I added a test for it as a condition to make a new PJ_GetObject() call from within PJ_GetComponentType().

This corrected the behavior of the python module.