Skip to content

Commit

Permalink
[oneD] use enum for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
BangShiuh authored and ischoegl committed Sep 27, 2022
1 parent f6744ec commit 55ec796
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions include/cantera/oneD/StFlow.h
Expand Up @@ -19,13 +19,16 @@ namespace Cantera
// constants
//------------------------------------------

// Offsets of solution components in the solution array.
const size_t c_offset_U = 0; // axial velocity
const size_t c_offset_V = 1; // strain rate
const size_t c_offset_T = 2; // temperature
const size_t c_offset_L = 3; // (1/r)dP/dr
const size_t c_offset_E = 4; // electric poisson's equation
const size_t c_offset_Y = 5; // mass fractions
//! Offsets of solution components in the 1D solution array.
enum offset
{
c_offset_U //! axial velocity
, c_offset_V //! strain rate
, c_offset_T //! temperature
, c_offset_L //! (1/r)dP/dr
, c_offset_E //! electric poisson's equation
, c_offset_Y //! mass fractions
};

class Transport;

Expand Down

0 comments on commit 55ec796

Please sign in to comment.