def _testHeaderStructure(data, reporter):
    try:
        structUnpack(headerFormat, data)
        reporter.logPass(message="The header structure is correct.")
    except:
        reporter.logError(message="The header is not properly structured.")
        return True
Setup petsc problem just once.
dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/tools/validate.py/_testHeaderStructure--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/solvers/petsc_ksp.py/PetscKSP.setup