Skip to content

Commit e3f00ec

Browse files
committed
Update main.py
1 parent ffc169a commit e3f00ec

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

main.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -501,14 +501,15 @@ def save_data(data, filename):
501501
else:
502502
# Using mplrs for enumeration
503503
if args.command in ['prep_C_rays', 'all_between_mplrs', 'all']:
504-
mp_print("\nPreparing for second vertex enumeration step.")
505-
if 'H' not in locals():
506-
H = restore_data('H.dat')
507-
H_eq, H_ineq, linearity_rays = H
508-
509-
width_matrix = prep_mplrs_input(H_eq, H_ineq)
510-
if args.command not in ['all']:
511-
save_data(width_matrix, 'width_matrix.dat')
504+
if mpi_wrapper.is_first_process():
505+
mp_print("\nPreparing for second vertex enumeration step.")
506+
if 'H' not in locals():
507+
H = restore_data('H.dat')
508+
H_eq, H_ineq, linearity_rays = H
509+
510+
width_matrix = prep_mplrs_input(H_eq, H_ineq)
511+
if args.command not in ['all']:
512+
save_data(width_matrix, 'width_matrix.dat')
512513
if args.command in ['calc_C_rays', 'all']:
513514
mp_print("\nPerforming second vertex enumeration step.")
514515
# This step gets skipped when running on a computing cluster,

0 commit comments

Comments
 (0)