Skip to content

Commit

Permalink
[clib] Rename inconsistent setters
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Aug 14, 2024
1 parent 877de88 commit fdb6cd8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion include/cantera/clib/ctreactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
CANTERA_CAPI double reactor_massFraction(int i, int k);
CANTERA_CAPI size_t reactor_nSensParams(int i);
CANTERA_CAPI int reactor_addSensitivityReaction(int i, int rxn);
CANTERA_CAPI int flowReactor_setMassFlowRate(int i, double mdot);
CANTERA_CAPI int reactor_setMassFlowRate(int i, double mdot);

CANTERA_CAPI int reactornet_new();
CANTERA_CAPI int reactornet_del(int i);
Expand Down
2 changes: 0 additions & 2 deletions interfaces/sourcegen/sourcegen/csharp/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ ignore_files:
ignore_funcs:
ct.h:
- ct_setLogWriter
ctreactor.h:
- flowReactor_setMassFlowRate

# Replaces the name as determined by the C function prefix
# with the name of the class that function is designed to expose
Expand Down
10 changes: 0 additions & 10 deletions src/clib/ctonedim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,6 @@ extern "C" {
}
}

int inlet_setSpreadRate(int i, double v)
{
try {
DomainCabinet::get<Inlet1D>(i).setSpreadRate(v);
return 0;
} catch (...) {
return handleAllExceptions(-1, ERR);
}
}

//------------------ flow domains --------------------

int flow1D_new(int iph, int ikin, int itr, int itype)
Expand Down
2 changes: 1 addition & 1 deletion src/clib/ctreactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ extern "C" {
}
}

int flowReactor_setMassFlowRate(int i, double mdot)
int reactor_setMassFlowRate(int i, double mdot)
{
try {
ReactorCabinet::get<FlowReactor>(i).setMassFlowRate(mdot);
Expand Down

0 comments on commit fdb6cd8

Please sign in to comment.