Skip to content

Commit

Permalink
Fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jan 23, 2023
1 parent 7f73505 commit 9783989
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions include/cantera/cython/funcWrapper.h
Expand Up @@ -14,7 +14,7 @@

typedef double(*callback_wrapper)(double, void*, void**);

//! A class to hold information needed to call Python functions from delgated
//! A class to hold information needed to call Python functions from delegated
//! methods (see class Delegator).
class PyFuncInfo {
public:
Expand Down Expand Up @@ -172,7 +172,7 @@ extern "C" {


//! Take a function which requires Python function information (as a PyFuncInfo
//! object) and capture that object to generate a function that does not reqire
//! object) and capture that object to generate a function that does not require
//! any Python-specific arguments.
//!
//! The inner function is responsible for catching Python exceptions and
Expand Down
2 changes: 1 addition & 1 deletion include/cantera/kinetics/BlowersMaselRate.h
Expand Up @@ -180,7 +180,7 @@ class BlowersMaselRate : public ArrheniusBase
}

protected:
//! Pairs of species indices and multiplers to calculate enthalpy change
//! Pairs of species indices and multipliers to calculate enthalpy change
std::vector<std::pair<size_t, double>> m_stoich_coeffs;

double m_deltaH_R; //!< enthalpy change of reaction (in temperature units)
Expand Down
2 changes: 1 addition & 1 deletion include/cantera/kinetics/InterfaceRate.h
Expand Up @@ -244,7 +244,7 @@ class InterfaceRateBase
vector_fp m_mc; //!< Vector holding coverage-specific power-law exponents

private:
//! Pairs of species index and multiplers to calculate enthalpy change
//! Pairs of species index and multipliers to calculate enthalpy change
std::vector<std::pair<size_t, double>> m_stoichCoeffs;

//! Pairs of phase index and net electric charges (same order as m_stoichCoeffs)
Expand Down
2 changes: 1 addition & 1 deletion include/cantera/kinetics/Kinetics.h
Expand Up @@ -514,7 +514,7 @@ class Kinetics
/**
* Return a vector of values of effective concentrations of third-body
* collision partners of any reaction. Entries for reactions not involving
* third-body collision parters are not defined and set to not-a-number.
* third-body collision partners are not defined and set to not-a-number.
*
* @param concm Output vector of effective third-body concentrations.
* Length: nReactions().
Expand Down
2 changes: 1 addition & 1 deletion include/cantera/oneD/Domain1D.h
Expand Up @@ -495,7 +495,7 @@ class Domain1D
/**
* In some cases, for computational efficiency some properties (such as
* transport coefficients) may not be updated during Jacobian evaluations.
* Set this to `true` to force these properties to be udpated even while
* Set this to `true` to force these properties to be updated even while
* calculating Jacobian elements.
*/
void forceFullUpdate(bool update) {
Expand Down
4 changes: 2 additions & 2 deletions include/cantera/oneD/StFlow.h
Expand Up @@ -224,10 +224,10 @@ class StFlow : public Domain1D
*/
void setBoundaryEmissivities(double e_left, double e_right);

//! Return emissivitiy at left boundary
//! Return emissivity at left boundary
double leftEmissivity() const { return m_epsilon_left; }

//! Return emissivitiy at right boundary
//! Return emissivity at right boundary
double rightEmissivity() const { return m_epsilon_right; }

void fixTemperature(size_t j=npos);
Expand Down
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/delegator.pyx
Expand Up @@ -14,7 +14,7 @@ from cython.operator import dereference as deref
#
# Besides the C++ functions implemented in the `Delegator` class, each delegated
# function type requires several additional components in Cython:
# - A delcaration for the overload of `Delegator::setDelegate` in `_cantera.pxd`.
# - A declaration for the overload of `Delegator::setDelegate` in `_cantera.pxd`.
# - A declaration of the `pyOverride` function in `_cantera.pxd`. Although the
# `pyOverride` function is templated and does not need to be modified for each type,
# each version of this function must be separately declared because Cython doesn't
Expand Down
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/thermo.pyx
Expand Up @@ -832,7 +832,7 @@ cdef class ThermoPhase(_SolutionBase):
if Z_fuel == 0.0 and fraction_type == "fuel":
raise ValueError("No fuel in the fuel/oxidizer mixture")

if Z_fuel == 1.0 and fraction_type == "oxidzer":
if Z_fuel == 1.0 and fraction_type == "oxidizer":
raise ValueError("No oxidizer in the fuel/oxidizer mixture")

if basis == "mass": # for mass basis, it is straight forward
Expand Down
4 changes: 2 additions & 2 deletions samples/python/onedim/premixed_counterflow_twin_flame.py
Expand Up @@ -61,7 +61,7 @@ def computeConsumptionSpeed(oppFlame):
def solveOpposedFlame(oppFlame, massFlux=0.12, loglevel=1,
ratio=2, slope=0.3, curve=0.3, prune=0.05):
"""
Execute this function to run the Oppposed Flow Simulation This function
Execute this function to run the Opposed Flow Simulation This function
takes a CounterFlowTwinPremixedFlame object as the first argument
"""

Expand All @@ -73,7 +73,7 @@ def solveOpposedFlame(oppFlame, massFlux=0.12, loglevel=1,

# Compute the strain rate, just before the flame. This is not necessarily
# the maximum We use the max. strain rate just upstream of the pre-heat zone
# as this is the strain rate that computations comprare against, like when
# as this is the strain rate that computations compare against, like when
# plotting Su vs. K
strainRates, strainRatePoint, K = computeStrainRates(oppFlame)

Expand Down
2 changes: 1 addition & 1 deletion samples/python/onedim/stagnation_flame.py
Expand Up @@ -11,7 +11,7 @@
which allows grid points to be removed if they are no longer required to
resolve the solution. This is important here, since the flamefront moves as
the mass flowrate is increased. Without using 'prune', a large number of grid
points would be concentrated upsteam of the flame, where the flamefront had
points would be concentrated upstream of the flame, where the flamefront had
been previously. (To see this, try setting prune to zero.)
Requires: cantera >= 3.0
Expand Down
2 changes: 1 addition & 1 deletion samples/python/reactors/pfr.py
Expand Up @@ -79,7 +79,7 @@
# is no diffusion, the upstream reactors are not affected by any downstream
# reactors, and therefore the problem may be solved by simply marching from
# the first to last reactor, integrating each one to steady state.
# (This approach is anologous to the one presented in 'surf_pfr.py', which
# (This approach is analogous to the one presented in 'surf_pfr.py', which
# additionally includes surface chemistry)


Expand Down
2 changes: 1 addition & 1 deletion site_scons/buildutils.py
Expand Up @@ -304,7 +304,7 @@ class Configuration:
Class enabling selection of options based on a dictionary of `Option` objects
that allows for a differentiation between platform/compiler dependent options.
In addition, the class facilitiates the generation of formatted help text and
In addition, the class facilitates the generation of formatted help text and
reST documentation.
"""

Expand Down
4 changes: 2 additions & 2 deletions test/general/test_serialization.cpp
Expand Up @@ -19,7 +19,7 @@ TEST(YamlWriter, formatDouble)
float delta;

// check least significant digit
// default precision is 15 (see AnyMap.cpp::getPrecicion)
// default precision is 15 (see AnyMap.cpp::getPrecision)
delta = 1.e-15;
count = 0;
for (int i = -9; i < 10; i += 2) {
Expand Down Expand Up @@ -50,7 +50,7 @@ TEST(YamlWriter, formatDoubleExp)
float delta;

// check least significant digit
// default precision is 15 (see AnyMap.cpp::getPrecicion)
// default precision is 15 (see AnyMap.cpp::getPrecision)
delta = 1.e-5;
count = 0;
for (int i = -9; i < 10; i += 2) {
Expand Down
2 changes: 1 addition & 1 deletion test/python/test_reaction.py
Expand Up @@ -1164,7 +1164,7 @@ def test_serialization_type(self):


class TestImplicitThreeBody(TestThreeBody):
# test three-body reactions with explicit collision parther
# test three-body reactions with explicit collision partner

_equation = "H + 2 O2 <=> HO2 + O2"
_rate = {"A": 2.08e+19, "b": -1.24, "Ea": 0.0}
Expand Down

0 comments on commit 9783989

Please sign in to comment.