Thread: An errorin C++

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    1
    Rep Power
    0

    An errorin C++


    Hi
    I use a program in C++ and get this error frequently. Could you please help me to fix it?
    Unable to read the cmd header on the left child context, other MPI
    error , error stack:
    Read failed (1298): an existing connection was forcibly closed by the
    remote host. (errorno 10054)
    Aborting: mpiexec on pc failed to communicate with smpd on pc. Other
    MPI error, error stack:
    Read failed (1298): an existing connection was forcibly closed by the
    remote host. (errorno 10054)
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,379
    Rep Power
    1871
    Read this
    And this

    Comments on this post

    • jaysinhp agrees : A most precise answer for the begginers while posting their quries on I think every forum.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,843
    Rep Power
    480
    It's just an index error. A common mistake. You need to add 1 to the expression on line 92.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo