Skip to content
Snippets Groups Projects
Commit d51f03bc authored by Gamelin Alexis's avatar Gamelin Alexis
Browse files

Store alive attribute for PhaseSpaceMonitor class

parent b0da65b0
No related branches found
No related tags found
No related merge requests found
......@@ -311,8 +311,10 @@ class PhaseSpaceMonitor(Monitor):
self.bunch_number = bunch_number
self.mp_number = int(mp_number)
group_name = "PhaseSpaceData_" + str(self.bunch_number)
dict_buffer = {"particles":(self.mp_number, 6, buffer_size)}
dict_file = {"particles":(self.mp_number, 6, total_size)}
dict_buffer = {"particles":(self.mp_number, 6, buffer_size),
"alive":(self.mp_number, buffer_size)}
dict_file = {"particles":(self.mp_number, 6, total_size),
"alive":(self.mp_number, total_size)}
self.monitor_init(group_name, save_every, buffer_size, total_size,
dict_buffer, dict_file, file_name, mpi_mode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment