@@ -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 ("\n Preparing 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 ("\n Preparing 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 ("\n Performing second vertex enumeration step." )
514515 # This step gets skipped when running on a computing cluster,
0 commit comments