Skip to content

Commit

Permalink
Merge pull request #341 from LLNL/mcm86-24aug23-fix-pjcache-failure
Browse files Browse the repository at this point in the history
Fix PJ cache for GetComponentType
  • Loading branch information
markcmiller86 committed Aug 25, 2023
1 parent 5dd2a6f commit 7e098d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pdb_drv/silo_pdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,9 @@ PJ_GetComponent (PDBfile *file, char const *objname, char const *compname) {
*
* Modified
*
* Mark C. Miller, Thu Aug 24 22:41:23 PDT 2023
* Add use_PJcache_group==0 to conditions controlling whether a new
* call to PJ_GetObject is made.
*--------------------------------------------------------------------
*/
INTERNAL int
Expand All @@ -840,7 +843,7 @@ PJ_GetComponentType (PDBfile *file, char const *objname, char const *compname)

/* If there is no cached group, or we are interested in a
* different object, get the one we want. */
if(cached_group == NULL || cached_obj_name == NULL ||
if(use_PJgroup_cache == 0 || cached_group == NULL || cached_obj_name == NULL ||
(!STR_EQUAL(cached_obj_name, objname)))
{
char *result = NULL;
Expand Down

0 comments on commit 7e098d0

Please # to comment.