summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2011-10-20 02:37:52 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2011-10-20 02:37:52 +0000
commita4118767a26a7e58babfe90484e9395deb774ef9 (patch)
tree8998b7f06644408148de9da76a245da616986df6
parent0c846d7cce9fc8158418e103dfa437739fd619c4 (diff)
downloadATCD-a4118767a26a7e58babfe90484e9395deb774ef9.tar.gz
Thu Oct 20 02:37:36 UTC 2011 William R. Otte <wotte@dre.vanderbilt.edu>
* tools/Split_Plan/Split_Plan.cpp: Warnings.
-rw-r--r--DAnCE/ChangeLog6
-rw-r--r--DAnCE/tools/Split_Plan/Split_Plan.cpp8
2 files changed, 12 insertions, 2 deletions
diff --git a/DAnCE/ChangeLog b/DAnCE/ChangeLog
index acc15fb883e..012a5283551 100644
--- a/DAnCE/ChangeLog
+++ b/DAnCE/ChangeLog
@@ -1,3 +1,9 @@
+Thu Oct 20 02:37:36 UTC 2011 William R. Otte <wotte@dre.vanderbilt.edu>
+
+ * tools/Split_Plan/Split_Plan.cpp:
+
+ Warnings.
+
Wed Oct 19 19:14:34 UTC 2011 William R. Otte <wotte@dre.vanderbilt.edu>
* MPC/config/dance_split_plan.mpb:
diff --git a/DAnCE/tools/Split_Plan/Split_Plan.cpp b/DAnCE/tools/Split_Plan/Split_Plan.cpp
index 50dc66d624e..748dba71586 100644
--- a/DAnCE/tools/Split_Plan/Split_Plan.cpp
+++ b/DAnCE/tools/Split_Plan/Split_Plan.cpp
@@ -159,8 +159,10 @@ namespace DAnCE
sub_plan_list.push_back (list_item);
}
+#ifdef _OPENMP
#pragma omp parallel for
- for (int i = 0; i < sub_plan_list.size (); ++i)
+#endif
+ for (int i = 0; i < static_cast<int> (sub_plan_list.size ()); ++i)
{
// get the sub plan and key for current instance
TSubPlanKey& sub_plan_key = sub_plan_list[i].first;
@@ -181,8 +183,10 @@ namespace DAnCE
// structure.
// (2) Retrieve the necessary information to contruct the sub plans
// one by one.
+#ifdef _OPENMP
#pragma omp parallel for
- for (int i = 0; i < sub_plan_list.size (); ++i)
+#endif
+ for (int i = 0; i < static_cast <int> (sub_plan_list.size ()); ++i)
{
// get the sub plan and key for current instance
TSubPlanKey& sub_plan_key = sub_plan_list[i].first;