diff --git a/doc/en/source/algorithm/mapper_mpi.rst b/doc/en/source/algorithm/mapper_mpi.rst index 36acc06d..021f0b17 100644 --- a/doc/en/source/algorithm/mapper_mpi.rst +++ b/doc/en/source/algorithm/mapper_mpi.rst @@ -58,9 +58,10 @@ Mesh definition file ^^^^^^^^^^^^^^^^^^^^^^^^^^ Define the grid space to be explored in this file. -The first column is the index of the mesh, and the second and subsequent columns are the values of variables defined in ``string_list`` in the ``[solver.param]`` section. +1 + ``dimension`` columns are required. +The first column is the index of the mesh, and the second and subsequent columns are the values of parameter. -Below, a sample file is shown. +A sample file for two dimensions is shown below. .. code-block:: diff --git a/doc/ja/source/algorithm/mapper_mpi.rst b/doc/ja/source/algorithm/mapper_mpi.rst index d7b327d3..716defd8 100644 --- a/doc/ja/source/algorithm/mapper_mpi.rst +++ b/doc/ja/source/algorithm/mapper_mpi.rst @@ -60,11 +60,12 @@ MPI 並列を行う場合は、 `mpi4py None: print("mesh after:", mesh) - fx_order = np.argsort(fx_list) - minimum_point = [] - print("mesh_list[fx_order[0]]:") - print(self.mesh_list[fx_order[0]]) - for index in range(1, dimension + 1): - minimum_point.append(self.mesh_list[fx_order[0]][index]) + if iterations > 0: + fx_order = np.argsort(fx_list) + minimum_point = [] + print("mesh_list[fx_order[0]]:") + print(self.mesh_list[fx_order[0]]) + for index in range(1, dimension + 1): + minimum_point.append(self.mesh_list[fx_order[0]][index]) - time_sta = time.perf_counter() - file_CM.write("#Minimum point :") - for value in minimum_point: - file_CM.write(" {:8f}".format(value)) - file_CM.write("\n") - file_CM.write("#R-factor : {:8f}\n".format(fx_list[fx_order[0]])) - file_CM.write("#see Log{}\n".format(round(self.mesh_list[fx_order[0]][0]))) - time_end = time.perf_counter() - self.timer["run"]["file_CM"] += time_end - time_sta + time_sta = time.perf_counter() + file_CM.write("#Minimum point :") + for value in minimum_point: + file_CM.write(" {:8f}".format(value)) + file_CM.write("\n") + file_CM.write("#R-factor : {:8f}\n".format(fx_list[fx_order[0]])) + file_CM.write("#see Log{}\n".format(round(self.mesh_list[fx_order[0]][0]))) + time_end = time.perf_counter() + self.timer["run"]["file_CM"] += time_end - time_sta + else: + file_CM.write("# No mesh point\n") print( "complete main process : rank {:08d}/{:08d}".format(