BUG: make cell is not working in parallel if there are empty cores
It seems like the make_cell()
of cell_factory.hh is not working properly if in the parallel version one has empty processors. I test this in the python test python_mpi_stochastic_plasticity_search_test.py in the test test_empty_processors
. You have to uncomment the line after the TODO in the file python_mpi_stochastic_plasticity_search_test.py in the branch merge/stochastic_plasticity_stable
# TODO(RLeute): Fix this bug!
# cell = init_cell(res, self.lens, self.formulation, self.fft, self.comm)
to reproduce the BUG run the test on two processors:
mpirun -n 2 python3 python_mpi_stochastic_plasticity_search_test.py
You should see some std::cout and prints down to where I suspect the bug. Even in Debug there is no error thrown, the process just does not stop.
Edited by Richard Leute