From 7e098d0f538c62bd4c40ba24cf9f7c9961a46e3f Mon Sep 17 00:00:00 2001 From: "Mark (he/his) C. Miller" Date: Thu, 24 Aug 2023 22:51:56 -0700 Subject: [PATCH] Merge pull request #341 from LLNL/mcm86-24aug23-fix-pjcache-failure Fix PJ cache for GetComponentType --- src/pdb_drv/silo_pdb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pdb_drv/silo_pdb.c b/src/pdb_drv/silo_pdb.c index fa86314d..9fc221cd 100644 --- a/src/pdb_drv/silo_pdb.c +++ b/src/pdb_drv/silo_pdb.c @@ -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 @@ -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;