On 12/02/2016 04:12 AM, JxW wrote:

The following code reproduces this problem for me
(The CMakeLists.txt simply calls the DEAL_II_INVOKE_AUTOPILOT() macro):

#include <iostream>
#include <deal.II/base/mpi.h>

intmain (int argc, char *argv[]) {
  dealii::Utilities::MPI::MPI_InitFinalize mpi_init (argc, argv);
  std::cout << "Program runs normally." << std::endl;
  return 0;
}

Initially I suspected that the mpi_init object might be optimized away by the
compiler. But adding volatile to its
declaration does not fix this. Now I still do not know what is causing the
problem. Any help or suggestion is appreciated.

Does this also happens with just a single processor? If you run this in a debugger, can you get a backtrace that shows where the problem happens?

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to