Skip to content

Commit

Permalink
[Func1] Rename Func1::type_name to Func1::typeName
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Jul 1, 2023
1 parent 1b8fc65 commit b4dad59
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/cantera/numerics/Func1.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Func1

//! Returns a string describing the type of the function
//! @since New in Cantera 3.0.
string type_name() const;
string typeName() const;

//! Calls method eval to evaluate the function
doublereal operator()(doublereal t) const;
Expand Down
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/func1.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cdef extern from "cantera/numerics/Func1.h":
cdef cppclass CxxFunc1 "Cantera::Func1":
double eval(double) except +translate_exception
string type()
string type_name()
string typeName()
string write(string)


Expand Down
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/func1.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ cdef class Func1:
else:
raise ValueError("Invalid arguments")

cls_name = pystr(func.get().type_name()).split("::")[-1]
cls_name = pystr(func.get().typeName()).split("::")[-1]
cdef Func1 out = type(
cls_name, (cls, ), {"__module__": cls.__module__})(None, init=False)
out._func = func
Expand Down
2 changes: 1 addition & 1 deletion src/numerics/Func1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int Func1::ID() const
return 0;
}

string Func1::type_name() const
string Func1::typeName() const
{
return demangle(typeid(*this));
}
Expand Down

0 comments on commit b4dad59

Please sign in to comment.