Skip to content

Commit

Permalink
Fix some constants in the pymodule interface
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Apr 4, 2022
1 parent 8e64084 commit 5ee4cc7
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions pymodule/_smelib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static PyObject * smelib_SetLibraryPath(PyObject * self, PyObject *args)
static char smelib_InputWaveRange_docstring[] = "Read in Wavelength range";
static PyObject * smelib_InputWaveRange(PyObject * self, PyObject *args)
{
int n = 2;
const int n = 2;
const char * result = NULL;
void * args_c[n];
double wmin, wmax;
Expand All @@ -111,7 +111,7 @@ static PyObject * smelib_InputWaveRange(PyObject * self, PyObject *args)
static char smelib_SetVWscale_docstring[] = "Set van der Waals scaling factor";
static PyObject * smelib_SetVWscale(PyObject * self, PyObject *args)
{
int n = 1;
const int n = 1;
const char * result = NULL;
void * args_c[n];
double vwscale;
Expand All @@ -134,7 +134,7 @@ static PyObject * smelib_SetVWscale(PyObject * self, PyObject *args)
static char smelib_SetH2broad_docstring[] = "Set flag for H2 molecule";
static PyObject * smelib_SetH2broad(PyObject * self, PyObject *args)
{
int n = 0;
const int n = 0;
const char * result = NULL;
void ** args_c = NULL;

Expand All @@ -152,7 +152,7 @@ static PyObject * smelib_SetH2broad(PyObject * self, PyObject *args)
static char smelib_ClearH2broad_docstring[] = "Clear flag for H2 molecule";
static PyObject * smelib_ClearH2broad(PyObject * self, PyObject *args)
{
int n = 0;
const int n = 0;
const char * result = NULL;
void ** args_c = NULL;

Expand Down Expand Up @@ -583,7 +583,7 @@ static PyObject * smelib_InputModel(PyObject * self, PyObject *args, PyObject *k
static char smelib_InputDepartureCoefficients_docstring[] = "Input Departure coefficients";
static PyObject * smelib_InputDepartureCoefficients(PyObject * self, PyObject *args)
{
int n = 2;
const int n = 2;
void * args_c[n];
const char * result = NULL;
int linenumber;
Expand Down Expand Up @@ -672,7 +672,7 @@ static char smelib_ResetDepartureCoefficients_docstring[] = "Reset to LTE";
static PyObject * smelib_ResetDepartureCoefficients(PyObject * self, PyObject *args)
{
const int n = 0;
void * args_c[n];
void ** args_c = NULL;
const char * result = NULL;

result = ResetDepartureCoefficients(n, args_c);
Expand Down Expand Up @@ -734,7 +734,7 @@ static char smelib_Opacity_docstring[] = "Calculate opacities";
static PyObject * smelib_Opacity(PyObject * self, PyObject *args)
{
const int n = 0;
void * args_c[n];
void ** args_c = NULL;
const char * result = NULL;

result = Opacity(n, args_c);
Expand All @@ -751,7 +751,7 @@ static char smelib_GetOpacity_docstring[] = "Returns specific cont. opacity";
static PyObject * smelib_GetOpacity(PyObject * self, PyObject *args, PyObject * kwds)
{
int n = 5;
void * args_c[n];
void * args_c[5];
const char * result = NULL;
char * choice = NULL, * species=NULL, * key=NULL;
short number = -100;
Expand Down Expand Up @@ -839,7 +839,7 @@ static PyObject * smelib_GetOpacity(PyObject * self, PyObject *args, PyObject *
static char smelib_Ionization_docstring[] = "Perform EOS calculations";
static PyObject * smelib_Ionization(PyObject * self, PyObject *args)
{
int n = 1;
const int n = 1;
void * args_c[n];
const char * result = NULL;
short flag = 0;
Expand All @@ -860,7 +860,7 @@ static PyObject * smelib_Ionization(PyObject * self, PyObject *args)
static char smelib_GetDensity_docstring[] = "Returns density in g/cm^3";
static PyObject * smelib_GetDensity(PyObject * self, PyObject *args)
{
int n = 2;
const int n = 2;
void * args_c[n];
const char * result = NULL;

Expand All @@ -887,7 +887,7 @@ static PyObject * smelib_GetDensity(PyObject * self, PyObject *args)
static char smelib_GetNatom_docstring[] = "Returns atomic number density";
static PyObject * smelib_GetNatom(PyObject * self, PyObject *args)
{
int n = 2;
const int n = 2;
void * args_c[n];
const char * result = NULL;

Expand All @@ -914,7 +914,7 @@ static PyObject * smelib_GetNatom(PyObject * self, PyObject *args)
static char smelib_GetNelec_docstring[] = "Returns electron number density";
static PyObject * smelib_GetNelec(PyObject * self, PyObject *args)
{
int n = 2;
const int n = 2;
void * args_c[n];
const char * result = NULL;

Expand All @@ -941,7 +941,7 @@ static PyObject * smelib_GetNelec(PyObject * self, PyObject *args)
static char smelib_Transf_docstring[] = "Computes spectral synthesis";
static PyObject * smelib_Transf(PyObject * self, PyObject *args, PyObject * kwds)
{
int n = 12;
const int n = 12;
void * args_c[n];
const char * result = NULL;

Expand Down Expand Up @@ -1040,7 +1040,7 @@ static PyObject * smelib_Transf(PyObject * self, PyObject *args, PyObject * kwds
static char smelib_CentralDepth_docstring[] = "Computes line central depths";
static PyObject * smelib_CentralDepth(PyObject * self, PyObject *args, PyObject * kwds)
{
int n = 5;
const int n = 5;
void * args_c[n];
const char * result = NULL;
npy_intp dims[1];
Expand Down Expand Up @@ -1092,7 +1092,7 @@ static PyObject * smelib_CentralDepth(PyObject * self, PyObject *args, PyObject
static char smelib_GetLineOpacity_docstring[] = "Returns specific line opacity";
static PyObject * smelib_GetLineOpacity(PyObject * self, PyObject *args)
{
int n = 7;
const int n = 7;
void * args_c[n];
const char * result = NULL;
npy_intp dims[1];
Expand Down Expand Up @@ -1141,7 +1141,7 @@ static PyObject * smelib_GetLineOpacity(PyObject * self, PyObject *args)
static char smelib_GetLineRange_docstring[] = "Get validity range for every line";
static PyObject * smelib_GetLineRange(PyObject * self, PyObject *args)
{
int n = 2;
const int n = 2;
void * args_c[n];
const char * result = NULL;
npy_intp dims[2];
Expand Down Expand Up @@ -1171,7 +1171,7 @@ static PyObject * smelib_GetLineRange(PyObject * self, PyObject *args)
static char smelib_GetNLTEflags_docstring[] = "Get line list NLTE flags";
static PyObject * smelib_GetNLTEflags(PyObject * self, PyObject *args)
{
int n = 2;
const int n = 2;
void * args_c[n];
const char * result = NULL;
npy_intp dims[2];
Expand Down

0 comments on commit 5ee4cc7

Please sign in to comment.