使用mpi_type_create_subarray收集分布式数据

时间:2019-10-30 10:17:09

标签: view mpi sub-array mpi-io

我正在编写一个mpi代码,该代码需要将分布式数据写入单个文件。当我检查subarray函数时,subarray函数运行良好。但是,如果使用文件集视图功能来收集数据,则文件将包含适当的数据和NaN或类似以下的垃圾数据。

False

0.2317786220294740E-309 NaN 0.2317786709764340E-309    0.2317786698253895E-309 0.0000000000000000E + 00 0.0000000000000000E + 00    0.2317786820155404E-309 0.6953355807072957E-309 0.2317786698253895E-309    0.2317786820155404E-309 0.2317786698250041E-309 0.2317786836681109E-309    0.2073889954983216E-316 0.6953355807081653E-309 0.2317786674551244E-309     0.0000000000000000E + 00 0.0000000000000000E + 00 0.0000000000000000E + 00    0.2317788916456275E-309 0.0000000000000000E + 00 0.0000000000000000E + 00    0.6953355807081653E-309 0.2073889954983216E-316

我该如何解决?

0.0000000000000000E+00    0.0000000000000000E+00    0.0000000000000000E+00
0.0000000000000000E+00    0.1000000000000000E+01    0.1000000000000000E+01
0.1000000000000000E+01    0.1000000000000000E+01    0.2000000000000000E+01
0.2000000000000000E+01    0.0000000000000000E+00    0.0000000000000000E+00
0.0000000000000000E+00    0.0000000000000000E+00    0.1000000000000000E+01
0.1000000000000000E+01    0.1000000000000000E+01    0.1000000000000000E+01
0.2000000000000000E+01    0.2000000000000000E+01    0.3000000000000000E+01
0.3000000000000000E+01    0.3000000000000000E+01    0.3000000000000000E+01
0.3000000000000000E+01    0.0000000000000000E+00   0.2073889954983216E-316

0 个答案:

没有答案