From b412239d9f6c5bca968c222af4a2483f70bfb259 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Mon, 5 Sep 2011 13:39:44 +0000 Subject: [PATCH] reflects new output format of DAMASK_spectral to find *** Loadcase... lines. --- processing/post/spectral_iterationCount | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/post/spectral_iterationCount b/processing/post/spectral_iterationCount index 00c7b5c24..54f68e01f 100755 --- a/processing/post/spectral_iterationCount +++ b/processing/post/spectral_iterationCount @@ -79,8 +79,8 @@ for file in files: False : file['input']}[options.memory]: items = line.split() - if len(items) > 7 and items[0] == 'Loadcase': # 'magic' line? - if int(items[5]) == step and int(items[2]) == loadcase: + if len(items) > 8 and items[1] == 'Loadcase': # 'magic' line? + if int(items[6]) == step and int(items[3]) == loadcase: iter += 1 # next iteration found else: output += '\t'.join(map(str,[inc,iter])) + '\n'