Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-user] Run/Debug configuration in PTP and command-line arguments

Dear Users,

I have a strange problem:

my run and debug configuration use the same executable (compiled with -g) and
run in the same folder with exactly the same arguments:
Parallel program arguments: " < in.myfile".

in main.cpp I added a line to check number of arguments:

int main(int argc, char **argv)
{
  MPI_Init(&argc,&argv);
  //Debug:
  std::cout << "argc = " << argc;
  ...
}

So, Debug configuration works fine and runs as expected (argc = 1).
whereas Run configuration behaves very strange (argc = 3)!

Any ideas what might be wrong?

p/s/ Again, "Parallel program arguments" fields for both configuration are (at least visually) the same!


Kind regards,
Denis.


Back to the top