diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py index ca4688b7471c7a9e6d44c2342313026da5afbe91..563b136faea6712d1a106e6809523ad61ef374ca 100755 --- a/wetb/prepost/Simulations.py +++ b/wetb/prepost/Simulations.py @@ -1252,14 +1252,14 @@ def create_chunks_htc_pbs(cases, sort_by_values=['[Windspeed]'], ppn=20, # compress all result files into an archive pbs += '\necho "move results into compressed archive"\n' pbs += 'find %s -iname "*.dat" -iname "*.sel" -print0 ' % res_base - fname = 'resfiles_chunk_%05i' % ii + fname = os.path.join(res_base, 'resfiles_chunk_%05i' % ii) pbs += '| xargs -0 tar --remove-files -rf %s.tar\n' % fname pbs += 'xz -z2 -T 15 %s.tar\n' % fname # compress all logfiles into an archive pbs += '\necho "move logfiles into compressed archive"\n' pbs += 'find %s -iname "*.log" -print0 ' % log_base - fname = 'logfiles_chunk_%05i' % ii + fname = os.path.join(log_base, 'logfiles_chunk_%05i' % ii) pbs += '| xargs -0 tar --remove-files -rf %s.tar\n' % fname pbs += 'xz -z2 -T 15 %s.tar\n' % fname