make MPI tests work on any number of MPI tasks

15 jobs for generalize_mpi_tests in 20 minutes and 59 seconds (queued for 3 seconds)
Status Name Job ID Coverage
  Static Checks
passed check_no_asserts #1400812

00:00:15

 
  Build Docker
passed build_docker_from_cache #1400813

00:00:14

 
  Test
passed test_mpi #1400815

00:00:33

passed test_serial #1400814

00:09:18

85.0%
 
  Demo Runs
passed run_bernoulli #1400823

00:00:31

passed run_curve_fitting #1400824

00:00:29

passed run_getting_density #1400822

00:08:40

passed run_getting_started_1 #1400818

00:00:35

passed run_getting_started_2 #1400819

00:00:55

passed run_getting_started_3 #1400820

00:06:01

passed run_getting_started_mf #1400821

00:07:51

passed run_ipynb0 #1400816

00:01:28

passed run_ipynb1 #1400817

00:01:34

passed run_meanfield #1400826

00:01:43

passed run_visual_vi #1400825

00:11:09