Skip to content

Commit

Permalink
[clib] Do not use transitional names
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Aug 6, 2024
1 parent db8c371 commit 32a8d4b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions include/cantera/clib/ct.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extern "C" {
CANTERA_CAPI size_t thermo_elementIndex(int n, const char* nm);
CANTERA_CAPI size_t thermo_speciesIndex(int n, const char* nm);
//! @since Changed signature in %Cantera 3.1
CANTERA_CAPI int thermo_report3(int nth, int show_thermo, double threshold, int ibuf, char* buf);
CANTERA_CAPI int thermo_report(int nth, int show_thermo, double threshold, int ibuf, char* buf);
CANTERA_CAPI int thermo_print(int nth, int show_thermo, double threshold);
CANTERA_CAPI double thermo_nAtoms(int n, size_t k, size_t m);
CANTERA_CAPI int thermo_addElement(int n, const char* name, double weight);
Expand Down Expand Up @@ -182,7 +182,7 @@ extern "C" {
CANTERA_CAPI int ct_setLogCallback(LogCallback writer);
CANTERA_CAPI int ct_addCanteraDirectory(size_t buflen, const char* buf);
//! @since Changed signature in %Cantera 3.1
CANTERA_CAPI int ct_getDataDirectories3(const char* sep, int buflen, char* buf);
CANTERA_CAPI int ct_getDataDirectories(const char* sep, int buflen, char* buf);
CANTERA_CAPI int ct_getCanteraVersion(int buflen, char* buf);
CANTERA_CAPI int ct_getGitCommit(int buflen, char* buf);
CANTERA_CAPI int ct_suppress_thermo_warnings(int suppress);
Expand Down
2 changes: 1 addition & 1 deletion interfaces/dotnet/Cantera/src/DataDirectoryCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ unsafe static IEnumerable<DirectoryInfo> GetDirs()

return InteropUtil
.GetString(500, (size, buffer) =>
LibCantera.ct_getDataDirectories3(sep.ToString(), size, buffer))
LibCantera.ct_getDataDirectories(sep.ToString(), size, buffer))
.Split(sep)
.Select(d => new DirectoryInfo(d));
}
Expand Down
2 changes: 1 addition & 1 deletion interfaces/matlab_experimental/Base/ThermoPhase.m
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ function display(tp)
if nargin < 2
threshold = 1e-14;
end
str = ctString('thermo_report3', tp.tpID, 1, threshold);
str = ctString('thermo_report', tp.tpID, 1, threshold);
end

function n = get.speciesNames(tp)
Expand Down
2 changes: 1 addition & 1 deletion interfaces/matlab_experimental/Utility/ctDataDirectories.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
% Cell array with strings representing the data file search directories

ctIsLoaded;
d = ctString('ct_getDataDirectories3', ';');
d = ctString('ct_getDataDirectories', ';');
end
4 changes: 2 additions & 2 deletions src/clib/ct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ extern "C" {

//-------------------- Functions ---------------------------

int thermo_report3(int nth, int show_thermo, double threshold, int ibuf, char* buf)
int thermo_report(int nth, int show_thermo, double threshold, int ibuf, char* buf)
{
try {
bool stherm = (show_thermo != 0);
Expand Down Expand Up @@ -1630,7 +1630,7 @@ extern "C" {
}
}

int ct_getDataDirectories3(const char* sep, int buflen, char* buf)
int ct_getDataDirectories(const char* sep, int buflen, char* buf)
{
try {
return static_cast<int>(copyString(getDataDirectories(sep), buf, buflen));
Expand Down

0 comments on commit 32a8d4b

Please sign in to comment.