diff --git a/pub/lib/fit.cpp b/pub/lib/fit.cpp index e4715918b4b64c704c1eed976cd2996fcba9126f..fdffb062ba8df5fde59a4f294d6ececdb6e5ccb7 100644 --- a/pub/lib/fit.cpp +++ b/pub/lib/fit.cpp @@ -221,7 +221,7 @@ void NCurveFit::fit( bool _allow_slow_conv ) control.patience = nCall; control.verbosity = verbosity; -#pragma omp parallel for ordered +#pragma omp parallel for for ( int j=0; j<fc->nJ(); j++ ) { try { if ( fc->V[j]->frozen ) @@ -283,7 +283,6 @@ void NCurveFit::fit( bool _allow_slow_conv ) if( nfreedom<1 ) nfreedom = 1; C->Quality[2] = SQR(status.fnorm) / nfreedom; -#pragma omp ordered { // print results: if( fiter.size()>1 ) @@ -296,7 +295,6 @@ void NCurveFit::fit( bool _allow_slow_conv ) printf( "%s\n", lm_shortmsg[ status.outcome ] ); } } catch (...) { -#pragma omp ordered printf( "Caught unexpected exception" " while fitting spectrum %i\n", j ); } // try