From 75fb5a0cc981fc33decfafec33a59d6ff8b09db9 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Tue, 8 Mar 2011 11:39:02 +0100 Subject: [PATCH] MPI: fix in handling SplitN_? equal 1 or smaller --- FDTD/openems_fdtd_mpi.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/FDTD/openems_fdtd_mpi.cpp b/FDTD/openems_fdtd_mpi.cpp index f7f6dc8..4c9c16f 100644 --- a/FDTD/openems_fdtd_mpi.cpp +++ b/FDTD/openems_fdtd_mpi.cpp @@ -136,14 +136,16 @@ bool openEMS_FDTD_MPI::SetupMPI(TiXmlElement* FDTD_Opts) int SplitN=0; if (MPI_Elem->QueryIntAttribute( arg_N_Names[n].c_str(), &SplitN) == TIXML_SUCCESS) { - if (SplitN<=1) - break; - vector jobs = AssignJobs2Threads(m_Original_Grid->GetQtyLines(n)-1, SplitN, true); - unsigned int line=0; - for (size_t i = 0; i1) { - line += jobs.at(i); - SplitNumber[n].push_back(line); + + vector jobs = AssignJobs2Threads(m_Original_Grid->GetQtyLines(n)-1, SplitN, true); + unsigned int line=0; + for (size_t i = 0; i