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
commit887f186ddccf9c32fff30165273a3c2dc6cd7cef (patch)
tree8998b7f06644408148de9da76a245da616986df6
parentbde4d515486ab5825de465dd439b2035d88fee0d (diff)
downloadATCD-887f186ddccf9c32fff30165273a3c2dc6cd7cef.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;