Removed 'critical' section as it may cause problem in calling function. The thread safety is left for the caller

This commit is contained in:
Guilhem Lavaux 2013-08-21 14:50:38 -04:00
parent 083cad3c77
commit 4737ee06a7

View File

@ -99,7 +99,6 @@ namespace CosmoTool
boost::shared_ptr<std::complex<T> >((std::complex<T>*)calls::alloc_complex(Nc),
std::ptr_fun(calls::free)),
dims[0], m_dims_hc, dk);
#pragma omp critical
{
m_analysis = calls::plan_dft_r2c(dims.size(), &swapped_dims[0],
realMap->data(), (typename calls::complex_type *)fourierMap->data(),