Commit 0654f4c6 authored by Hal Finkel's avatar Hal Finkel
Browse files

fix SZ init

parent e7b1f5b0
......@@ -532,6 +532,18 @@ void GenericIO::write() {
int FilterIdx = 0;
if (Vars[i].LCI.Mode != LossyCompressionInfo::LCModeNone) {
#ifdef _OPENMP
#pragma omp master
{
#endif
if (!sz_initialized) {
SZ_Init(NULL);
sz_initialized = true;
}
#ifdef _OPENMP
}
#endif
int SZDT = GetSZDT(Vars[i]);
if (SZDT == -1)
goto nosz;
......@@ -590,11 +602,6 @@ nosz:
blosc_initialized = true;
}
if (!sz_initialized) {
SZ_Init(NULL);
sz_initialized = true;
}
#ifdef _OPENMP
blosc_set_nthreads(omp_get_max_threads());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment