From 8546af9eb5ebfda40316be13727750f0a1c61b57 Mon Sep 17 00:00:00 2001 From: Peter Schaefer Date: Fri, 3 Aug 2012 12:48:35 +0200 Subject: [PATCH] [src] doppelte geschwindigkeit --- src/mex_build_V.cpp | 29 +++++++++++++++++++---------- src/test_sol.m | 2 +- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/mex_build_V.cpp b/src/mex_build_V.cpp index d02a66b..00e0d56 100644 --- a/src/mex_build_V.cpp +++ b/src/mex_build_V.cpp @@ -211,19 +211,24 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { double d[3] = { 0, 0, 0 }; double dt[3] = { 0, 0, 0 }; -#define V_MINROW_PER_WORKER 3 +#define MINSIZE_PER_WORKER 3 +#define MAX_WORKER 10 int actualNumberOfThreads = omp_get_max_threads(); + + if(MAX_WORKER