LLNL / Silo

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

Fix PJ cache for GetComponentType #341

Closed markcmiller86 closed 10 months ago

markcmiller86 commented 10 months 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.