Skip to content

Commit

Permalink
fix [savedata] intend in postprocessor
Browse files Browse the repository at this point in the history
- does not save the timestep infos
- also removed unused attribute ts_max
  • Loading branch information
sduess committed Sep 11, 2023
1 parent 586af61 commit ce1f32f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions sharpy/postproc/savedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def __init__(self):
self.folder = ''
self.filename = ''
self.filename_linear = ''
self.ts_max = 0
self.caller = None

### specify which classes are saved as hdf5 group
Expand Down Expand Up @@ -147,7 +146,6 @@ def initialise(self, data, custom_settings=None, caller=None, restart=False):
'ct_zeta_star_list',
'dynamic_input'])

self.ts_max = self.data.ts + 1

# create folder for containing files if necessary
self.folder = data.output_folder + '/savedata/'
Expand Down Expand Up @@ -242,10 +240,10 @@ def run(self, **kwargs):
hdfile['data']['nonlifting_body'],
grpname='timestep_info')

for it in range(len(self.data.structure.timestep_info)):
tstep_p = self.data.structure.timestep_info[it]
if tstep_p is not None:
self.save_timestep(self.data, self.settings, it, hdfile)
for it in range(len(self.data.structure.timestep_info)):
tstep_p = self.data.structure.timestep_info[it]
if tstep_p is not None:
self.save_timestep(self.data, self.settings, it, hdfile)

hdfile.close()

Expand Down

0 comments on commit ce1f32f

Please sign in to comment.