Skip to content
Snippets Groups Projects
Commit 5f40f5a4 authored by carlocamilloni's avatar carlocamilloni
Browse files

fixed

parent 0a82d573
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,7 @@ void ActionWithVessel::runAllTasks() { ...@@ -275,7 +275,7 @@ void ActionWithVessel::runAllTasks() {
if( dertime_can_be_off ) dertime=false; if( dertime_can_be_off ) dertime=false;
if(timers) stopwatch.start("2 Loop over tasks"); if(timers) stopwatch.start("2 Loop over tasks");
#pragma omp parallel num_threads(nt) schedule(dynamic) #pragma omp parallel num_threads(nt)
{ {
std::vector<double> omp_buffer; std::vector<double> omp_buffer;
if( nt>1 ) omp_buffer.resize( bufsize, 0.0 ); if( nt>1 ) omp_buffer.resize( bufsize, 0.0 );
...@@ -283,7 +283,7 @@ void ActionWithVessel::runAllTasks() { ...@@ -283,7 +283,7 @@ void ActionWithVessel::runAllTasks() {
MultiValue bvals( getNumberOfQuantities(), getNumberOfDerivatives() ); MultiValue bvals( getNumberOfQuantities(), getNumberOfDerivatives() );
myvals.clearAll(); bvals.clearAll(); myvals.clearAll(); bvals.clearAll();
#pragma omp for nowait #pragma omp for nowait schedule(dynamic)
for(unsigned i=rank; i<nactive_tasks; i+=stride) { for(unsigned i=rank; i<nactive_tasks; i+=stride) {
// Calculate the stuff in the loop for this action // Calculate the stuff in the loop for this action
performTask( indexOfTaskInFullList[i], partialTaskList[i], myvals ); performTask( indexOfTaskInFullList[i], partialTaskList[i], myvals );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment