回答編集履歴
1
補記
test
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
という前提で回答します。
|
6
6
|
|
7
|
-
[MPI-2.0の規格書](https://mpi-forum.org/docs/mpi-2.0/mpi-20-html/mpi2-report.htm)の「[4.2. Passing NULL to MPI\_Init](http://mpi-forum.org/docs/mpi-2.0/mpi-20-html/node43.htm)」の項を見ると、次のいずれかの引数指定ができ
|
7
|
+
[MPI-2.0の規格書](https://mpi-forum.org/docs/mpi-2.0/mpi-20-html/mpi2-report.htm)の「[4.2. Passing NULL to MPI\_Init](http://mpi-forum.org/docs/mpi-2.0/mpi-20-html/node43.htm)」の項を見ると、次のいずれかの引数指定ができ、argcpとargvpはNULLでもmain()の引数でもよいと読めます。
|
8
8
|
|
9
9
|
```lang-c++
|
10
|
-
MPI::Init(argc, argv);
|
10
|
+
MPI::Init(argcp, argvp);
|
11
11
|
MPI::Init();
|
12
12
|
|
13
13
|
```
|