xtgeo 4.12.1__cp311-cp311-macosx_11_0_arm64.whl → 4.13.1__cp311-cp311-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xtgeo might be problematic. Click here for more details.

cxtgeoPYTHON_wrap.c CHANGED
@@ -14022,152 +14022,6 @@ fail:
14022
14022
  }
14023
14023
 
14024
14024
 
14025
- SWIGINTERN PyObject *_wrap_grd3d_conv_roxapi_grid(PyObject *self, PyObject *args) {
14026
- PyObject *resultobj = 0;
14027
- int arg1 ;
14028
- int arg2 ;
14029
- int arg3 ;
14030
- long arg4 ;
14031
- int *arg5 = (int *) 0 ;
14032
- long arg6 ;
14033
- double *arg7 = (double *) 0 ;
14034
- long arg8 ;
14035
- double *arg9 = (double *) 0 ;
14036
- long arg10 ;
14037
- double *arg11 = (double *) 0 ;
14038
- long arg12 ;
14039
- int *arg13 = (int *) 0 ;
14040
- long arg14 ;
14041
- int val1 ;
14042
- int ecode1 = 0 ;
14043
- int val2 ;
14044
- int ecode2 = 0 ;
14045
- int val3 ;
14046
- int ecode3 = 0 ;
14047
- long val4 ;
14048
- int ecode4 = 0 ;
14049
- PyArrayObject *array5 = NULL ;
14050
- int is_new_object5 = 0 ;
14051
- PyArrayObject *array7 = NULL ;
14052
- int is_new_object7 = 0 ;
14053
- PyArrayObject *array9 = NULL ;
14054
- int i9 = 1 ;
14055
- PyArrayObject *array11 = NULL ;
14056
- int i11 = 1 ;
14057
- PyArrayObject *array13 = NULL ;
14058
- int i13 = 1 ;
14059
- PyObject *swig_obj[9] ;
14060
-
14061
- (void)self;
14062
- if (!SWIG_Python_UnpackTuple(args, "grd3d_conv_roxapi_grid", 9, 9, swig_obj)) SWIG_fail;
14063
- ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14064
- if (!SWIG_IsOK(ecode1)) {
14065
- SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "grd3d_conv_roxapi_grid" "', argument " "1"" of type '" "int""'");
14066
- }
14067
- arg1 = (int)(val1);
14068
- ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14069
- if (!SWIG_IsOK(ecode2)) {
14070
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "grd3d_conv_roxapi_grid" "', argument " "2"" of type '" "int""'");
14071
- }
14072
- arg2 = (int)(val2);
14073
- ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14074
- if (!SWIG_IsOK(ecode3)) {
14075
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "grd3d_conv_roxapi_grid" "', argument " "3"" of type '" "int""'");
14076
- }
14077
- arg3 = (int)(val3);
14078
- ecode4 = SWIG_AsVal_long(swig_obj[3], &val4);
14079
- if (!SWIG_IsOK(ecode4)) {
14080
- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "grd3d_conv_roxapi_grid" "', argument " "4"" of type '" "long""'");
14081
- }
14082
- arg4 = (long)(val4);
14083
- {
14084
- npy_intp size[1] = {
14085
- -1
14086
- };
14087
- array5 = obj_to_array_contiguous_allow_conversion(swig_obj[4],
14088
- NPY_INT,
14089
- &is_new_object5);
14090
- if (!array5 || !require_dimensions(array5, 1) ||
14091
- !require_size(array5, size, 1)) SWIG_fail;
14092
- arg5 = (int*) array_data(array5);
14093
- arg6 = (long) array_size(array5,0);
14094
- }
14095
- {
14096
- npy_intp size[1] = {
14097
- -1
14098
- };
14099
- array7 = obj_to_array_contiguous_allow_conversion(swig_obj[5],
14100
- NPY_DOUBLE,
14101
- &is_new_object7);
14102
- if (!array7 || !require_dimensions(array7, 1) ||
14103
- !require_size(array7, size, 1)) SWIG_fail;
14104
- arg7 = (double*) array_data(array7);
14105
- arg8 = (long) array_size(array7,0);
14106
- }
14107
- {
14108
- array9 = obj_to_array_no_conversion(swig_obj[6], NPY_DOUBLE);
14109
- if (!array9 || !require_dimensions(array9,1) || !require_contiguous(array9)
14110
- || !require_native(array9)) SWIG_fail;
14111
- arg9 = (double*) array_data(array9);
14112
- arg10 = 1;
14113
- for (i9=0; i9 < array_numdims(array9); ++i9) arg10 *= array_size(array9,i9);
14114
- }
14115
- {
14116
- array11 = obj_to_array_no_conversion(swig_obj[7], NPY_DOUBLE);
14117
- if (!array11 || !require_dimensions(array11,1) || !require_contiguous(array11)
14118
- || !require_native(array11)) SWIG_fail;
14119
- arg11 = (double*) array_data(array11);
14120
- arg12 = 1;
14121
- for (i11=0; i11 < array_numdims(array11); ++i11) arg12 *= array_size(array11,i11);
14122
- }
14123
- {
14124
- array13 = obj_to_array_no_conversion(swig_obj[8], NPY_INT);
14125
- if (!array13 || !require_dimensions(array13,1) || !require_contiguous(array13)
14126
- || !require_native(array13)) SWIG_fail;
14127
- arg13 = (int*) array_data(array13);
14128
- arg14 = 1;
14129
- for (i13=0; i13 < array_numdims(array13); ++i13) arg14 *= array_size(array13,i13);
14130
- }
14131
- {
14132
- char *err;
14133
- clear_exception();
14134
- grd3d_conv_roxapi_grid(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
14135
- if ((err = check_exception())) {
14136
- PyErr_SetString(PY_XTGeoCLibError, err);
14137
- return NULL;
14138
- }
14139
- }
14140
- resultobj = SWIG_Py_Void();
14141
- {
14142
- if (is_new_object5 && array5)
14143
- {
14144
- Py_DECREF(array5);
14145
- }
14146
- }
14147
- {
14148
- if (is_new_object7 && array7)
14149
- {
14150
- Py_DECREF(array7);
14151
- }
14152
- }
14153
- return resultobj;
14154
- fail:
14155
- {
14156
- if (is_new_object5 && array5)
14157
- {
14158
- Py_DECREF(array5);
14159
- }
14160
- }
14161
- {
14162
- if (is_new_object7 && array7)
14163
- {
14164
- Py_DECREF(array7);
14165
- }
14166
- }
14167
- return NULL;
14168
- }
14169
-
14170
-
14171
14025
  SWIGINTERN PyObject *_wrap_grd3d_roff2xtgeo_splitenz(PyObject *self, PyObject *args) {
14172
14026
  PyObject *resultobj = 0;
14173
14027
  int arg1 ;
@@ -14247,203 +14101,6 @@ fail:
14247
14101
  }
14248
14102
 
14249
14103
 
14250
- SWIGINTERN PyObject *_wrap_grd3d_conv_grid_roxapi(PyObject *self, PyObject *args) {
14251
- PyObject *resultobj = 0;
14252
- int arg1 ;
14253
- int arg2 ;
14254
- int arg3 ;
14255
- double *arg4 = (double *) 0 ;
14256
- long arg5 ;
14257
- double *arg6 = (double *) 0 ;
14258
- long arg7 ;
14259
- int *arg8 = (int *) 0 ;
14260
- long arg9 ;
14261
- double *arg10 = (double *) 0 ;
14262
- long arg11 ;
14263
- double *arg12 = (double *) 0 ;
14264
- long arg13 ;
14265
- double *arg14 = (double *) 0 ;
14266
- long arg15 ;
14267
- int val1 ;
14268
- int ecode1 = 0 ;
14269
- int val2 ;
14270
- int ecode2 = 0 ;
14271
- int val3 ;
14272
- int ecode3 = 0 ;
14273
- PyArrayObject *array4 = NULL ;
14274
- int is_new_object4 = 0 ;
14275
- PyArrayObject *array6 = NULL ;
14276
- int is_new_object6 = 0 ;
14277
- PyArrayObject *array8 = NULL ;
14278
- int is_new_object8 = 0 ;
14279
- PyObject *array10 = NULL ;
14280
- PyObject *array12 = NULL ;
14281
- PyObject *array14 = NULL ;
14282
- PyObject *swig_obj[9] ;
14283
- int result;
14284
-
14285
- (void)self;
14286
- if (!SWIG_Python_UnpackTuple(args, "grd3d_conv_grid_roxapi", 9, 9, swig_obj)) SWIG_fail;
14287
- ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14288
- if (!SWIG_IsOK(ecode1)) {
14289
- SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "grd3d_conv_grid_roxapi" "', argument " "1"" of type '" "int""'");
14290
- }
14291
- arg1 = (int)(val1);
14292
- ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14293
- if (!SWIG_IsOK(ecode2)) {
14294
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "grd3d_conv_grid_roxapi" "', argument " "2"" of type '" "int""'");
14295
- }
14296
- arg2 = (int)(val2);
14297
- ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14298
- if (!SWIG_IsOK(ecode3)) {
14299
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "grd3d_conv_grid_roxapi" "', argument " "3"" of type '" "int""'");
14300
- }
14301
- arg3 = (int)(val3);
14302
- {
14303
- npy_intp size[1] = {
14304
- -1
14305
- };
14306
- array4 = obj_to_array_contiguous_allow_conversion(swig_obj[3],
14307
- NPY_DOUBLE,
14308
- &is_new_object4);
14309
- if (!array4 || !require_dimensions(array4, 1) ||
14310
- !require_size(array4, size, 1)) SWIG_fail;
14311
- arg4 = (double*) array_data(array4);
14312
- arg5 = (long) array_size(array4,0);
14313
- }
14314
- {
14315
- npy_intp size[1] = {
14316
- -1
14317
- };
14318
- array6 = obj_to_array_contiguous_allow_conversion(swig_obj[4],
14319
- NPY_DOUBLE,
14320
- &is_new_object6);
14321
- if (!array6 || !require_dimensions(array6, 1) ||
14322
- !require_size(array6, size, 1)) SWIG_fail;
14323
- arg6 = (double*) array_data(array6);
14324
- arg7 = (long) array_size(array6,0);
14325
- }
14326
- {
14327
- npy_intp size[1] = {
14328
- -1
14329
- };
14330
- array8 = obj_to_array_contiguous_allow_conversion(swig_obj[5],
14331
- NPY_INT,
14332
- &is_new_object8);
14333
- if (!array8 || !require_dimensions(array8, 1) ||
14334
- !require_size(array8, size, 1)) SWIG_fail;
14335
- arg8 = (int*) array_data(array8);
14336
- arg9 = (long) array_size(array8,0);
14337
- }
14338
- {
14339
- npy_intp dims[1];
14340
- if (!PyInt_Check(swig_obj[6]))
14341
- {
14342
- const char* typestring = pytype_string(swig_obj[6]);
14343
- PyErr_Format(PyExc_TypeError,
14344
- "Int dimension expected. '%s' given.",
14345
- typestring);
14346
- SWIG_fail;
14347
- }
14348
- arg11 = (long) PyInt_AsLong(swig_obj[6]);
14349
- dims[0] = (npy_intp) arg11;
14350
- array10 = PyArray_SimpleNew(1, dims, NPY_DOUBLE);
14351
- if (!array10) SWIG_fail;
14352
- arg10 = (double*) array_data(array10);
14353
- }
14354
- {
14355
- npy_intp dims[1];
14356
- if (!PyInt_Check(swig_obj[7]))
14357
- {
14358
- const char* typestring = pytype_string(swig_obj[7]);
14359
- PyErr_Format(PyExc_TypeError,
14360
- "Int dimension expected. '%s' given.",
14361
- typestring);
14362
- SWIG_fail;
14363
- }
14364
- arg13 = (long) PyInt_AsLong(swig_obj[7]);
14365
- dims[0] = (npy_intp) arg13;
14366
- array12 = PyArray_SimpleNew(1, dims, NPY_DOUBLE);
14367
- if (!array12) SWIG_fail;
14368
- arg12 = (double*) array_data(array12);
14369
- }
14370
- {
14371
- npy_intp dims[1];
14372
- if (!PyInt_Check(swig_obj[8]))
14373
- {
14374
- const char* typestring = pytype_string(swig_obj[8]);
14375
- PyErr_Format(PyExc_TypeError,
14376
- "Int dimension expected. '%s' given.",
14377
- typestring);
14378
- SWIG_fail;
14379
- }
14380
- arg15 = (long) PyInt_AsLong(swig_obj[8]);
14381
- dims[0] = (npy_intp) arg15;
14382
- array14 = PyArray_SimpleNew(1, dims, NPY_DOUBLE);
14383
- if (!array14) SWIG_fail;
14384
- arg14 = (double*) array_data(array14);
14385
- }
14386
- {
14387
- char *err;
14388
- clear_exception();
14389
- result = (int)grd3d_conv_grid_roxapi(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
14390
- if ((err = check_exception())) {
14391
- PyErr_SetString(PY_XTGeoCLibError, err);
14392
- return NULL;
14393
- }
14394
- }
14395
- resultobj = SWIG_From_int((int)(result));
14396
- {
14397
- resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array10);
14398
- }
14399
- {
14400
- resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array12);
14401
- }
14402
- {
14403
- resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array14);
14404
- }
14405
- {
14406
- if (is_new_object4 && array4)
14407
- {
14408
- Py_DECREF(array4);
14409
- }
14410
- }
14411
- {
14412
- if (is_new_object6 && array6)
14413
- {
14414
- Py_DECREF(array6);
14415
- }
14416
- }
14417
- {
14418
- if (is_new_object8 && array8)
14419
- {
14420
- Py_DECREF(array8);
14421
- }
14422
- }
14423
- return resultobj;
14424
- fail:
14425
- {
14426
- if (is_new_object4 && array4)
14427
- {
14428
- Py_DECREF(array4);
14429
- }
14430
- }
14431
- {
14432
- if (is_new_object6 && array6)
14433
- {
14434
- Py_DECREF(array6);
14435
- }
14436
- }
14437
- {
14438
- if (is_new_object8 && array8)
14439
- {
14440
- Py_DECREF(array8);
14441
- }
14442
- }
14443
- return NULL;
14444
- }
14445
-
14446
-
14447
14104
  SWIGINTERN PyObject *_wrap_grd3d_crop_geometry(PyObject *self, PyObject *args) {
14448
14105
  PyObject *resultobj = 0;
14449
14106
  int arg1 ;
@@ -15017,228 +14674,6 @@ fail:
15017
14674
  }
15018
14675
 
15019
14676
 
15020
- SWIGINTERN PyObject *_wrap_grd3d_convert_hybrid(PyObject *self, PyObject *args) {
15021
- PyObject *resultobj = 0;
15022
- int arg1 ;
15023
- int arg2 ;
15024
- int arg3 ;
15025
- double *arg4 = (double *) 0 ;
15026
- long arg5 ;
15027
- double *arg6 = (double *) 0 ;
15028
- long arg7 ;
15029
- int *arg8 = (int *) 0 ;
15030
- long arg9 ;
15031
- int arg10 ;
15032
- double *arg11 = (double *) 0 ;
15033
- long arg12 ;
15034
- int *arg13 = (int *) 0 ;
15035
- long arg14 ;
15036
- double arg15 ;
15037
- double arg16 ;
15038
- int arg17 ;
15039
- int *arg18 = (int *) 0 ;
15040
- long arg19 ;
15041
- int arg20 ;
15042
- int val1 ;
15043
- int ecode1 = 0 ;
15044
- int val2 ;
15045
- int ecode2 = 0 ;
15046
- int val3 ;
15047
- int ecode3 = 0 ;
15048
- PyArrayObject *array4 = NULL ;
15049
- int is_new_object4 = 0 ;
15050
- PyArrayObject *array6 = NULL ;
15051
- int is_new_object6 = 0 ;
15052
- PyArrayObject *array8 = NULL ;
15053
- int is_new_object8 = 0 ;
15054
- int val10 ;
15055
- int ecode10 = 0 ;
15056
- PyArrayObject *array11 = NULL ;
15057
- int i11 = 1 ;
15058
- PyArrayObject *array13 = NULL ;
15059
- int i13 = 1 ;
15060
- double val15 ;
15061
- int ecode15 = 0 ;
15062
- double val16 ;
15063
- int ecode16 = 0 ;
15064
- int val17 ;
15065
- int ecode17 = 0 ;
15066
- PyArrayObject *array18 = NULL ;
15067
- int is_new_object18 = 0 ;
15068
- int val20 ;
15069
- int ecode20 = 0 ;
15070
- PyObject *swig_obj[14] ;
15071
-
15072
- (void)self;
15073
- if (!SWIG_Python_UnpackTuple(args, "grd3d_convert_hybrid", 14, 14, swig_obj)) SWIG_fail;
15074
- ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
15075
- if (!SWIG_IsOK(ecode1)) {
15076
- SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "grd3d_convert_hybrid" "', argument " "1"" of type '" "int""'");
15077
- }
15078
- arg1 = (int)(val1);
15079
- ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15080
- if (!SWIG_IsOK(ecode2)) {
15081
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "grd3d_convert_hybrid" "', argument " "2"" of type '" "int""'");
15082
- }
15083
- arg2 = (int)(val2);
15084
- ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15085
- if (!SWIG_IsOK(ecode3)) {
15086
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "grd3d_convert_hybrid" "', argument " "3"" of type '" "int""'");
15087
- }
15088
- arg3 = (int)(val3);
15089
- {
15090
- npy_intp size[1] = {
15091
- -1
15092
- };
15093
- array4 = obj_to_array_contiguous_allow_conversion(swig_obj[3],
15094
- NPY_DOUBLE,
15095
- &is_new_object4);
15096
- if (!array4 || !require_dimensions(array4, 1) ||
15097
- !require_size(array4, size, 1)) SWIG_fail;
15098
- arg4 = (double*) array_data(array4);
15099
- arg5 = (long) array_size(array4,0);
15100
- }
15101
- {
15102
- npy_intp size[1] = {
15103
- -1
15104
- };
15105
- array6 = obj_to_array_contiguous_allow_conversion(swig_obj[4],
15106
- NPY_DOUBLE,
15107
- &is_new_object6);
15108
- if (!array6 || !require_dimensions(array6, 1) ||
15109
- !require_size(array6, size, 1)) SWIG_fail;
15110
- arg6 = (double*) array_data(array6);
15111
- arg7 = (long) array_size(array6,0);
15112
- }
15113
- {
15114
- npy_intp size[1] = {
15115
- -1
15116
- };
15117
- array8 = obj_to_array_contiguous_allow_conversion(swig_obj[5],
15118
- NPY_INT,
15119
- &is_new_object8);
15120
- if (!array8 || !require_dimensions(array8, 1) ||
15121
- !require_size(array8, size, 1)) SWIG_fail;
15122
- arg8 = (int*) array_data(array8);
15123
- arg9 = (long) array_size(array8,0);
15124
- }
15125
- ecode10 = SWIG_AsVal_int(swig_obj[6], &val10);
15126
- if (!SWIG_IsOK(ecode10)) {
15127
- SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "grd3d_convert_hybrid" "', argument " "10"" of type '" "int""'");
15128
- }
15129
- arg10 = (int)(val10);
15130
- {
15131
- array11 = obj_to_array_no_conversion(swig_obj[7], NPY_DOUBLE);
15132
- if (!array11 || !require_dimensions(array11,1) || !require_contiguous(array11)
15133
- || !require_native(array11)) SWIG_fail;
15134
- arg11 = (double*) array_data(array11);
15135
- arg12 = 1;
15136
- for (i11=0; i11 < array_numdims(array11); ++i11) arg12 *= array_size(array11,i11);
15137
- }
15138
- {
15139
- array13 = obj_to_array_no_conversion(swig_obj[8], NPY_INT);
15140
- if (!array13 || !require_dimensions(array13,1) || !require_contiguous(array13)
15141
- || !require_native(array13)) SWIG_fail;
15142
- arg13 = (int*) array_data(array13);
15143
- arg14 = 1;
15144
- for (i13=0; i13 < array_numdims(array13); ++i13) arg14 *= array_size(array13,i13);
15145
- }
15146
- ecode15 = SWIG_AsVal_double(swig_obj[9], &val15);
15147
- if (!SWIG_IsOK(ecode15)) {
15148
- SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "grd3d_convert_hybrid" "', argument " "15"" of type '" "double""'");
15149
- }
15150
- arg15 = (double)(val15);
15151
- ecode16 = SWIG_AsVal_double(swig_obj[10], &val16);
15152
- if (!SWIG_IsOK(ecode16)) {
15153
- SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "grd3d_convert_hybrid" "', argument " "16"" of type '" "double""'");
15154
- }
15155
- arg16 = (double)(val16);
15156
- ecode17 = SWIG_AsVal_int(swig_obj[11], &val17);
15157
- if (!SWIG_IsOK(ecode17)) {
15158
- SWIG_exception_fail(SWIG_ArgError(ecode17), "in method '" "grd3d_convert_hybrid" "', argument " "17"" of type '" "int""'");
15159
- }
15160
- arg17 = (int)(val17);
15161
- {
15162
- npy_intp size[1] = {
15163
- -1
15164
- };
15165
- array18 = obj_to_array_contiguous_allow_conversion(swig_obj[12],
15166
- NPY_INT,
15167
- &is_new_object18);
15168
- if (!array18 || !require_dimensions(array18, 1) ||
15169
- !require_size(array18, size, 1)) SWIG_fail;
15170
- arg18 = (int*) array_data(array18);
15171
- arg19 = (long) array_size(array18,0);
15172
- }
15173
- ecode20 = SWIG_AsVal_int(swig_obj[13], &val20);
15174
- if (!SWIG_IsOK(ecode20)) {
15175
- SWIG_exception_fail(SWIG_ArgError(ecode20), "in method '" "grd3d_convert_hybrid" "', argument " "20"" of type '" "int""'");
15176
- }
15177
- arg20 = (int)(val20);
15178
- {
15179
- char *err;
15180
- clear_exception();
15181
- grd3d_convert_hybrid(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20);
15182
- if ((err = check_exception())) {
15183
- PyErr_SetString(PY_XTGeoCLibError, err);
15184
- return NULL;
15185
- }
15186
- }
15187
- resultobj = SWIG_Py_Void();
15188
- {
15189
- if (is_new_object4 && array4)
15190
- {
15191
- Py_DECREF(array4);
15192
- }
15193
- }
15194
- {
15195
- if (is_new_object6 && array6)
15196
- {
15197
- Py_DECREF(array6);
15198
- }
15199
- }
15200
- {
15201
- if (is_new_object8 && array8)
15202
- {
15203
- Py_DECREF(array8);
15204
- }
15205
- }
15206
- {
15207
- if (is_new_object18 && array18)
15208
- {
15209
- Py_DECREF(array18);
15210
- }
15211
- }
15212
- return resultobj;
15213
- fail:
15214
- {
15215
- if (is_new_object4 && array4)
15216
- {
15217
- Py_DECREF(array4);
15218
- }
15219
- }
15220
- {
15221
- if (is_new_object6 && array6)
15222
- {
15223
- Py_DECREF(array6);
15224
- }
15225
- }
15226
- {
15227
- if (is_new_object8 && array8)
15228
- {
15229
- Py_DECREF(array8);
15230
- }
15231
- }
15232
- {
15233
- if (is_new_object18 && array18)
15234
- {
15235
- Py_DECREF(array18);
15236
- }
15237
- }
15238
- return NULL;
15239
- }
15240
-
15241
-
15242
14677
  SWIGINTERN PyObject *_wrap_grd3d_make_z_consistent(PyObject *self, PyObject *args) {
15243
14678
  PyObject *resultobj = 0;
15244
14679
  int arg1 ;
@@ -15305,208 +14740,6 @@ fail:
15305
14740
  }
15306
14741
 
15307
14742
 
15308
- SWIGINTERN PyObject *_wrap_grd3d_translate(PyObject *self, PyObject *args) {
15309
- PyObject *resultobj = 0;
15310
- int arg1 ;
15311
- int arg2 ;
15312
- int arg3 ;
15313
- int arg4 ;
15314
- int arg5 ;
15315
- int arg6 ;
15316
- double arg7 ;
15317
- double arg8 ;
15318
- double arg9 ;
15319
- double *arg10 = (double *) 0 ;
15320
- long arg11 ;
15321
- double *arg12 = (double *) 0 ;
15322
- long arg13 ;
15323
- int val1 ;
15324
- int ecode1 = 0 ;
15325
- int val2 ;
15326
- int ecode2 = 0 ;
15327
- int val3 ;
15328
- int ecode3 = 0 ;
15329
- int val4 ;
15330
- int ecode4 = 0 ;
15331
- int val5 ;
15332
- int ecode5 = 0 ;
15333
- int val6 ;
15334
- int ecode6 = 0 ;
15335
- double val7 ;
15336
- int ecode7 = 0 ;
15337
- double val8 ;
15338
- int ecode8 = 0 ;
15339
- double val9 ;
15340
- int ecode9 = 0 ;
15341
- PyArrayObject *array10 = NULL ;
15342
- int i10 = 1 ;
15343
- PyArrayObject *array12 = NULL ;
15344
- int i12 = 1 ;
15345
- PyObject *swig_obj[11] ;
15346
- int result;
15347
-
15348
- (void)self;
15349
- if (!SWIG_Python_UnpackTuple(args, "grd3d_translate", 11, 11, swig_obj)) SWIG_fail;
15350
- ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
15351
- if (!SWIG_IsOK(ecode1)) {
15352
- SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "grd3d_translate" "', argument " "1"" of type '" "int""'");
15353
- }
15354
- arg1 = (int)(val1);
15355
- ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15356
- if (!SWIG_IsOK(ecode2)) {
15357
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "grd3d_translate" "', argument " "2"" of type '" "int""'");
15358
- }
15359
- arg2 = (int)(val2);
15360
- ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15361
- if (!SWIG_IsOK(ecode3)) {
15362
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "grd3d_translate" "', argument " "3"" of type '" "int""'");
15363
- }
15364
- arg3 = (int)(val3);
15365
- ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
15366
- if (!SWIG_IsOK(ecode4)) {
15367
- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "grd3d_translate" "', argument " "4"" of type '" "int""'");
15368
- }
15369
- arg4 = (int)(val4);
15370
- ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
15371
- if (!SWIG_IsOK(ecode5)) {
15372
- SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "grd3d_translate" "', argument " "5"" of type '" "int""'");
15373
- }
15374
- arg5 = (int)(val5);
15375
- ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
15376
- if (!SWIG_IsOK(ecode6)) {
15377
- SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "grd3d_translate" "', argument " "6"" of type '" "int""'");
15378
- }
15379
- arg6 = (int)(val6);
15380
- ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
15381
- if (!SWIG_IsOK(ecode7)) {
15382
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "grd3d_translate" "', argument " "7"" of type '" "double""'");
15383
- }
15384
- arg7 = (double)(val7);
15385
- ecode8 = SWIG_AsVal_double(swig_obj[7], &val8);
15386
- if (!SWIG_IsOK(ecode8)) {
15387
- SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "grd3d_translate" "', argument " "8"" of type '" "double""'");
15388
- }
15389
- arg8 = (double)(val8);
15390
- ecode9 = SWIG_AsVal_double(swig_obj[8], &val9);
15391
- if (!SWIG_IsOK(ecode9)) {
15392
- SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "grd3d_translate" "', argument " "9"" of type '" "double""'");
15393
- }
15394
- arg9 = (double)(val9);
15395
- {
15396
- array10 = obj_to_array_no_conversion(swig_obj[9], NPY_DOUBLE);
15397
- if (!array10 || !require_dimensions(array10,1) || !require_contiguous(array10)
15398
- || !require_native(array10)) SWIG_fail;
15399
- arg10 = (double*) array_data(array10);
15400
- arg11 = 1;
15401
- for (i10=0; i10 < array_numdims(array10); ++i10) arg11 *= array_size(array10,i10);
15402
- }
15403
- {
15404
- array12 = obj_to_array_no_conversion(swig_obj[10], NPY_DOUBLE);
15405
- if (!array12 || !require_dimensions(array12,1) || !require_contiguous(array12)
15406
- || !require_native(array12)) SWIG_fail;
15407
- arg12 = (double*) array_data(array12);
15408
- arg13 = 1;
15409
- for (i12=0; i12 < array_numdims(array12); ++i12) arg13 *= array_size(array12,i12);
15410
- }
15411
- {
15412
- char *err;
15413
- clear_exception();
15414
- result = (int)grd3d_translate(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
15415
- if ((err = check_exception())) {
15416
- PyErr_SetString(PY_XTGeoCLibError, err);
15417
- return NULL;
15418
- }
15419
- }
15420
- resultobj = SWIG_From_int((int)(result));
15421
- return resultobj;
15422
- fail:
15423
- return NULL;
15424
- }
15425
-
15426
-
15427
- SWIGINTERN PyObject *_wrap_grd3d_reverse_jrows(PyObject *self, PyObject *args) {
15428
- PyObject *resultobj = 0;
15429
- int arg1 ;
15430
- int arg2 ;
15431
- int arg3 ;
15432
- double *arg4 = (double *) 0 ;
15433
- long arg5 ;
15434
- double *arg6 = (double *) 0 ;
15435
- long arg7 ;
15436
- int *arg8 = (int *) 0 ;
15437
- long arg9 ;
15438
- int val1 ;
15439
- int ecode1 = 0 ;
15440
- int val2 ;
15441
- int ecode2 = 0 ;
15442
- int val3 ;
15443
- int ecode3 = 0 ;
15444
- PyArrayObject *array4 = NULL ;
15445
- int i4 = 1 ;
15446
- PyArrayObject *array6 = NULL ;
15447
- int i6 = 1 ;
15448
- PyArrayObject *array8 = NULL ;
15449
- int i8 = 1 ;
15450
- PyObject *swig_obj[6] ;
15451
- int result;
15452
-
15453
- (void)self;
15454
- if (!SWIG_Python_UnpackTuple(args, "grd3d_reverse_jrows", 6, 6, swig_obj)) SWIG_fail;
15455
- ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
15456
- if (!SWIG_IsOK(ecode1)) {
15457
- SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "grd3d_reverse_jrows" "', argument " "1"" of type '" "int""'");
15458
- }
15459
- arg1 = (int)(val1);
15460
- ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15461
- if (!SWIG_IsOK(ecode2)) {
15462
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "grd3d_reverse_jrows" "', argument " "2"" of type '" "int""'");
15463
- }
15464
- arg2 = (int)(val2);
15465
- ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15466
- if (!SWIG_IsOK(ecode3)) {
15467
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "grd3d_reverse_jrows" "', argument " "3"" of type '" "int""'");
15468
- }
15469
- arg3 = (int)(val3);
15470
- {
15471
- array4 = obj_to_array_no_conversion(swig_obj[3], NPY_DOUBLE);
15472
- if (!array4 || !require_dimensions(array4,1) || !require_contiguous(array4)
15473
- || !require_native(array4)) SWIG_fail;
15474
- arg4 = (double*) array_data(array4);
15475
- arg5 = 1;
15476
- for (i4=0; i4 < array_numdims(array4); ++i4) arg5 *= array_size(array4,i4);
15477
- }
15478
- {
15479
- array6 = obj_to_array_no_conversion(swig_obj[4], NPY_DOUBLE);
15480
- if (!array6 || !require_dimensions(array6,1) || !require_contiguous(array6)
15481
- || !require_native(array6)) SWIG_fail;
15482
- arg6 = (double*) array_data(array6);
15483
- arg7 = 1;
15484
- for (i6=0; i6 < array_numdims(array6); ++i6) arg7 *= array_size(array6,i6);
15485
- }
15486
- {
15487
- array8 = obj_to_array_no_conversion(swig_obj[5], NPY_INT);
15488
- if (!array8 || !require_dimensions(array8,1) || !require_contiguous(array8)
15489
- || !require_native(array8)) SWIG_fail;
15490
- arg8 = (int*) array_data(array8);
15491
- arg9 = 1;
15492
- for (i8=0; i8 < array_numdims(array8); ++i8) arg9 *= array_size(array8,i8);
15493
- }
15494
- {
15495
- char *err;
15496
- clear_exception();
15497
- result = (int)grd3d_reverse_jrows(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
15498
- if ((err = check_exception())) {
15499
- PyErr_SetString(PY_XTGeoCLibError, err);
15500
- return NULL;
15501
- }
15502
- }
15503
- resultobj = SWIG_From_int((int)(result));
15504
- return resultobj;
15505
- fail:
15506
- return NULL;
15507
- }
15508
-
15509
-
15510
14743
  SWIGINTERN PyObject *_wrap_grd3d_point_val_crange(PyObject *self, PyObject *args) {
15511
14744
  PyObject *resultobj = 0;
15512
14745
  double arg1 ;
@@ -16218,76 +15451,6 @@ fail:
16218
15451
  }
16219
15452
 
16220
15453
 
16221
- SWIGINTERN PyObject *_wrap_grd3d_collapse_inact(PyObject *self, PyObject *args) {
16222
- PyObject *resultobj = 0;
16223
- int arg1 ;
16224
- int arg2 ;
16225
- int arg3 ;
16226
- double *arg4 = (double *) 0 ;
16227
- long arg5 ;
16228
- int *arg6 = (int *) 0 ;
16229
- long arg7 ;
16230
- int val1 ;
16231
- int ecode1 = 0 ;
16232
- int val2 ;
16233
- int ecode2 = 0 ;
16234
- int val3 ;
16235
- int ecode3 = 0 ;
16236
- PyArrayObject *array4 = NULL ;
16237
- int i4 = 1 ;
16238
- PyArrayObject *array6 = NULL ;
16239
- int i6 = 1 ;
16240
- PyObject *swig_obj[5] ;
16241
-
16242
- (void)self;
16243
- if (!SWIG_Python_UnpackTuple(args, "grd3d_collapse_inact", 5, 5, swig_obj)) SWIG_fail;
16244
- ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
16245
- if (!SWIG_IsOK(ecode1)) {
16246
- SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "grd3d_collapse_inact" "', argument " "1"" of type '" "int""'");
16247
- }
16248
- arg1 = (int)(val1);
16249
- ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16250
- if (!SWIG_IsOK(ecode2)) {
16251
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "grd3d_collapse_inact" "', argument " "2"" of type '" "int""'");
16252
- }
16253
- arg2 = (int)(val2);
16254
- ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
16255
- if (!SWIG_IsOK(ecode3)) {
16256
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "grd3d_collapse_inact" "', argument " "3"" of type '" "int""'");
16257
- }
16258
- arg3 = (int)(val3);
16259
- {
16260
- array4 = obj_to_array_no_conversion(swig_obj[3], NPY_DOUBLE);
16261
- if (!array4 || !require_dimensions(array4,1) || !require_contiguous(array4)
16262
- || !require_native(array4)) SWIG_fail;
16263
- arg4 = (double*) array_data(array4);
16264
- arg5 = 1;
16265
- for (i4=0; i4 < array_numdims(array4); ++i4) arg5 *= array_size(array4,i4);
16266
- }
16267
- {
16268
- array6 = obj_to_array_no_conversion(swig_obj[4], NPY_INT);
16269
- if (!array6 || !require_dimensions(array6,1) || !require_contiguous(array6)
16270
- || !require_native(array6)) SWIG_fail;
16271
- arg6 = (int*) array_data(array6);
16272
- arg7 = 1;
16273
- for (i6=0; i6 < array_numdims(array6); ++i6) arg7 *= array_size(array6,i6);
16274
- }
16275
- {
16276
- char *err;
16277
- clear_exception();
16278
- grd3d_collapse_inact(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
16279
- if ((err = check_exception())) {
16280
- PyErr_SetString(PY_XTGeoCLibError, err);
16281
- return NULL;
16282
- }
16283
- }
16284
- resultobj = SWIG_Py_Void();
16285
- return resultobj;
16286
- fail:
16287
- return NULL;
16288
- }
16289
-
16290
-
16291
15454
  SWIGINTERN PyObject *_wrap_grd3d_midpoint(PyObject *self, PyObject *args) {
16292
15455
  PyObject *resultobj = 0;
16293
15456
  int arg1 ;
@@ -19754,20 +18917,14 @@ static PyMethodDef SwigMethods[] = {
19754
18917
  { "grdcp3d_calc_dx", _wrap_grdcp3d_calc_dx, METH_VARARGS, NULL},
19755
18918
  { "grdcp3d_calc_dy", _wrap_grdcp3d_calc_dy, METH_VARARGS, NULL},
19756
18919
  { "grdcp3d_calc_dz", _wrap_grdcp3d_calc_dz, METH_VARARGS, NULL},
19757
- { "grd3d_conv_roxapi_grid", _wrap_grd3d_conv_roxapi_grid, METH_VARARGS, NULL},
19758
18920
  { "grd3d_roff2xtgeo_splitenz", _wrap_grd3d_roff2xtgeo_splitenz, METH_VARARGS, NULL},
19759
- { "grd3d_conv_grid_roxapi", _wrap_grd3d_conv_grid_roxapi, METH_VARARGS, NULL},
19760
18921
  { "grd3d_crop_geometry", _wrap_grd3d_crop_geometry, METH_VARARGS, NULL},
19761
18922
  { "grd3d_reduce_onelayer", _wrap_grd3d_reduce_onelayer, METH_VARARGS, NULL},
19762
18923
  { "grd3d_get_lay_slice", _wrap_grd3d_get_lay_slice, METH_VARARGS, NULL},
19763
- { "grd3d_convert_hybrid", _wrap_grd3d_convert_hybrid, METH_VARARGS, NULL},
19764
18924
  { "grd3d_make_z_consistent", _wrap_grd3d_make_z_consistent, METH_VARARGS, NULL},
19765
- { "grd3d_translate", _wrap_grd3d_translate, METH_VARARGS, NULL},
19766
- { "grd3d_reverse_jrows", _wrap_grd3d_reverse_jrows, METH_VARARGS, NULL},
19767
18925
  { "grd3d_point_val_crange", _wrap_grd3d_point_val_crange, METH_VARARGS, NULL},
19768
18926
  { "grd3d_point_in_cell", _wrap_grd3d_point_in_cell, METH_VARARGS, NULL},
19769
18927
  { "grd3d_get_randomline", _wrap_grd3d_get_randomline, METH_VARARGS, NULL},
19770
- { "grd3d_collapse_inact", _wrap_grd3d_collapse_inact, METH_VARARGS, NULL},
19771
18928
  { "grd3d_midpoint", _wrap_grd3d_midpoint, METH_VARARGS, NULL},
19772
18929
  { "grd3d_inact_outside_pol", _wrap_grd3d_inact_outside_pol, METH_VARARGS, NULL},
19773
18930
  { "grd3d_setval_poly", _wrap_grd3d_setval_poly, METH_VARARGS, NULL},