File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1173,6 +1173,15 @@ static int darshan_log_get_header(darshan_fd fd)
11731173 (DARSHAN_MAX_MODS - DARSHAN_H5D_MOD - 1 ) * sizeof (uint32_t ));
11741174 fd -> mod_map [DARSHAN_H5D_MOD ].len = fd -> mod_map [DARSHAN_H5D_MOD ].off = 0 ;
11751175 fd -> mod_ver [DARSHAN_H5D_MOD ] = 0 ;
1176+
1177+ uint64_t partial_flag_shift = fd -> partial_flag << 1 ;
1178+ // zero out bits up to (and including) H5D in shifted flags
1179+ partial_flag_shift = (partial_flag_shift >> (DARSHAN_H5D_MOD + 1 )) <<
1180+ (DARSHAN_H5D_MOD + 1 );
1181+ // zero out H5D and all bits higher than it in original flags
1182+ fd -> partial_flag = fd -> partial_flag & ((1 << DARSHAN_H5D_MOD ) - 1 );
1183+ // combine original flags and shifted flags
1184+ fd -> partial_flag = fd -> partial_flag | partial_flag_shift ;
11761185 }
11771186
11781187 /* there may be nothing following the job data, so safety check map */
You can’t perform that action at this time.
0 commit comments