You need to start up a case of two processes (or more) that "hang" and use a 
debugger to attach to it to see where it is in the code that would make it hang.

  Each debugger has its own syntax to attach to a running process, so you'll 
need to check, but it is straight forward.

   Barry


> On Aug 19, 2019, at 3:49 PM, Kun Jiao via petsc-users 
> <[email protected]> wrote:
> 
> Hi,
>  
> I am running into a problem, different node/process take different time to 
> run petscinitialize. The difference could be 5~10mins.
>  
> I put some check before petscinitialize, and after petscinitialize.
>  
>     MPI_Init(argc, args);
>  
>     int rank;
>     MPI_Comm_rank(MPI_COMM_WORLD, &rank );
>  
>     std::cout << "I am here :"<< rank << "!!!!" << std::endl;
>  
>     PetscErrorCode ierr = PetscInitialize(&argc, &args, (char*)0, help);
>  
>     std::cout << "You am here 2:"<< rank << "!!!!" << std::endl;
>  
>  
> “I am here” message was printout for every process, but not “You are here 2” 
> message.
>  
> Very strange.
>  
> Any suggestion is appreciated.
> 
> Regards,
> Kun
>  
> 
> Schlumberger-Private

Reply via email to