Turn off use of OpenMP in MPIIO/dump_custom_mpiio.cpp if Kokkos is in use.

The convert_string_omp() method breaks when Kokkos is also using OpenMP.
This commit is contained in:
Tim Mattox
2017-03-07 15:23:17 -05:00
parent de27305227
commit d01f09dce2

View File

@ -542,8 +542,8 @@ void DumpCustomMPIIO::write_string(int n, double *mybuf)
#if defined(_OPENMP)
int nthreads = omp_get_max_threads();
if (nthreads > 1)
nsme = convert_string_omp(n,mybuf);
if ((nthreads > 1) && !(lmp->kokkos))
nsme = convert_string_omp(n,mybuf); // not (yet) compatible with Kokkos
else
nsme = convert_string(n,mybuf);
#else