move vic_run_ref_str to private thread level
*****************************************************************************/
#include <vic_driver_shared_image.h>
-#pragma omp threadprivate(vic_run_ref_str)
/******************************************************************************
* @brief Run VIC for one timestep and store output data
@@ -56,7 +55,7 @@ vic_image_run(dmy_struct *dmy_current)
sprint_dmy(dmy_str, dmy_current);
debug("Running timestep %zu: %s", current, dmy_str);
- #pragma omp parallel for default(shared) private(i, timer)
+ #pragma omp parallel for default(shared) private(i, timer, vic_run_ref_str)
for (i = 0; i < local_domain.ncells_active; i++) {
// Set global reference string (for debugging inside vic_run)
sprintf(vic_run_ref_str, "Gridcell io_idx: %zu, timestep info: %s",
