xtgeo 4.12.1__cp310-cp310-macosx_11_0_arm64.whl → 4.13.0__cp310-cp310-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.
- cxtgeo.py +0 -12
- cxtgeoPYTHON_wrap.c +96 -735
- xtgeo/_cxtgeo.cpython-310-darwin.so +0 -0
- xtgeo/_internal.cpython-310-darwin.so +0 -0
- xtgeo/common/version.py +3 -3
- xtgeo/cube/_cube_window_attributes.py +53 -129
- xtgeo/grid3d/_ecl_inte_head.py +6 -2
- xtgeo/grid3d/_grid_etc1.py +11 -2
- xtgeo/grid3d/_grid_hybrid.py +13 -29
- xtgeo/grid3d/_gridprop_roxapi.py +8 -2
- xtgeo/grid3d/grid.py +15 -8
- xtgeo/lib/libfmt.a +0 -0
- xtgeo/lib/pkgconfig/fmt.pc +2 -2
- xtgeo/surface/_regsurf_oper.py +1 -94
- xtgeo/surface/regular_surface.py +4 -9
- xtgeo/well/_blockedwell_roxapi.py +24 -4
- xtgeo/xyz/_xyz_io.py +7 -5
- xtgeo/xyz/points.py +1 -0
- {xtgeo-4.12.1.dist-info → xtgeo-4.13.0.dist-info}/METADATA +2 -1
- {xtgeo-4.12.1.dist-info → xtgeo-4.13.0.dist-info}/RECORD +22 -22
- {xtgeo-4.12.1.dist-info → xtgeo-4.13.0.dist-info}/WHEEL +0 -0
- {xtgeo-4.12.1.dist-info → xtgeo-4.13.0.dist-info}/licenses/LICENSE.md +0 -0
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 ;
|
|
@@ -14745,248 +14402,55 @@ SWIGINTERN PyObject *_wrap_grd3d_reduce_onelayer(PyObject *self, PyObject *args)
|
|
|
14745
14402
|
if (!array6 || !require_dimensions(array6,1) || !require_contiguous(array6)
|
|
14746
14403
|
|| !require_native(array6)) SWIG_fail;
|
|
14747
14404
|
arg6 = (double*) array_data(array6);
|
|
14748
|
-
arg7 = 1;
|
|
14749
|
-
for (i6=0; i6 < array_numdims(array6); ++i6) arg7 *= array_size(array6,i6);
|
|
14750
|
-
}
|
|
14751
|
-
{
|
|
14752
|
-
npy_intp size[1] = {
|
|
14753
|
-
-1
|
|
14754
|
-
};
|
|
14755
|
-
array8 = obj_to_array_contiguous_allow_conversion(swig_obj[5],
|
|
14756
|
-
NPY_INT,
|
|
14757
|
-
&is_new_object8);
|
|
14758
|
-
if (!array8 || !require_dimensions(array8, 1) ||
|
|
14759
|
-
!require_size(array8, size, 1)) SWIG_fail;
|
|
14760
|
-
arg8 = (int*) array_data(array8);
|
|
14761
|
-
arg9 = (long) array_size(array8,0);
|
|
14762
|
-
}
|
|
14763
|
-
{
|
|
14764
|
-
array10 = obj_to_array_no_conversion(swig_obj[6], NPY_INT);
|
|
14765
|
-
if (!array10 || !require_dimensions(array10,1) || !require_contiguous(array10)
|
|
14766
|
-
|| !require_native(array10)) SWIG_fail;
|
|
14767
|
-
arg10 = (int*) array_data(array10);
|
|
14768
|
-
arg11 = 1;
|
|
14769
|
-
for (i10=0; i10 < array_numdims(array10); ++i10) arg11 *= array_size(array10,i10);
|
|
14770
|
-
}
|
|
14771
|
-
res12 = SWIG_ConvertPtr(swig_obj[7], &argp12,SWIGTYPE_p_int, 0 | 0 );
|
|
14772
|
-
if (!SWIG_IsOK(res12)) {
|
|
14773
|
-
SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "grd3d_reduce_onelayer" "', argument " "12"" of type '" "int *""'");
|
|
14774
|
-
}
|
|
14775
|
-
arg12 = (int *)(argp12);
|
|
14776
|
-
ecode13 = SWIG_AsVal_int(swig_obj[8], &val13);
|
|
14777
|
-
if (!SWIG_IsOK(ecode13)) {
|
|
14778
|
-
SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "grd3d_reduce_onelayer" "', argument " "13"" of type '" "int""'");
|
|
14779
|
-
}
|
|
14780
|
-
arg13 = (int)(val13);
|
|
14781
|
-
{
|
|
14782
|
-
char *err;
|
|
14783
|
-
clear_exception();
|
|
14784
|
-
result = (int)grd3d_reduce_onelayer(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
|
14785
|
-
if ((err = check_exception())) {
|
|
14786
|
-
PyErr_SetString(PY_XTGeoCLibError, err);
|
|
14787
|
-
return NULL;
|
|
14788
|
-
}
|
|
14789
|
-
}
|
|
14790
|
-
resultobj = SWIG_From_int((int)(result));
|
|
14791
|
-
{
|
|
14792
|
-
if (is_new_object4 && array4)
|
|
14793
|
-
{
|
|
14794
|
-
Py_DECREF(array4);
|
|
14795
|
-
}
|
|
14796
|
-
}
|
|
14797
|
-
{
|
|
14798
|
-
if (is_new_object8 && array8)
|
|
14799
|
-
{
|
|
14800
|
-
Py_DECREF(array8);
|
|
14801
|
-
}
|
|
14802
|
-
}
|
|
14803
|
-
return resultobj;
|
|
14804
|
-
fail:
|
|
14805
|
-
{
|
|
14806
|
-
if (is_new_object4 && array4)
|
|
14807
|
-
{
|
|
14808
|
-
Py_DECREF(array4);
|
|
14809
|
-
}
|
|
14810
|
-
}
|
|
14811
|
-
{
|
|
14812
|
-
if (is_new_object8 && array8)
|
|
14813
|
-
{
|
|
14814
|
-
Py_DECREF(array8);
|
|
14815
|
-
}
|
|
14816
|
-
}
|
|
14817
|
-
return NULL;
|
|
14818
|
-
}
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
SWIGINTERN PyObject *_wrap_grd3d_get_lay_slice(PyObject *self, PyObject *args) {
|
|
14822
|
-
PyObject *resultobj = 0;
|
|
14823
|
-
int arg1 ;
|
|
14824
|
-
int arg2 ;
|
|
14825
|
-
int arg3 ;
|
|
14826
|
-
double *arg4 = (double *) 0 ;
|
|
14827
|
-
long arg5 ;
|
|
14828
|
-
double *arg6 = (double *) 0 ;
|
|
14829
|
-
long arg7 ;
|
|
14830
|
-
int *arg8 = (int *) 0 ;
|
|
14831
|
-
long arg9 ;
|
|
14832
|
-
int arg10 ;
|
|
14833
|
-
int arg11 ;
|
|
14834
|
-
int arg12 ;
|
|
14835
|
-
double *arg13 = (double *) 0 ;
|
|
14836
|
-
long arg14 ;
|
|
14837
|
-
long *arg15 = (long *) 0 ;
|
|
14838
|
-
long arg16 ;
|
|
14839
|
-
int val1 ;
|
|
14840
|
-
int ecode1 = 0 ;
|
|
14841
|
-
int val2 ;
|
|
14842
|
-
int ecode2 = 0 ;
|
|
14843
|
-
int val3 ;
|
|
14844
|
-
int ecode3 = 0 ;
|
|
14845
|
-
PyArrayObject *array4 = NULL ;
|
|
14846
|
-
int is_new_object4 = 0 ;
|
|
14847
|
-
PyArrayObject *array6 = NULL ;
|
|
14848
|
-
int is_new_object6 = 0 ;
|
|
14849
|
-
PyArrayObject *array8 = NULL ;
|
|
14850
|
-
int is_new_object8 = 0 ;
|
|
14851
|
-
int val10 ;
|
|
14852
|
-
int ecode10 = 0 ;
|
|
14853
|
-
int val11 ;
|
|
14854
|
-
int ecode11 = 0 ;
|
|
14855
|
-
int val12 ;
|
|
14856
|
-
int ecode12 = 0 ;
|
|
14857
|
-
PyObject *array13 = NULL ;
|
|
14858
|
-
PyObject *array15 = NULL ;
|
|
14859
|
-
PyObject *swig_obj[11] ;
|
|
14860
|
-
int result;
|
|
14861
|
-
|
|
14862
|
-
(void)self;
|
|
14863
|
-
if (!SWIG_Python_UnpackTuple(args, "grd3d_get_lay_slice", 11, 11, swig_obj)) SWIG_fail;
|
|
14864
|
-
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
|
|
14865
|
-
if (!SWIG_IsOK(ecode1)) {
|
|
14866
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "grd3d_get_lay_slice" "', argument " "1"" of type '" "int""'");
|
|
14867
|
-
}
|
|
14868
|
-
arg1 = (int)(val1);
|
|
14869
|
-
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
14870
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
14871
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "grd3d_get_lay_slice" "', argument " "2"" of type '" "int""'");
|
|
14872
|
-
}
|
|
14873
|
-
arg2 = (int)(val2);
|
|
14874
|
-
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
|
|
14875
|
-
if (!SWIG_IsOK(ecode3)) {
|
|
14876
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "grd3d_get_lay_slice" "', argument " "3"" of type '" "int""'");
|
|
14877
|
-
}
|
|
14878
|
-
arg3 = (int)(val3);
|
|
14879
|
-
{
|
|
14880
|
-
npy_intp size[1] = {
|
|
14881
|
-
-1
|
|
14882
|
-
};
|
|
14883
|
-
array4 = obj_to_array_contiguous_allow_conversion(swig_obj[3],
|
|
14884
|
-
NPY_DOUBLE,
|
|
14885
|
-
&is_new_object4);
|
|
14886
|
-
if (!array4 || !require_dimensions(array4, 1) ||
|
|
14887
|
-
!require_size(array4, size, 1)) SWIG_fail;
|
|
14888
|
-
arg4 = (double*) array_data(array4);
|
|
14889
|
-
arg5 = (long) array_size(array4,0);
|
|
14890
|
-
}
|
|
14891
|
-
{
|
|
14892
|
-
npy_intp size[1] = {
|
|
14893
|
-
-1
|
|
14894
|
-
};
|
|
14895
|
-
array6 = obj_to_array_contiguous_allow_conversion(swig_obj[4],
|
|
14896
|
-
NPY_DOUBLE,
|
|
14897
|
-
&is_new_object6);
|
|
14898
|
-
if (!array6 || !require_dimensions(array6, 1) ||
|
|
14899
|
-
!require_size(array6, size, 1)) SWIG_fail;
|
|
14900
|
-
arg6 = (double*) array_data(array6);
|
|
14901
|
-
arg7 = (long) array_size(array6,0);
|
|
14902
|
-
}
|
|
14903
|
-
{
|
|
14904
|
-
npy_intp size[1] = {
|
|
14905
|
-
-1
|
|
14906
|
-
};
|
|
14907
|
-
array8 = obj_to_array_contiguous_allow_conversion(swig_obj[5],
|
|
14908
|
-
NPY_INT,
|
|
14909
|
-
&is_new_object8);
|
|
14910
|
-
if (!array8 || !require_dimensions(array8, 1) ||
|
|
14911
|
-
!require_size(array8, size, 1)) SWIG_fail;
|
|
14912
|
-
arg8 = (int*) array_data(array8);
|
|
14913
|
-
arg9 = (long) array_size(array8,0);
|
|
14914
|
-
}
|
|
14915
|
-
ecode10 = SWIG_AsVal_int(swig_obj[6], &val10);
|
|
14916
|
-
if (!SWIG_IsOK(ecode10)) {
|
|
14917
|
-
SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "grd3d_get_lay_slice" "', argument " "10"" of type '" "int""'");
|
|
14918
|
-
}
|
|
14919
|
-
arg10 = (int)(val10);
|
|
14920
|
-
ecode11 = SWIG_AsVal_int(swig_obj[7], &val11);
|
|
14921
|
-
if (!SWIG_IsOK(ecode11)) {
|
|
14922
|
-
SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "grd3d_get_lay_slice" "', argument " "11"" of type '" "int""'");
|
|
14923
|
-
}
|
|
14924
|
-
arg11 = (int)(val11);
|
|
14925
|
-
ecode12 = SWIG_AsVal_int(swig_obj[8], &val12);
|
|
14926
|
-
if (!SWIG_IsOK(ecode12)) {
|
|
14927
|
-
SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "grd3d_get_lay_slice" "', argument " "12"" of type '" "int""'");
|
|
14928
|
-
}
|
|
14929
|
-
arg12 = (int)(val12);
|
|
14930
|
-
{
|
|
14931
|
-
npy_intp dims[1];
|
|
14932
|
-
if (!PyInt_Check(swig_obj[9]))
|
|
14933
|
-
{
|
|
14934
|
-
const char* typestring = pytype_string(swig_obj[9]);
|
|
14935
|
-
PyErr_Format(PyExc_TypeError,
|
|
14936
|
-
"Int dimension expected. '%s' given.",
|
|
14937
|
-
typestring);
|
|
14938
|
-
SWIG_fail;
|
|
14939
|
-
}
|
|
14940
|
-
arg14 = (long) PyInt_AsLong(swig_obj[9]);
|
|
14941
|
-
dims[0] = (npy_intp) arg14;
|
|
14942
|
-
array13 = PyArray_SimpleNew(1, dims, NPY_DOUBLE);
|
|
14943
|
-
if (!array13) SWIG_fail;
|
|
14944
|
-
arg13 = (double*) array_data(array13);
|
|
14405
|
+
arg7 = 1;
|
|
14406
|
+
for (i6=0; i6 < array_numdims(array6); ++i6) arg7 *= array_size(array6,i6);
|
|
14945
14407
|
}
|
|
14946
14408
|
{
|
|
14947
|
-
npy_intp
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
SWIG_fail;
|
|
14955
|
-
|
|
14956
|
-
|
|
14957
|
-
|
|
14958
|
-
|
|
14959
|
-
|
|
14960
|
-
|
|
14409
|
+
npy_intp size[1] = {
|
|
14410
|
+
-1
|
|
14411
|
+
};
|
|
14412
|
+
array8 = obj_to_array_contiguous_allow_conversion(swig_obj[5],
|
|
14413
|
+
NPY_INT,
|
|
14414
|
+
&is_new_object8);
|
|
14415
|
+
if (!array8 || !require_dimensions(array8, 1) ||
|
|
14416
|
+
!require_size(array8, size, 1)) SWIG_fail;
|
|
14417
|
+
arg8 = (int*) array_data(array8);
|
|
14418
|
+
arg9 = (long) array_size(array8,0);
|
|
14419
|
+
}
|
|
14420
|
+
{
|
|
14421
|
+
array10 = obj_to_array_no_conversion(swig_obj[6], NPY_INT);
|
|
14422
|
+
if (!array10 || !require_dimensions(array10,1) || !require_contiguous(array10)
|
|
14423
|
+
|| !require_native(array10)) SWIG_fail;
|
|
14424
|
+
arg10 = (int*) array_data(array10);
|
|
14425
|
+
arg11 = 1;
|
|
14426
|
+
for (i10=0; i10 < array_numdims(array10); ++i10) arg11 *= array_size(array10,i10);
|
|
14427
|
+
}
|
|
14428
|
+
res12 = SWIG_ConvertPtr(swig_obj[7], &argp12,SWIGTYPE_p_int, 0 | 0 );
|
|
14429
|
+
if (!SWIG_IsOK(res12)) {
|
|
14430
|
+
SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "grd3d_reduce_onelayer" "', argument " "12"" of type '" "int *""'");
|
|
14961
14431
|
}
|
|
14432
|
+
arg12 = (int *)(argp12);
|
|
14433
|
+
ecode13 = SWIG_AsVal_int(swig_obj[8], &val13);
|
|
14434
|
+
if (!SWIG_IsOK(ecode13)) {
|
|
14435
|
+
SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "grd3d_reduce_onelayer" "', argument " "13"" of type '" "int""'");
|
|
14436
|
+
}
|
|
14437
|
+
arg13 = (int)(val13);
|
|
14962
14438
|
{
|
|
14963
14439
|
char *err;
|
|
14964
14440
|
clear_exception();
|
|
14965
|
-
result = (int)
|
|
14441
|
+
result = (int)grd3d_reduce_onelayer(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
|
14966
14442
|
if ((err = check_exception())) {
|
|
14967
14443
|
PyErr_SetString(PY_XTGeoCLibError, err);
|
|
14968
14444
|
return NULL;
|
|
14969
14445
|
}
|
|
14970
14446
|
}
|
|
14971
14447
|
resultobj = SWIG_From_int((int)(result));
|
|
14972
|
-
{
|
|
14973
|
-
resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array13);
|
|
14974
|
-
}
|
|
14975
|
-
{
|
|
14976
|
-
resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array15);
|
|
14977
|
-
}
|
|
14978
14448
|
{
|
|
14979
14449
|
if (is_new_object4 && array4)
|
|
14980
14450
|
{
|
|
14981
14451
|
Py_DECREF(array4);
|
|
14982
14452
|
}
|
|
14983
14453
|
}
|
|
14984
|
-
{
|
|
14985
|
-
if (is_new_object6 && array6)
|
|
14986
|
-
{
|
|
14987
|
-
Py_DECREF(array6);
|
|
14988
|
-
}
|
|
14989
|
-
}
|
|
14990
14454
|
{
|
|
14991
14455
|
if (is_new_object8 && array8)
|
|
14992
14456
|
{
|
|
@@ -15001,12 +14465,6 @@ fail:
|
|
|
15001
14465
|
Py_DECREF(array4);
|
|
15002
14466
|
}
|
|
15003
14467
|
}
|
|
15004
|
-
{
|
|
15005
|
-
if (is_new_object6 && array6)
|
|
15006
|
-
{
|
|
15007
|
-
Py_DECREF(array6);
|
|
15008
|
-
}
|
|
15009
|
-
}
|
|
15010
14468
|
{
|
|
15011
14469
|
if (is_new_object8 && array8)
|
|
15012
14470
|
{
|
|
@@ -15017,7 +14475,7 @@ fail:
|
|
|
15017
14475
|
}
|
|
15018
14476
|
|
|
15019
14477
|
|
|
15020
|
-
SWIGINTERN PyObject *
|
|
14478
|
+
SWIGINTERN PyObject *_wrap_grd3d_get_lay_slice(PyObject *self, PyObject *args) {
|
|
15021
14479
|
PyObject *resultobj = 0;
|
|
15022
14480
|
int arg1 ;
|
|
15023
14481
|
int arg2 ;
|
|
@@ -15029,16 +14487,12 @@ SWIGINTERN PyObject *_wrap_grd3d_convert_hybrid(PyObject *self, PyObject *args)
|
|
|
15029
14487
|
int *arg8 = (int *) 0 ;
|
|
15030
14488
|
long arg9 ;
|
|
15031
14489
|
int arg10 ;
|
|
15032
|
-
|
|
15033
|
-
|
|
15034
|
-
|
|
14490
|
+
int arg11 ;
|
|
14491
|
+
int arg12 ;
|
|
14492
|
+
double *arg13 = (double *) 0 ;
|
|
15035
14493
|
long arg14 ;
|
|
15036
|
-
|
|
15037
|
-
|
|
15038
|
-
int arg17 ;
|
|
15039
|
-
int *arg18 = (int *) 0 ;
|
|
15040
|
-
long arg19 ;
|
|
15041
|
-
int arg20 ;
|
|
14494
|
+
long *arg15 = (long *) 0 ;
|
|
14495
|
+
long arg16 ;
|
|
15042
14496
|
int val1 ;
|
|
15043
14497
|
int ecode1 = 0 ;
|
|
15044
14498
|
int val2 ;
|
|
@@ -15053,37 +14507,30 @@ SWIGINTERN PyObject *_wrap_grd3d_convert_hybrid(PyObject *self, PyObject *args)
|
|
|
15053
14507
|
int is_new_object8 = 0 ;
|
|
15054
14508
|
int val10 ;
|
|
15055
14509
|
int ecode10 = 0 ;
|
|
15056
|
-
|
|
15057
|
-
int
|
|
15058
|
-
|
|
15059
|
-
int
|
|
15060
|
-
|
|
15061
|
-
|
|
15062
|
-
|
|
15063
|
-
int
|
|
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] ;
|
|
14510
|
+
int val11 ;
|
|
14511
|
+
int ecode11 = 0 ;
|
|
14512
|
+
int val12 ;
|
|
14513
|
+
int ecode12 = 0 ;
|
|
14514
|
+
PyObject *array13 = NULL ;
|
|
14515
|
+
PyObject *array15 = NULL ;
|
|
14516
|
+
PyObject *swig_obj[11] ;
|
|
14517
|
+
int result;
|
|
15071
14518
|
|
|
15072
14519
|
(void)self;
|
|
15073
|
-
if (!SWIG_Python_UnpackTuple(args, "
|
|
14520
|
+
if (!SWIG_Python_UnpackTuple(args, "grd3d_get_lay_slice", 11, 11, swig_obj)) SWIG_fail;
|
|
15074
14521
|
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
|
|
15075
14522
|
if (!SWIG_IsOK(ecode1)) {
|
|
15076
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "
|
|
14523
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "grd3d_get_lay_slice" "', argument " "1"" of type '" "int""'");
|
|
15077
14524
|
}
|
|
15078
14525
|
arg1 = (int)(val1);
|
|
15079
14526
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
15080
14527
|
if (!SWIG_IsOK(ecode2)) {
|
|
15081
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "
|
|
14528
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "grd3d_get_lay_slice" "', argument " "2"" of type '" "int""'");
|
|
15082
14529
|
}
|
|
15083
14530
|
arg2 = (int)(val2);
|
|
15084
14531
|
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
|
|
15085
14532
|
if (!SWIG_IsOK(ecode3)) {
|
|
15086
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "
|
|
14533
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "grd3d_get_lay_slice" "', argument " "3"" of type '" "int""'");
|
|
15087
14534
|
}
|
|
15088
14535
|
arg3 = (int)(val3);
|
|
15089
14536
|
{
|
|
@@ -15124,67 +14571,67 @@ SWIGINTERN PyObject *_wrap_grd3d_convert_hybrid(PyObject *self, PyObject *args)
|
|
|
15124
14571
|
}
|
|
15125
14572
|
ecode10 = SWIG_AsVal_int(swig_obj[6], &val10);
|
|
15126
14573
|
if (!SWIG_IsOK(ecode10)) {
|
|
15127
|
-
SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "
|
|
14574
|
+
SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "grd3d_get_lay_slice" "', argument " "10"" of type '" "int""'");
|
|
15128
14575
|
}
|
|
15129
14576
|
arg10 = (int)(val10);
|
|
15130
|
-
|
|
15131
|
-
|
|
15132
|
-
|
|
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""'");
|
|
14577
|
+
ecode11 = SWIG_AsVal_int(swig_obj[7], &val11);
|
|
14578
|
+
if (!SWIG_IsOK(ecode11)) {
|
|
14579
|
+
SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "grd3d_get_lay_slice" "', argument " "11"" of type '" "int""'");
|
|
15154
14580
|
}
|
|
15155
|
-
|
|
15156
|
-
|
|
15157
|
-
if (!SWIG_IsOK(
|
|
15158
|
-
SWIG_exception_fail(SWIG_ArgError(
|
|
14581
|
+
arg11 = (int)(val11);
|
|
14582
|
+
ecode12 = SWIG_AsVal_int(swig_obj[8], &val12);
|
|
14583
|
+
if (!SWIG_IsOK(ecode12)) {
|
|
14584
|
+
SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "grd3d_get_lay_slice" "', argument " "12"" of type '" "int""'");
|
|
15159
14585
|
}
|
|
15160
|
-
|
|
14586
|
+
arg12 = (int)(val12);
|
|
15161
14587
|
{
|
|
15162
|
-
npy_intp
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15170
|
-
|
|
15171
|
-
|
|
14588
|
+
npy_intp dims[1];
|
|
14589
|
+
if (!PyInt_Check(swig_obj[9]))
|
|
14590
|
+
{
|
|
14591
|
+
const char* typestring = pytype_string(swig_obj[9]);
|
|
14592
|
+
PyErr_Format(PyExc_TypeError,
|
|
14593
|
+
"Int dimension expected. '%s' given.",
|
|
14594
|
+
typestring);
|
|
14595
|
+
SWIG_fail;
|
|
14596
|
+
}
|
|
14597
|
+
arg14 = (long) PyInt_AsLong(swig_obj[9]);
|
|
14598
|
+
dims[0] = (npy_intp) arg14;
|
|
14599
|
+
array13 = PyArray_SimpleNew(1, dims, NPY_DOUBLE);
|
|
14600
|
+
if (!array13) SWIG_fail;
|
|
14601
|
+
arg13 = (double*) array_data(array13);
|
|
14602
|
+
}
|
|
14603
|
+
{
|
|
14604
|
+
npy_intp dims[1];
|
|
14605
|
+
if (!PyInt_Check(swig_obj[10]))
|
|
14606
|
+
{
|
|
14607
|
+
const char* typestring = pytype_string(swig_obj[10]);
|
|
14608
|
+
PyErr_Format(PyExc_TypeError,
|
|
14609
|
+
"Int dimension expected. '%s' given.",
|
|
14610
|
+
typestring);
|
|
14611
|
+
SWIG_fail;
|
|
14612
|
+
}
|
|
14613
|
+
arg16 = (long) PyInt_AsLong(swig_obj[10]);
|
|
14614
|
+
dims[0] = (npy_intp) arg16;
|
|
14615
|
+
array15 = PyArray_SimpleNew(1, dims, NPY_LONG);
|
|
14616
|
+
if (!array15) SWIG_fail;
|
|
14617
|
+
arg15 = (long*) array_data(array15);
|
|
15172
14618
|
}
|
|
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
14619
|
{
|
|
15179
14620
|
char *err;
|
|
15180
14621
|
clear_exception();
|
|
15181
|
-
|
|
14622
|
+
result = (int)grd3d_get_lay_slice(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16);
|
|
15182
14623
|
if ((err = check_exception())) {
|
|
15183
14624
|
PyErr_SetString(PY_XTGeoCLibError, err);
|
|
15184
14625
|
return NULL;
|
|
15185
14626
|
}
|
|
15186
14627
|
}
|
|
15187
|
-
resultobj =
|
|
14628
|
+
resultobj = SWIG_From_int((int)(result));
|
|
14629
|
+
{
|
|
14630
|
+
resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array13);
|
|
14631
|
+
}
|
|
14632
|
+
{
|
|
14633
|
+
resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array15);
|
|
14634
|
+
}
|
|
15188
14635
|
{
|
|
15189
14636
|
if (is_new_object4 && array4)
|
|
15190
14637
|
{
|
|
@@ -15203,12 +14650,6 @@ SWIGINTERN PyObject *_wrap_grd3d_convert_hybrid(PyObject *self, PyObject *args)
|
|
|
15203
14650
|
Py_DECREF(array8);
|
|
15204
14651
|
}
|
|
15205
14652
|
}
|
|
15206
|
-
{
|
|
15207
|
-
if (is_new_object18 && array18)
|
|
15208
|
-
{
|
|
15209
|
-
Py_DECREF(array18);
|
|
15210
|
-
}
|
|
15211
|
-
}
|
|
15212
14653
|
return resultobj;
|
|
15213
14654
|
fail:
|
|
15214
14655
|
{
|
|
@@ -15229,12 +14670,6 @@ fail:
|
|
|
15229
14670
|
Py_DECREF(array8);
|
|
15230
14671
|
}
|
|
15231
14672
|
}
|
|
15232
|
-
{
|
|
15233
|
-
if (is_new_object18 && array18)
|
|
15234
|
-
{
|
|
15235
|
-
Py_DECREF(array18);
|
|
15236
|
-
}
|
|
15237
|
-
}
|
|
15238
14673
|
return NULL;
|
|
15239
14674
|
}
|
|
15240
14675
|
|
|
@@ -16218,76 +15653,6 @@ fail:
|
|
|
16218
15653
|
}
|
|
16219
15654
|
|
|
16220
15655
|
|
|
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
15656
|
SWIGINTERN PyObject *_wrap_grd3d_midpoint(PyObject *self, PyObject *args) {
|
|
16292
15657
|
PyObject *resultobj = 0;
|
|
16293
15658
|
int arg1 ;
|
|
@@ -19754,20 +19119,16 @@ static PyMethodDef SwigMethods[] = {
|
|
|
19754
19119
|
{ "grdcp3d_calc_dx", _wrap_grdcp3d_calc_dx, METH_VARARGS, NULL},
|
|
19755
19120
|
{ "grdcp3d_calc_dy", _wrap_grdcp3d_calc_dy, METH_VARARGS, NULL},
|
|
19756
19121
|
{ "grdcp3d_calc_dz", _wrap_grdcp3d_calc_dz, METH_VARARGS, NULL},
|
|
19757
|
-
{ "grd3d_conv_roxapi_grid", _wrap_grd3d_conv_roxapi_grid, METH_VARARGS, NULL},
|
|
19758
19122
|
{ "grd3d_roff2xtgeo_splitenz", _wrap_grd3d_roff2xtgeo_splitenz, METH_VARARGS, NULL},
|
|
19759
|
-
{ "grd3d_conv_grid_roxapi", _wrap_grd3d_conv_grid_roxapi, METH_VARARGS, NULL},
|
|
19760
19123
|
{ "grd3d_crop_geometry", _wrap_grd3d_crop_geometry, METH_VARARGS, NULL},
|
|
19761
19124
|
{ "grd3d_reduce_onelayer", _wrap_grd3d_reduce_onelayer, METH_VARARGS, NULL},
|
|
19762
19125
|
{ "grd3d_get_lay_slice", _wrap_grd3d_get_lay_slice, METH_VARARGS, NULL},
|
|
19763
|
-
{ "grd3d_convert_hybrid", _wrap_grd3d_convert_hybrid, METH_VARARGS, NULL},
|
|
19764
19126
|
{ "grd3d_make_z_consistent", _wrap_grd3d_make_z_consistent, METH_VARARGS, NULL},
|
|
19765
19127
|
{ "grd3d_translate", _wrap_grd3d_translate, METH_VARARGS, NULL},
|
|
19766
19128
|
{ "grd3d_reverse_jrows", _wrap_grd3d_reverse_jrows, METH_VARARGS, NULL},
|
|
19767
19129
|
{ "grd3d_point_val_crange", _wrap_grd3d_point_val_crange, METH_VARARGS, NULL},
|
|
19768
19130
|
{ "grd3d_point_in_cell", _wrap_grd3d_point_in_cell, METH_VARARGS, NULL},
|
|
19769
19131
|
{ "grd3d_get_randomline", _wrap_grd3d_get_randomline, METH_VARARGS, NULL},
|
|
19770
|
-
{ "grd3d_collapse_inact", _wrap_grd3d_collapse_inact, METH_VARARGS, NULL},
|
|
19771
19132
|
{ "grd3d_midpoint", _wrap_grd3d_midpoint, METH_VARARGS, NULL},
|
|
19772
19133
|
{ "grd3d_inact_outside_pol", _wrap_grd3d_inact_outside_pol, METH_VARARGS, NULL},
|
|
19773
19134
|
{ "grd3d_setval_poly", _wrap_grd3d_setval_poly, METH_VARARGS, NULL},
|