/[ascend]/trunk/models/johnpye/fprops/python/fprops_wrap.c
ViewVC logotype

Diff of /trunk/models/johnpye/fprops/python/fprops_wrap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2116 by jpye, Mon Apr 27 06:09:29 2009 UTC revision 2117 by jpye, Wed Dec 9 04:30:18 2009 UTC
# Line 1  Line 1 
1  /* ----------------------------------------------------------------------------  /* ----------------------------------------------------------------------------
2   * This file was automatically generated by SWIG (http://www.swig.org).   * This file was automatically generated by SWIG (http://www.swig.org).
3   * Version 1.3.35   * Version 1.3.31
4   *   *
5   * This file is not intended to be easily readable and contains a number of   * This file is not intended to be easily readable and contains a number of
6   * coding conventions designed to improve portability and efficiency. Do not make   * coding conventions designed to improve portability and efficiency. Do not make
# Line 17  Line 17 
17    
18  /* template workaround for compilers that cannot correctly implement the C++ standard */  /* template workaround for compilers that cannot correctly implement the C++ standard */
19  #ifndef SWIGTEMPLATEDISAMBIGUATOR  #ifndef SWIGTEMPLATEDISAMBIGUATOR
20  # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)  # if defined(__SUNPRO_CC)
21  #  define SWIGTEMPLATEDISAMBIGUATOR template  #   if (__SUNPRO_CC <= 0x560)
22  # elif defined(__HP_aCC)  #     define SWIGTEMPLATEDISAMBIGUATOR template
23  /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */  #   else
24  /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */  #     define SWIGTEMPLATEDISAMBIGUATOR
25  #  define SWIGTEMPLATEDISAMBIGUATOR template  #   endif
26  # else  # else
27  #  define SWIGTEMPLATEDISAMBIGUATOR  #   define SWIGTEMPLATEDISAMBIGUATOR
28  # endif  # endif
29  #endif  #endif
30    
# Line 107  Line 107 
107  # define _CRT_SECURE_NO_DEPRECATE  # define _CRT_SECURE_NO_DEPRECATE
108  #endif  #endif
109    
 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */  
 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)  
 # define _SCL_SECURE_NO_DEPRECATE  
 #endif  
   
   
110    
111  /* Python.h has to appear first */  /* Python.h has to appear first */
112  #include <Python.h>  #include <Python.h>
# Line 126  Line 120 
120    
121  /* This should only be incremented when either the layout of swig_type_info changes,  /* This should only be incremented when either the layout of swig_type_info changes,
122     or for whatever reason, the runtime changes incompatibly */     or for whatever reason, the runtime changes incompatibly */
123  #define SWIG_RUNTIME_VERSION "4"  #define SWIG_RUNTIME_VERSION "3"
124    
125  /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */  /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
126  #ifdef SWIG_TYPE_TABLE  #ifdef SWIG_TYPE_TABLE
# Line 161  Line 155 
155    
156  /* Flags for pointer conversions */  /* Flags for pointer conversions */
157  #define SWIG_POINTER_DISOWN        0x1  #define SWIG_POINTER_DISOWN        0x1
 #define SWIG_CAST_NEW_MEMORY       0x2  
158    
159  /* Flags for new pointer objects */  /* Flags for new pointer objects */
160  #define SWIG_POINTER_OWN           0x1  #define SWIG_POINTER_OWN           0x1
# Line 302  SWIGINTERNINLINE int SWIG_CheckState(int Line 295  SWIGINTERNINLINE int SWIG_CheckState(int
295  extern "C" {  extern "C" {
296  #endif  #endif
297    
298  typedef void *(*swig_converter_func)(void *, int *);  typedef void *(*swig_converter_func)(void *);
299  typedef struct swig_type_info *(*swig_dycast_func)(void **);  typedef struct swig_type_info *(*swig_dycast_func)(void **);
300    
301  /* Structure to store information on one type */  /* Structure to store inforomation on one type */
302  typedef struct swig_type_info {  typedef struct swig_type_info {
303    const char             *name;         /* mangled name of this type */    const char             *name;         /* mangled name of this type */
304    const char             *str;          /* human readable name of this type */    const char             *str;          /* human readable name of this type */
# Line 350  SWIG_TypeNameComp(const char *f1, const Line 343  SWIG_TypeNameComp(const char *f1, const
343      while ((*f2 == ' ') && (f2 != l2)) ++f2;      while ((*f2 == ' ') && (f2 != l2)) ++f2;
344      if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;      if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
345    }    }
346    return (int)((l1 - f1) - (l2 - f2));    return (l1 - f1) - (l2 - f2);
347  }  }
348    
349  /*  /*
# Line 432  SWIG_TypeCheckStruct(swig_type_info *fro Line 425  SWIG_TypeCheckStruct(swig_type_info *fro
425    Cast a pointer up an inheritance hierarchy    Cast a pointer up an inheritance hierarchy
426  */  */
427  SWIGRUNTIMEINLINE void *  SWIGRUNTIMEINLINE void *
428  SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {  SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
429    return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);    return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
430  }  }
431    
432  /*  /*
# Line 857  SWIG_Python_AddErrorMsg(const char* mesg Line 850  SWIG_Python_AddErrorMsg(const char* mesg
850      Py_DECREF(old_str);      Py_DECREF(old_str);
851      Py_DECREF(value);      Py_DECREF(value);
852    } else {    } else {
853      PyErr_SetString(PyExc_RuntimeError, mesg);      PyErr_Format(PyExc_RuntimeError, mesg);
854    }    }
855  }  }
856    
# Line 1097  SWIG_Python_AppendOutput(PyObject* resul Line 1090  SWIG_Python_AppendOutput(PyObject* resul
1090  /* Unpack the argument tuple */  /* Unpack the argument tuple */
1091    
1092  SWIGINTERN int  SWIGINTERN int
1093  SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)  SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1094  {  {
1095    if (!args) {    if (!args) {
1096      if (!min && !max) {      if (!min && !max) {
1097        return 1;        return 1;
1098      } else {      } else {
1099        PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",        PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1100             name, (min == max ? "" : "at least "), (int)min);             name, (min == max ? "" : "at least "), min);
1101        return 0;        return 0;
1102      }      }
1103    }      }  
# Line 1112  SWIG_Python_UnpackTuple(PyObject *args, Line 1105  SWIG_Python_UnpackTuple(PyObject *args,
1105      PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");      PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1106      return 0;      return 0;
1107    } else {    } else {
1108      register Py_ssize_t l = PyTuple_GET_SIZE(args);      register int l = PyTuple_GET_SIZE(args);
1109      if (l < min) {      if (l < min) {
1110        PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",        PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1111             name, (min == max ? "" : "at least "), (int)min, (int)l);             name, (min == max ? "" : "at least "), min, l);
1112        return 0;        return 0;
1113      } else if (l > max) {      } else if (l > max) {
1114        PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",        PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1115             name, (min == max ? "" : "at most "), (int)max, (int)l);             name, (min == max ? "" : "at most "), max, l);
1116        return 0;        return 0;
1117      } else {      } else {
1118        register int i;        register int i;
# Line 1417  PySwigObject_dealloc(PyObject *v) Line 1410  PySwigObject_dealloc(PyObject *v)
1410  {  {
1411    PySwigObject *sobj = (PySwigObject *) v;    PySwigObject *sobj = (PySwigObject *) v;
1412    PyObject *next = sobj->next;    PyObject *next = sobj->next;
1413    if (sobj->own == SWIG_POINTER_OWN) {    if (sobj->own) {
1414      swig_type_info *ty = sobj->ty;      swig_type_info *ty = sobj->ty;
1415      PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;      PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1416      PyObject *destroy = data ? data->destroy : 0;      PyObject *destroy = data ? data->destroy : 0;
# Line 1435  PySwigObject_dealloc(PyObject *v) Line 1428  PySwigObject_dealloc(PyObject *v)
1428      res = ((*meth)(mself, v));      res = ((*meth)(mself, v));
1429        }        }
1430        Py_XDECREF(res);        Py_XDECREF(res);
1431      }      } else {
 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)  
     else {  
1432        const char *name = SWIG_TypePrettyName(ty);        const char *name = SWIG_TypePrettyName(ty);
1433        printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));  #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1434      }        printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1435  #endif  #endif
1436        }
1437    }    }
1438    Py_XDECREF(next);    Py_XDECREF(next);
1439    PyObject_DEL(v);    PyObject_DEL(v);
# Line 1599  _PySwigObject_type(void) { Line 1591  _PySwigObject_type(void) {
1591      (unaryfunc)0,                 /*nb_float*/      (unaryfunc)0,                 /*nb_float*/
1592      (unaryfunc)PySwigObject_oct,  /*nb_oct*/      (unaryfunc)PySwigObject_oct,  /*nb_oct*/
1593      (unaryfunc)PySwigObject_hex,  /*nb_hex*/      (unaryfunc)PySwigObject_hex,  /*nb_hex*/
1594  #if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */  #if PY_VERSION_HEX >= 0x02020000
1595      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1596  #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */  #elif PY_VERSION_HEX >= 0x02000000
     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */  
 #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */  
1597      0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */      0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1598  #endif  #endif
1599    };    };
# Line 1946  SWIG_Python_GetSwigThis(PyObject *pyobj) Line 1936  SWIG_Python_GetSwigThis(PyObject *pyobj)
1936    
1937  SWIGRUNTIME int  SWIGRUNTIME int
1938  SWIG_Python_AcquirePtr(PyObject *obj, int own) {  SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1939    if (own == SWIG_POINTER_OWN) {    if (own) {
1940      PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);      PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1941      if (sobj) {      if (sobj) {
1942        int oldown = sobj->own;        int oldown = sobj->own;
# Line 1967  SWIG_Python_ConvertPtrAndOwn(PyObject *o Line 1957  SWIG_Python_ConvertPtrAndOwn(PyObject *o
1957      return SWIG_OK;      return SWIG_OK;
1958    } else {    } else {
1959      PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);      PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
     if (own)  
       *own = 0;  
1960      while (sobj) {      while (sobj) {
1961        void *vptr = sobj->ptr;        void *vptr = sobj->ptr;
1962        if (ty) {        if (ty) {
# Line 1982  SWIG_Python_ConvertPtrAndOwn(PyObject *o Line 1970  SWIG_Python_ConvertPtrAndOwn(PyObject *o
1970        if (!tc) {        if (!tc) {
1971          sobj = (PySwigObject *)sobj->next;          sobj = (PySwigObject *)sobj->next;
1972        } else {        } else {
1973          if (ptr) {          if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
               int newmemory = 0;  
               *ptr = SWIG_TypeCast(tc,vptr,&newmemory);  
               if (newmemory == SWIG_CAST_NEW_MEMORY) {  
                 assert(own);  
                 if (own)  
                   *own = *own | SWIG_CAST_NEW_MEMORY;  
               }  
             }  
1974          break;          break;
1975        }        }
1976      }      }
# Line 2000  SWIG_Python_ConvertPtrAndOwn(PyObject *o Line 1980  SWIG_Python_ConvertPtrAndOwn(PyObject *o
1980        }        }
1981      }      }
1982      if (sobj) {      if (sobj) {
1983        if (own)        if (own) *own = sobj->own;
         *own = *own | sobj->own;  
1984        if (flags & SWIG_POINTER_DISOWN) {        if (flags & SWIG_POINTER_DISOWN) {
1985      sobj->own = 0;      sobj->own = 0;
1986        }        }
# Line 2066  SWIG_Python_ConvertFunctionPtr(PyObject Line 2045  SWIG_Python_ConvertFunctionPtr(PyObject
2045      }      }
2046      if (ty) {      if (ty) {
2047        swig_cast_info *tc = SWIG_TypeCheck(desc,ty);        swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2048        if (tc) {        if (!tc) return SWIG_ERROR;
2049          int newmemory = 0;        *ptr = SWIG_TypeCast(tc,vptr);
         *ptr = SWIG_TypeCast(tc,vptr,&newmemory);  
         assert(!newmemory); /* newmemory handling not yet implemented */  
       } else {  
         return SWIG_ERROR;  
       }  
2050      } else {      } else {
2051        *ptr = vptr;        *ptr = vptr;
2052      }      }
# Line 2480  SWIG_Python_MustGetPtr(PyObject *obj, sw Line 2454  SWIG_Python_MustGetPtr(PyObject *obj, sw
2454  #define SWIGTYPE_p_HelmholtzPowTerm_struct swig_types[3]  #define SWIGTYPE_p_HelmholtzPowTerm_struct swig_types[3]
2455  #define SWIGTYPE_p_IdealData swig_types[4]  #define SWIGTYPE_p_IdealData swig_types[4]
2456  #define SWIGTYPE_p_char swig_types[5]  #define SWIGTYPE_p_char swig_types[5]
2457  static swig_type_info *swig_types[7];  #define SWIGTYPE_p_double swig_types[6]
2458  static swig_module_info swig_module = {swig_types, 6, 0, 0, 0, 0};  static swig_type_info *swig_types[8];
2459    static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
2460  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2461  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2462    
# Line 2500  static swig_module_info swig_module = {s Line 2475  static swig_module_info swig_module = {s
2475    
2476  #define SWIG_name    "_fprops"  #define SWIG_name    "_fprops"
2477    
2478  #define SWIGVERSION 0x010335  #define SWIGVERSION 0x010331
2479  #define SWIG_VERSION SWIGVERSION  #define SWIG_VERSION SWIGVERSION
2480    
2481    
# Line 2508  static swig_module_info swig_module = {s Line 2483  static swig_module_info swig_module = {s
2483  #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))  #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
2484    
2485    
2486  #include "../helmholtz.h"  #include "../carbondioxide.h"
2487  #include "../water.h"  #include "../water.h"
2488    #include "../ammonia.h"
2489    #include "../hydrogen.h"
2490    #include "../nitrogen.h"
2491    #include "../helmholtz.h"
2492    
2493    
2494  SWIGINTERN int  SWIGINTERN int
# Line 2560  SWIG_AsVal_double (PyObject *obj, double Line 2539  SWIG_AsVal_double (PyObject *obj, double
2539    
2540    
2541  #include <limits.h>  #include <limits.h>
2542  #if !defined(SWIG_NO_LLONG_MAX)  #ifndef LLONG_MIN
2543  # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)  # define LLONG_MIN  LONG_LONG_MIN
2544  #   define LLONG_MAX __LONG_LONG_MAX__  #endif
2545  #   define LLONG_MIN (-LLONG_MAX - 1LL)  #ifndef LLONG_MAX
2546  #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)  # define LLONG_MAX  LONG_LONG_MAX
2547  # endif  #endif
2548    #ifndef ULLONG_MAX
2549    # define ULLONG_MAX ULONG_LONG_MAX
2550  #endif  #endif
2551    
2552    
# Line 2747  SWIG_From_unsigned_SS_int  (unsigned int Line 2728  SWIG_From_unsigned_SS_int  (unsigned int
2728  #ifdef __cplusplus  #ifdef __cplusplus
2729  extern "C" {  extern "C" {
2730  #endif  #endif
 SWIGINTERN int Swig_var_helmholtz_data_water_set(PyObject *_val SWIGUNUSED) {  
   SWIG_Error(SWIG_AttributeError,"Variable helmholtz_data_water is read-only.");  
   return 1;  
 }  
   
   
 SWIGINTERN PyObject *Swig_var_helmholtz_data_water_get(void) {  
   PyObject *pyobj = 0;  
     
   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&helmholtz_data_water), SWIGTYPE_p_HelmholtzData_struct,  0 );  
   return pyobj;  
 }  
   
   
2731  SWIGINTERN PyObject *_wrap_HelmholtzPowTerm_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {  SWIGINTERN PyObject *_wrap_HelmholtzPowTerm_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
2732    PyObject *resultobj = 0;    PyObject *resultobj = 0;
2733    HelmholtzPowTerm *arg1 = (HelmholtzPowTerm *) 0 ;    HelmholtzPowTerm *arg1 = (HelmholtzPowTerm *) 0 ;
# Line 2978  SWIGINTERN PyObject *_wrap_new_Helmholtz Line 2945  SWIGINTERN PyObject *_wrap_new_Helmholtz
2945    HelmholtzPowTerm *result = 0 ;    HelmholtzPowTerm *result = 0 ;
2946        
2947    if (!PyArg_ParseTuple(args,(char *)":new_HelmholtzPowTerm")) SWIG_fail;    if (!PyArg_ParseTuple(args,(char *)":new_HelmholtzPowTerm")) SWIG_fail;
2948    result = (HelmholtzPowTerm *)calloc(1, sizeof(HelmholtzPowTerm));    result = (HelmholtzPowTerm *)(HelmholtzPowTerm *) calloc(1, sizeof(HelmholtzPowTerm));
2949    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HelmholtzPowTerm_struct, SWIG_POINTER_NEW |  0 );    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HelmholtzPowTerm_struct, SWIG_POINTER_NEW |  0 );
2950    return resultobj;    return resultobj;
2951  fail:  fail:
# Line 3010  fail: Line 2977  fail:
2977    
2978  SWIGINTERN PyObject *HelmholtzPowTerm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {  SWIGINTERN PyObject *HelmholtzPowTerm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
2979    PyObject *obj;    PyObject *obj;
2980    if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;    if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
2981    SWIG_TypeNewClientData(SWIGTYPE_p_HelmholtzPowTerm_struct, SWIG_NewClientData(obj));    SWIG_TypeNewClientData(SWIGTYPE_p_HelmholtzPowTerm_struct, SWIG_NewClientData(obj));
2982    return SWIG_Py_Void();    return SWIG_Py_Void();
2983  }  }
# Line 3391  SWIGINTERN PyObject *_wrap_new_Helmholtz Line 3358  SWIGINTERN PyObject *_wrap_new_Helmholtz
3358    HelmholtzGausTerm *result = 0 ;    HelmholtzGausTerm *result = 0 ;
3359        
3360    if (!PyArg_ParseTuple(args,(char *)":new_HelmholtzGausTerm")) SWIG_fail;    if (!PyArg_ParseTuple(args,(char *)":new_HelmholtzGausTerm")) SWIG_fail;
3361    result = (HelmholtzGausTerm *)calloc(1, sizeof(HelmholtzGausTerm));    result = (HelmholtzGausTerm *)(HelmholtzGausTerm *) calloc(1, sizeof(HelmholtzGausTerm));
3362    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HelmholtzGausTerm_struct, SWIG_POINTER_NEW |  0 );    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HelmholtzGausTerm_struct, SWIG_POINTER_NEW |  0 );
3363    return resultobj;    return resultobj;
3364  fail:  fail:
# Line 3423  fail: Line 3390  fail:
3390    
3391  SWIGINTERN PyObject *HelmholtzGausTerm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {  SWIGINTERN PyObject *HelmholtzGausTerm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3392    PyObject *obj;    PyObject *obj;
3393    if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;    if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
3394    SWIG_TypeNewClientData(SWIGTYPE_p_HelmholtzGausTerm_struct, SWIG_NewClientData(obj));    SWIG_TypeNewClientData(SWIGTYPE_p_HelmholtzGausTerm_struct, SWIG_NewClientData(obj));
3395    return SWIG_Py_Void();    return SWIG_Py_Void();
3396  }  }
# Line 3857  SWIGINTERN PyObject *_wrap_new_Helmholtz Line 3824  SWIGINTERN PyObject *_wrap_new_Helmholtz
3824    HelmholtzCritTerm *result = 0 ;    HelmholtzCritTerm *result = 0 ;
3825        
3826    if (!PyArg_ParseTuple(args,(char *)":new_HelmholtzCritTerm")) SWIG_fail;    if (!PyArg_ParseTuple(args,(char *)":new_HelmholtzCritTerm")) SWIG_fail;
3827    result = (HelmholtzCritTerm *)calloc(1, sizeof(HelmholtzCritTerm));    result = (HelmholtzCritTerm *)(HelmholtzCritTerm *) calloc(1, sizeof(HelmholtzCritTerm));
3828    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HelmholtzCritTerm_struct, SWIG_POINTER_NEW |  0 );    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HelmholtzCritTerm_struct, SWIG_POINTER_NEW |  0 );
3829    return resultobj;    return resultobj;
3830  fail:  fail:
# Line 3889  fail: Line 3856  fail:
3856    
3857  SWIGINTERN PyObject *HelmholtzCritTerm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {  SWIGINTERN PyObject *HelmholtzCritTerm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3858    PyObject *obj;    PyObject *obj;
3859    if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;    if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
3860    SWIG_TypeNewClientData(SWIGTYPE_p_HelmholtzCritTerm_struct, SWIG_NewClientData(obj));    SWIG_TypeNewClientData(SWIGTYPE_p_HelmholtzCritTerm_struct, SWIG_NewClientData(obj));
3861    return SWIG_Py_Void();    return SWIG_Py_Void();
3862  }  }
# Line 4106  fail: Line 4073  fail:
4073  }  }
4074    
4075    
4076    SWIGINTERN PyObject *_wrap_HelmholtzData_T_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4077      PyObject *resultobj = 0;
4078      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4079      double arg2 ;
4080      void *argp1 = 0 ;
4081      int res1 = 0 ;
4082      double val2 ;
4083      int ecode2 = 0 ;
4084      PyObject * obj0 = 0 ;
4085      PyObject * obj1 = 0 ;
4086      
4087      if (!PyArg_ParseTuple(args,(char *)"OO:HelmholtzData_T_c_set",&obj0,&obj1)) SWIG_fail;
4088      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4089      if (!SWIG_IsOK(res1)) {
4090        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_T_c_set" "', argument " "1"" of type '" "HelmholtzData *""'");
4091      }
4092      arg1 = (HelmholtzData *)(argp1);
4093      ecode2 = SWIG_AsVal_double(obj1, &val2);
4094      if (!SWIG_IsOK(ecode2)) {
4095        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelmholtzData_T_c_set" "', argument " "2"" of type '" "double""'");
4096      }
4097      arg2 = (double)(val2);
4098      if (arg1) (arg1)->T_c = arg2;
4099      
4100      resultobj = SWIG_Py_Void();
4101      return resultobj;
4102    fail:
4103      return NULL;
4104    }
4105    
4106    
4107    SWIGINTERN PyObject *_wrap_HelmholtzData_T_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4108      PyObject *resultobj = 0;
4109      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4110      double result;
4111      void *argp1 = 0 ;
4112      int res1 = 0 ;
4113      PyObject * obj0 = 0 ;
4114      
4115      if (!PyArg_ParseTuple(args,(char *)"O:HelmholtzData_T_c_get",&obj0)) SWIG_fail;
4116      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4117      if (!SWIG_IsOK(res1)) {
4118        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_T_c_get" "', argument " "1"" of type '" "HelmholtzData *""'");
4119      }
4120      arg1 = (HelmholtzData *)(argp1);
4121      result = (double) ((arg1)->T_c);
4122      resultobj = SWIG_From_double((double)(result));
4123      return resultobj;
4124    fail:
4125      return NULL;
4126    }
4127    
4128    
4129    SWIGINTERN PyObject *_wrap_HelmholtzData_p_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4130      PyObject *resultobj = 0;
4131      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4132      double arg2 ;
4133      void *argp1 = 0 ;
4134      int res1 = 0 ;
4135      double val2 ;
4136      int ecode2 = 0 ;
4137      PyObject * obj0 = 0 ;
4138      PyObject * obj1 = 0 ;
4139      
4140      if (!PyArg_ParseTuple(args,(char *)"OO:HelmholtzData_p_c_set",&obj0,&obj1)) SWIG_fail;
4141      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4142      if (!SWIG_IsOK(res1)) {
4143        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_p_c_set" "', argument " "1"" of type '" "HelmholtzData *""'");
4144      }
4145      arg1 = (HelmholtzData *)(argp1);
4146      ecode2 = SWIG_AsVal_double(obj1, &val2);
4147      if (!SWIG_IsOK(ecode2)) {
4148        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelmholtzData_p_c_set" "', argument " "2"" of type '" "double""'");
4149      }
4150      arg2 = (double)(val2);
4151      if (arg1) (arg1)->p_c = arg2;
4152      
4153      resultobj = SWIG_Py_Void();
4154      return resultobj;
4155    fail:
4156      return NULL;
4157    }
4158    
4159    
4160    SWIGINTERN PyObject *_wrap_HelmholtzData_p_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4161      PyObject *resultobj = 0;
4162      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4163      double result;
4164      void *argp1 = 0 ;
4165      int res1 = 0 ;
4166      PyObject * obj0 = 0 ;
4167      
4168      if (!PyArg_ParseTuple(args,(char *)"O:HelmholtzData_p_c_get",&obj0)) SWIG_fail;
4169      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4170      if (!SWIG_IsOK(res1)) {
4171        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_p_c_get" "', argument " "1"" of type '" "HelmholtzData *""'");
4172      }
4173      arg1 = (HelmholtzData *)(argp1);
4174      result = (double) ((arg1)->p_c);
4175      resultobj = SWIG_From_double((double)(result));
4176      return resultobj;
4177    fail:
4178      return NULL;
4179    }
4180    
4181    
4182    SWIGINTERN PyObject *_wrap_HelmholtzData_rho_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4183      PyObject *resultobj = 0;
4184      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4185      double arg2 ;
4186      void *argp1 = 0 ;
4187      int res1 = 0 ;
4188      double val2 ;
4189      int ecode2 = 0 ;
4190      PyObject * obj0 = 0 ;
4191      PyObject * obj1 = 0 ;
4192      
4193      if (!PyArg_ParseTuple(args,(char *)"OO:HelmholtzData_rho_c_set",&obj0,&obj1)) SWIG_fail;
4194      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4195      if (!SWIG_IsOK(res1)) {
4196        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_rho_c_set" "', argument " "1"" of type '" "HelmholtzData *""'");
4197      }
4198      arg1 = (HelmholtzData *)(argp1);
4199      ecode2 = SWIG_AsVal_double(obj1, &val2);
4200      if (!SWIG_IsOK(ecode2)) {
4201        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelmholtzData_rho_c_set" "', argument " "2"" of type '" "double""'");
4202      }
4203      arg2 = (double)(val2);
4204      if (arg1) (arg1)->rho_c = arg2;
4205      
4206      resultobj = SWIG_Py_Void();
4207      return resultobj;
4208    fail:
4209      return NULL;
4210    }
4211    
4212    
4213    SWIGINTERN PyObject *_wrap_HelmholtzData_rho_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4214      PyObject *resultobj = 0;
4215      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4216      double result;
4217      void *argp1 = 0 ;
4218      int res1 = 0 ;
4219      PyObject * obj0 = 0 ;
4220      
4221      if (!PyArg_ParseTuple(args,(char *)"O:HelmholtzData_rho_c_get",&obj0)) SWIG_fail;
4222      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4223      if (!SWIG_IsOK(res1)) {
4224        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_rho_c_get" "', argument " "1"" of type '" "HelmholtzData *""'");
4225      }
4226      arg1 = (HelmholtzData *)(argp1);
4227      result = (double) ((arg1)->rho_c);
4228      resultobj = SWIG_From_double((double)(result));
4229      return resultobj;
4230    fail:
4231      return NULL;
4232    }
4233    
4234    
4235    SWIGINTERN PyObject *_wrap_HelmholtzData_p_t_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4236      PyObject *resultobj = 0;
4237      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4238      double arg2 ;
4239      void *argp1 = 0 ;
4240      int res1 = 0 ;
4241      double val2 ;
4242      int ecode2 = 0 ;
4243      PyObject * obj0 = 0 ;
4244      PyObject * obj1 = 0 ;
4245      
4246      if (!PyArg_ParseTuple(args,(char *)"OO:HelmholtzData_p_t_set",&obj0,&obj1)) SWIG_fail;
4247      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4248      if (!SWIG_IsOK(res1)) {
4249        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_p_t_set" "', argument " "1"" of type '" "HelmholtzData *""'");
4250      }
4251      arg1 = (HelmholtzData *)(argp1);
4252      ecode2 = SWIG_AsVal_double(obj1, &val2);
4253      if (!SWIG_IsOK(ecode2)) {
4254        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelmholtzData_p_t_set" "', argument " "2"" of type '" "double""'");
4255      }
4256      arg2 = (double)(val2);
4257      if (arg1) (arg1)->p_t = arg2;
4258      
4259      resultobj = SWIG_Py_Void();
4260      return resultobj;
4261    fail:
4262      return NULL;
4263    }
4264    
4265    
4266    SWIGINTERN PyObject *_wrap_HelmholtzData_p_t_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4267      PyObject *resultobj = 0;
4268      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4269      double result;
4270      void *argp1 = 0 ;
4271      int res1 = 0 ;
4272      PyObject * obj0 = 0 ;
4273      
4274      if (!PyArg_ParseTuple(args,(char *)"O:HelmholtzData_p_t_get",&obj0)) SWIG_fail;
4275      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4276      if (!SWIG_IsOK(res1)) {
4277        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_p_t_get" "', argument " "1"" of type '" "HelmholtzData *""'");
4278      }
4279      arg1 = (HelmholtzData *)(argp1);
4280      result = (double) ((arg1)->p_t);
4281      resultobj = SWIG_From_double((double)(result));
4282      return resultobj;
4283    fail:
4284      return NULL;
4285    }
4286    
4287    
4288    SWIGINTERN PyObject *_wrap_HelmholtzData_omega_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4289      PyObject *resultobj = 0;
4290      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4291      double arg2 ;
4292      void *argp1 = 0 ;
4293      int res1 = 0 ;
4294      double val2 ;
4295      int ecode2 = 0 ;
4296      PyObject * obj0 = 0 ;
4297      PyObject * obj1 = 0 ;
4298      
4299      if (!PyArg_ParseTuple(args,(char *)"OO:HelmholtzData_omega_set",&obj0,&obj1)) SWIG_fail;
4300      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4301      if (!SWIG_IsOK(res1)) {
4302        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_omega_set" "', argument " "1"" of type '" "HelmholtzData *""'");
4303      }
4304      arg1 = (HelmholtzData *)(argp1);
4305      ecode2 = SWIG_AsVal_double(obj1, &val2);
4306      if (!SWIG_IsOK(ecode2)) {
4307        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelmholtzData_omega_set" "', argument " "2"" of type '" "double""'");
4308      }
4309      arg2 = (double)(val2);
4310      if (arg1) (arg1)->omega = arg2;
4311      
4312      resultobj = SWIG_Py_Void();
4313      return resultobj;
4314    fail:
4315      return NULL;
4316    }
4317    
4318    
4319    SWIGINTERN PyObject *_wrap_HelmholtzData_omega_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4320      PyObject *resultobj = 0;
4321      HelmholtzData *arg1 = (HelmholtzData *) 0 ;
4322      double result;
4323      void *argp1 = 0 ;
4324      int res1 = 0 ;
4325      PyObject * obj0 = 0 ;
4326      
4327      if (!PyArg_ParseTuple(args,(char *)"O:HelmholtzData_omega_get",&obj0)) SWIG_fail;
4328      res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
4329      if (!SWIG_IsOK(res1)) {
4330        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelmholtzData_omega_get" "', argument " "1"" of type '" "HelmholtzData *""'");
4331      }
4332      arg1 = (HelmholtzData *)(argp1);
4333      result = (double) ((arg1)->omega);
4334      resultobj = SWIG_From_double((double)(result));
4335      return resultobj;
4336    fail:
4337      return NULL;
4338    }
4339    
4340    
4341  SWIGINTERN PyObject *_wrap_HelmholtzData_ideal_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {  SWIGINTERN PyObject *_wrap_HelmholtzData_ideal_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4342    PyObject *resultobj = 0;    PyObject *resultobj = 0;
4343    HelmholtzData *arg1 = (HelmholtzData *) 0 ;    HelmholtzData *arg1 = (HelmholtzData *) 0 ;
# Line 4482  SWIGINTERN PyObject *_wrap_new_Helmholtz Line 4714  SWIGINTERN PyObject *_wrap_new_Helmholtz
4714    HelmholtzData *result = 0 ;    HelmholtzData *result = 0 ;
4715        
4716    if (!PyArg_ParseTuple(args,(char *)":new_HelmholtzData")) SWIG_fail;    if (!PyArg_ParseTuple(args,(char *)":new_HelmholtzData")) SWIG_fail;
4717    result = (HelmholtzData *)calloc(1, sizeof(HelmholtzData));    result = (HelmholtzData *)(HelmholtzData *) calloc(1, sizeof(HelmholtzData));
4718    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HelmholtzData_struct, SWIG_POINTER_NEW |  0 );    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HelmholtzData_struct, SWIG_POINTER_NEW |  0 );
4719    return resultobj;    return resultobj;
4720  fail:  fail:
# Line 4514  fail: Line 4746  fail:
4746    
4747  SWIGINTERN PyObject *HelmholtzData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {  SWIGINTERN PyObject *HelmholtzData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4748    PyObject *obj;    PyObject *obj;
4749    if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;    if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
4750    SWIG_TypeNewClientData(SWIGTYPE_p_HelmholtzData_struct, SWIG_NewClientData(obj));    SWIG_TypeNewClientData(SWIGTYPE_p_HelmholtzData_struct, SWIG_NewClientData(obj));
4751    return SWIG_Py_Void();    return SWIG_Py_Void();
4752  }  }
# Line 4839  fail: Line 5071  fail:
5071  }  }
5072    
5073    
5074    SWIGINTERN PyObject *_wrap_helmholtz_sat_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5075      PyObject *resultobj = 0;
5076      double arg1 ;
5077      double *arg2 = (double *) 0 ;
5078      double *arg3 = (double *) 0 ;
5079      double *arg4 = (double *) 0 ;
5080      HelmholtzData *arg5 = (HelmholtzData *) 0 ;
5081      int result;
5082      double val1 ;
5083      int ecode1 = 0 ;
5084      void *argp2 = 0 ;
5085      int res2 = 0 ;
5086      void *argp3 = 0 ;
5087      int res3 = 0 ;
5088      void *argp4 = 0 ;
5089      int res4 = 0 ;
5090      void *argp5 = 0 ;
5091      int res5 = 0 ;
5092      PyObject * obj0 = 0 ;
5093      PyObject * obj1 = 0 ;
5094      PyObject * obj2 = 0 ;
5095      PyObject * obj3 = 0 ;
5096      PyObject * obj4 = 0 ;
5097      
5098      if (!PyArg_ParseTuple(args,(char *)"OOOOO:helmholtz_sat_t",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
5099      ecode1 = SWIG_AsVal_double(obj0, &val1);
5100      if (!SWIG_IsOK(ecode1)) {
5101        SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "helmholtz_sat_t" "', argument " "1"" of type '" "double""'");
5102      }
5103      arg1 = (double)(val1);
5104      res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 |  0 );
5105      if (!SWIG_IsOK(res2)) {
5106        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "helmholtz_sat_t" "', argument " "2"" of type '" "double *""'");
5107      }
5108      arg2 = (double *)(argp2);
5109      res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 |  0 );
5110      if (!SWIG_IsOK(res3)) {
5111        SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "helmholtz_sat_t" "', argument " "3"" of type '" "double *""'");
5112      }
5113      arg3 = (double *)(argp3);
5114      res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_double, 0 |  0 );
5115      if (!SWIG_IsOK(res4)) {
5116        SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "helmholtz_sat_t" "', argument " "4"" of type '" "double *""'");
5117      }
5118      arg4 = (double *)(argp4);
5119      res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_HelmholtzData_struct, 0 |  0 );
5120      if (!SWIG_IsOK(res5)) {
5121        SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "helmholtz_sat_t" "', argument " "5"" of type '" "HelmholtzData const *""'");
5122      }
5123      arg5 = (HelmholtzData *)(argp5);
5124      result = (int)helmholtz_sat_t(arg1,arg2,arg3,arg4,(struct HelmholtzData_struct const *)arg5);
5125      resultobj = SWIG_From_int((int)(result));
5126      return resultobj;
5127    fail:
5128      return NULL;
5129    }
5130    
5131    
5132  SWIGINTERN PyObject *_wrap_helmholtz_cp0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {  SWIGINTERN PyObject *_wrap_helmholtz_cp0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5133    PyObject *resultobj = 0;    PyObject *resultobj = 0;
5134    double arg1 ;    double arg1 ;
# Line 5110  fail: Line 5400  fail:
5400  }  }
5401    
5402    
5403    SWIGINTERN int helmholtz_data_carbondioxide_set(PyObject *_val SWIGUNUSED) {
5404      SWIG_Error(SWIG_AttributeError,"Variable helmholtz_data_carbondioxide is read-only.");
5405      return 1;
5406    }
5407    
5408    
5409    SWIGINTERN PyObject *helmholtz_data_carbondioxide_get(void) {
5410      PyObject *pyobj = 0;
5411      
5412      pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&helmholtz_data_carbondioxide), SWIGTYPE_p_HelmholtzData_struct,  0 );
5413      return pyobj;
5414    }
5415    
5416    
5417    SWIGINTERN int helmholtz_data_water_set(PyObject *_val SWIGUNUSED) {
5418      SWIG_Error(SWIG_AttributeError,"Variable helmholtz_data_water is read-only.");
5419      return 1;
5420    }
5421    
5422    
5423    SWIGINTERN PyObject *helmholtz_data_water_get(void) {
5424      PyObject *pyobj = 0;
5425      
5426      pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&helmholtz_data_water), SWIGTYPE_p_HelmholtzData_struct,  0 );
5427      return pyobj;
5428    }
5429    
5430    
5431    SWIGINTERN int helmholtz_data_ammonia_set(PyObject *_val SWIGUNUSED) {
5432      SWIG_Error(SWIG_AttributeError,"Variable helmholtz_data_ammonia is read-only.");
5433      return 1;
5434    }
5435    
5436    
5437    SWIGINTERN PyObject *helmholtz_data_ammonia_get(void) {
5438      PyObject *pyobj = 0;
5439      
5440      pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&helmholtz_data_ammonia), SWIGTYPE_p_HelmholtzData_struct,  0 );
5441      return pyobj;
5442    }
5443    
5444    
5445    SWIGINTERN int helmholtz_data_hydrogen_set(PyObject *_val SWIGUNUSED) {
5446      SWIG_Error(SWIG_AttributeError,"Variable helmholtz_data_hydrogen is read-only.");
5447      return 1;
5448    }
5449    
5450    
5451    SWIGINTERN PyObject *helmholtz_data_hydrogen_get(void) {
5452      PyObject *pyobj = 0;
5453      
5454      pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&helmholtz_data_hydrogen), SWIGTYPE_p_HelmholtzData_struct,  0 );
5455      return pyobj;
5456    }
5457    
5458    
5459    SWIGINTERN int helmholtz_data_nitrogen_set(PyObject *_val SWIGUNUSED) {
5460      SWIG_Error(SWIG_AttributeError,"Variable helmholtz_data_nitrogen is read-only.");
5461      return 1;
5462    }
5463    
5464    
5465    SWIGINTERN PyObject *helmholtz_data_nitrogen_get(void) {
5466      PyObject *pyobj = 0;
5467      
5468      pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&helmholtz_data_nitrogen), SWIGTYPE_p_HelmholtzData_struct,  0 );
5469      return pyobj;
5470    }
5471    
5472    
5473  static PyMethodDef SwigMethods[] = {  static PyMethodDef SwigMethods[] = {
5474       { (char *)"HelmholtzPowTerm_a_set", _wrap_HelmholtzPowTerm_a_set, METH_VARARGS, NULL},       { (char *)"HelmholtzPowTerm_a_set", _wrap_HelmholtzPowTerm_a_set, METH_VARARGS, NULL},
5475       { (char *)"HelmholtzPowTerm_a_get", _wrap_HelmholtzPowTerm_a_get, METH_VARARGS, NULL},       { (char *)"HelmholtzPowTerm_a_get", _wrap_HelmholtzPowTerm_a_get, METH_VARARGS, NULL},
# Line 5166  static PyMethodDef SwigMethods[] = { Line 5526  static PyMethodDef SwigMethods[] = {
5526       { (char *)"HelmholtzData_rho_star_get", _wrap_HelmholtzData_rho_star_get, METH_VARARGS, NULL},       { (char *)"HelmholtzData_rho_star_get", _wrap_HelmholtzData_rho_star_get, METH_VARARGS, NULL},
5527       { (char *)"HelmholtzData_T_star_set", _wrap_HelmholtzData_T_star_set, METH_VARARGS, NULL},       { (char *)"HelmholtzData_T_star_set", _wrap_HelmholtzData_T_star_set, METH_VARARGS, NULL},
5528       { (char *)"HelmholtzData_T_star_get", _wrap_HelmholtzData_T_star_get, METH_VARARGS, NULL},       { (char *)"HelmholtzData_T_star_get", _wrap_HelmholtzData_T_star_get, METH_VARARGS, NULL},
5529         { (char *)"HelmholtzData_T_c_set", _wrap_HelmholtzData_T_c_set, METH_VARARGS, NULL},
5530         { (char *)"HelmholtzData_T_c_get", _wrap_HelmholtzData_T_c_get, METH_VARARGS, NULL},
5531         { (char *)"HelmholtzData_p_c_set", _wrap_HelmholtzData_p_c_set, METH_VARARGS, NULL},
5532         { (char *)"HelmholtzData_p_c_get", _wrap_HelmholtzData_p_c_get, METH_VARARGS, NULL},
5533         { (char *)"HelmholtzData_rho_c_set", _wrap_HelmholtzData_rho_c_set, METH_VARARGS, NULL},
5534         { (char *)"HelmholtzData_rho_c_get", _wrap_HelmholtzData_rho_c_get, METH_VARARGS, NULL},
5535         { (char *)"HelmholtzData_p_t_set", _wrap_HelmholtzData_p_t_set, METH_VARARGS, NULL},
5536         { (char *)"HelmholtzData_p_t_get", _wrap_HelmholtzData_p_t_get, METH_VARARGS, NULL},
5537         { (char *)"HelmholtzData_omega_set", _wrap_HelmholtzData_omega_set, METH_VARARGS, NULL},
5538         { (char *)"HelmholtzData_omega_get", _wrap_HelmholtzData_omega_get, METH_VARARGS, NULL},
5539       { (char *)"HelmholtzData_ideal_set", _wrap_HelmholtzData_ideal_set, METH_VARARGS, NULL},       { (char *)"HelmholtzData_ideal_set", _wrap_HelmholtzData_ideal_set, METH_VARARGS, NULL},
5540       { (char *)"HelmholtzData_ideal_get", _wrap_HelmholtzData_ideal_get, METH_VARARGS, NULL},       { (char *)"HelmholtzData_ideal_get", _wrap_HelmholtzData_ideal_get, METH_VARARGS, NULL},
5541       { (char *)"HelmholtzData_np_set", _wrap_HelmholtzData_np_set, METH_VARARGS, NULL},       { (char *)"HelmholtzData_np_set", _wrap_HelmholtzData_np_set, METH_VARARGS, NULL},
# Line 5191  static PyMethodDef SwigMethods[] = { Line 5561  static PyMethodDef SwigMethods[] = {
5561       { (char *)"helmholtz_cv", _wrap_helmholtz_cv, METH_VARARGS, NULL},       { (char *)"helmholtz_cv", _wrap_helmholtz_cv, METH_VARARGS, NULL},
5562       { (char *)"helmholtz_cp", _wrap_helmholtz_cp, METH_VARARGS, NULL},       { (char *)"helmholtz_cp", _wrap_helmholtz_cp, METH_VARARGS, NULL},
5563       { (char *)"helmholtz_w", _wrap_helmholtz_w, METH_VARARGS, NULL},       { (char *)"helmholtz_w", _wrap_helmholtz_w, METH_VARARGS, NULL},
5564         { (char *)"helmholtz_sat_t", _wrap_helmholtz_sat_t, METH_VARARGS, NULL},
5565       { (char *)"helmholtz_cp0", _wrap_helmholtz_cp0, METH_VARARGS, NULL},       { (char *)"helmholtz_cp0", _wrap_helmholtz_cp0, METH_VARARGS, NULL},
5566       { (char *)"helmholtz_dpdT_rho", _wrap_helmholtz_dpdT_rho, METH_VARARGS, NULL},       { (char *)"helmholtz_dpdT_rho", _wrap_helmholtz_dpdT_rho, METH_VARARGS, NULL},
5567       { (char *)"helmholtz_dpdrho_T", _wrap_helmholtz_dpdrho_T, METH_VARARGS, NULL},       { (char *)"helmholtz_dpdrho_T", _wrap_helmholtz_dpdrho_T, METH_VARARGS, NULL},
# Line 5204  static PyMethodDef SwigMethods[] = { Line 5575  static PyMethodDef SwigMethods[] = {
5575    
5576  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5577    
5578  static swig_type_info _swigt__p_HelmholtzCritTerm_struct = {"_p_HelmholtzCritTerm_struct", "HelmholtzCritTerm *|struct HelmholtzCritTerm_struct *", 0, 0, (void*)0, 0};  static swig_type_info _swigt__p_HelmholtzCritTerm_struct = {"_p_HelmholtzCritTerm_struct", "struct HelmholtzCritTerm_struct *|HelmholtzCritTerm *", 0, 0, (void*)0, 0};
5579  static swig_type_info _swigt__p_HelmholtzData_struct = {"_p_HelmholtzData_struct", "HelmholtzData *|struct HelmholtzData_struct *", 0, 0, (void*)0, 0};  static swig_type_info _swigt__p_HelmholtzData_struct = {"_p_HelmholtzData_struct", "struct HelmholtzData_struct *|HelmholtzData *", 0, 0, (void*)0, 0};
5580  static swig_type_info _swigt__p_HelmholtzGausTerm_struct = {"_p_HelmholtzGausTerm_struct", "HelmholtzGausTerm *|struct HelmholtzGausTerm_struct *", 0, 0, (void*)0, 0};  static swig_type_info _swigt__p_HelmholtzGausTerm_struct = {"_p_HelmholtzGausTerm_struct", "struct HelmholtzGausTerm_struct *|HelmholtzGausTerm *", 0, 0, (void*)0, 0};
5581  static swig_type_info _swigt__p_HelmholtzPowTerm_struct = {"_p_HelmholtzPowTerm_struct", "HelmholtzPowTerm *|struct HelmholtzPowTerm_struct *", 0, 0, (void*)0, 0};  static swig_type_info _swigt__p_HelmholtzPowTerm_struct = {"_p_HelmholtzPowTerm_struct", "struct HelmholtzPowTerm_struct *|HelmholtzPowTerm *", 0, 0, (void*)0, 0};
5582  static swig_type_info _swigt__p_IdealData = {"_p_IdealData", "IdealData *", 0, 0, (void*)0, 0};  static swig_type_info _swigt__p_IdealData = {"_p_IdealData", "IdealData *", 0, 0, (void*)0, 0};
5583  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
5584    static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
5585    
5586  static swig_type_info *swig_type_initial[] = {  static swig_type_info *swig_type_initial[] = {
5587    &_swigt__p_HelmholtzCritTerm_struct,    &_swigt__p_HelmholtzCritTerm_struct,
# Line 5218  static swig_type_info *swig_type_initial Line 5590  static swig_type_info *swig_type_initial
5590    &_swigt__p_HelmholtzPowTerm_struct,    &_swigt__p_HelmholtzPowTerm_struct,
5591    &_swigt__p_IdealData,    &_swigt__p_IdealData,
5592    &_swigt__p_char,    &_swigt__p_char,
5593      &_swigt__p_double,
5594  };  };
5595    
5596  static swig_cast_info _swigc__p_HelmholtzCritTerm_struct[] = {  {&_swigt__p_HelmholtzCritTerm_struct, 0, 0, 0},{0, 0, 0, 0}};  static swig_cast_info _swigc__p_HelmholtzCritTerm_struct[] = {  {&_swigt__p_HelmholtzCritTerm_struct, 0, 0, 0},{0, 0, 0, 0}};
# Line 5226  static swig_cast_info _swigc__p_Helmholt Line 5599  static swig_cast_info _swigc__p_Helmholt
5599  static swig_cast_info _swigc__p_HelmholtzPowTerm_struct[] = {  {&_swigt__p_HelmholtzPowTerm_struct, 0, 0, 0},{0, 0, 0, 0}};  static swig_cast_info _swigc__p_HelmholtzPowTerm_struct[] = {  {&_swigt__p_HelmholtzPowTerm_struct, 0, 0, 0},{0, 0, 0, 0}};
5600  static swig_cast_info _swigc__p_IdealData[] = {  {&_swigt__p_IdealData, 0, 0, 0},{0, 0, 0, 0}};  static swig_cast_info _swigc__p_IdealData[] = {  {&_swigt__p_IdealData, 0, 0, 0},{0, 0, 0, 0}};
5601  static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};  static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
5602    static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
5603    
5604  static swig_cast_info *swig_cast_initial[] = {  static swig_cast_info *swig_cast_initial[] = {
5605    _swigc__p_HelmholtzCritTerm_struct,    _swigc__p_HelmholtzCritTerm_struct,
# Line 5234  static swig_cast_info *swig_cast_initial Line 5608  static swig_cast_info *swig_cast_initial
5608    _swigc__p_HelmholtzPowTerm_struct,    _swigc__p_HelmholtzPowTerm_struct,
5609    _swigc__p_IdealData,    _swigc__p_IdealData,
5610    _swigc__p_char,    _swigc__p_char,
5611      _swigc__p_double,
5612  };  };
5613    
5614    
# Line 5302  SWIGRUNTIME void Line 5677  SWIGRUNTIME void
5677  SWIG_InitializeModule(void *clientdata) {  SWIG_InitializeModule(void *clientdata) {
5678    size_t i;    size_t i;
5679    swig_module_info *module_head, *iter;    swig_module_info *module_head, *iter;
5680    int found, init;    int found;
5681        
5682    clientdata = clientdata;    clientdata = clientdata;
5683        
# Line 5312  SWIG_InitializeModule(void *clientdata) Line 5687  SWIG_InitializeModule(void *clientdata)
5687      swig_module.type_initial = swig_type_initial;      swig_module.type_initial = swig_type_initial;
5688      swig_module.cast_initial = swig_cast_initial;      swig_module.cast_initial = swig_cast_initial;
5689      swig_module.next = &swig_module;      swig_module.next = &swig_module;
     init = 1;  
   } else {  
     init = 0;  
5690    }    }
5691        
5692    /* Try and load any already created modules */    /* Try and load any already created modules */
# Line 5343  SWIG_InitializeModule(void *clientdata) Line 5715  SWIG_InitializeModule(void *clientdata)
5715      module_head->next = &swig_module;      module_head->next = &swig_module;
5716    }    }
5717        
   /* When multiple interpeters are used, a module could have already been initialized in  
        a different interpreter, but not yet have a pointer in this interpreter.  
        In this case, we do not want to continue adding types... everything should be  
        set up already */  
   if (init == 0) return;  
     
5718    /* Now work on filling in swig_module.types */    /* Now work on filling in swig_module.types */
5719  #ifdef SWIGRUNTIME_DEBUG  #ifdef SWIGRUNTIME_DEBUG
5720    printf("SWIG_InitializeModule: size %d\n", swig_module.size);    printf("SWIG_InitializeModule: size %d\n", swig_module.size);
# Line 5764  SWIGEXPORT void SWIG_init(void) { Line 6130  SWIGEXPORT void SWIG_init(void) {
6130        
6131        
6132    PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());    PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
6133    SWIG_addvarlink(SWIG_globals(),(char*)"helmholtz_data_water",Swig_var_helmholtz_data_water_get, Swig_var_helmholtz_data_water_set);    SWIG_addvarlink(SWIG_globals(),(char*)"helmholtz_data_carbondioxide",helmholtz_data_carbondioxide_get, helmholtz_data_carbondioxide_set);
6134      SWIG_addvarlink(SWIG_globals(),(char*)"helmholtz_data_water",helmholtz_data_water_get, helmholtz_data_water_set);
6135      SWIG_addvarlink(SWIG_globals(),(char*)"helmholtz_data_ammonia",helmholtz_data_ammonia_get, helmholtz_data_ammonia_set);
6136      SWIG_addvarlink(SWIG_globals(),(char*)"helmholtz_data_hydrogen",helmholtz_data_hydrogen_get, helmholtz_data_hydrogen_set);
6137      SWIG_addvarlink(SWIG_globals(),(char*)"helmholtz_data_nitrogen",helmholtz_data_nitrogen_get, helmholtz_data_nitrogen_set);
6138  }  }
6139    

Legend:
Removed from v.2116  
changed lines
  Added in v.2117

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22