This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/grib_api/src/grib_context.c b/grib_api/src/grib_context.c | |
index ecfd1a5..384f005 100644 | |
--- a/grib_api/src/grib_context.c | |
+++ b/grib_api/src/grib_context.c | |
@@ -341,6 +341,8 @@ static grib_context default_grib_context = { | |
0 /* classes */ | |
#if GRIB_PTHREADS | |
,PTHREAD_MUTEX_INITIALIZER /* mutex */ | |
+#elif GRIB_OMP_THREADS | |
+ ,0 /* omp_nest_lock_t */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/grib_context.c b/src/grib_context.c | |
index d4f5a34..d59b7f3 100644 | |
--- a/src/grib_context.c | |
+++ b/src/grib_context.c | |
@@ -1018,8 +1018,12 @@ void codes_assertion_failed(const char* message, const char* file, int line) | |
/* Default behaviour is to abort | |
* unless user has supplied his own assertion routine */ | |
if (assertion == NULL) { | |
+ grib_context* c = NULL; | |
+ c = grib_context_get_default(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace Andrey | |
{ | |
public enum Terrain | |
{ | |
Forest, | |
MountainForest, | |
Marsh, | |
Desert, |
OlderNewer