aboutsummaryrefslogtreecommitdiffstats
path: root/methods/powell/powell_method.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'methods/powell/powell_method.hpp')
-rw-r--r--methods/powell/powell_method.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/methods/powell/powell_method.hpp b/methods/powell/powell_method.hpp
index 041fa93..294e101 100644
--- a/methods/powell/powell_method.hpp
+++ b/methods/powell/powell_method.hpp
@@ -116,6 +116,7 @@ namespace opt_utilities
del=0.0;
for(i=0;i<n;++i)
{
+#pragma omp parallel for
for(j=0;j<n;++j)
{
//get_element(xit,j)=xi[j][i];
@@ -138,6 +139,7 @@ namespace opt_utilities
std::cerr<<"powell exceeding maximun iterations."<<std::endl;
return;
}
+#pragma omp parallel for
for(j=0;j<n;++j)
{
//get_element(ptt,j)=T(2.)*get_element(p,j)-get_element(pt,j);
@@ -155,6 +157,7 @@ namespace opt_utilities
if(t<T(0.))
{
linmin(p,xit,fret,*p_fo);
+#pragma omp parallel for
for(j=0;j<n;++j)
{
xi[j][ibig-1]=xi[j][n-1];