From dadabda3a75141967c21ae583fdbd559e954bb4f Mon Sep 17 00:00:00 2001 From: Eric Engle Date: Fri, 26 Apr 2024 07:35:51 -0400 Subject: [PATCH] Fixed bug with setting OpenMP num threads In Grib2Message.interpolate() method, fixed a bug where num_threads was not being passed to the module-level function interpolate(), which was setting the default value to 1. Version bump to v2.2.1. --- VERSION | 2 +- src/grib2io/_grib2io.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index ccbccc3..c043eea 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.0 +2.2.1 diff --git a/src/grib2io/_grib2io.py b/src/grib2io/_grib2io.py index 4d57ee7..50fe08f 100644 --- a/src/grib2io/_grib2io.py +++ b/src/grib2io/_grib2io.py @@ -1312,7 +1312,7 @@ def interpolate(self, method, grid_def_out, method_options=None, drtn=None, elif msg.typeOfValues == 1: dtype = 'int32' msg._data = interpolate(self.data,method,Grib2GridDef.from_section3(self.section3),grid_def_out, - method_options=method_options).reshape(msg.ny,msg.nx) + method_options=method_options,num_threads=num_threads).reshape(msg.ny,msg.nx) msg.section5[0] = grid_def_out.npoints return msg