diff --git a/Cantera/src/oneD/OneDim.h b/Cantera/src/oneD/OneDim.h index 1f8382208..bd199ec53 100644 --- a/Cantera/src/oneD/OneDim.h +++ b/Cantera/src/oneD/OneDim.h @@ -32,8 +32,8 @@ namespace Cantera { /// Add a domain. void addDomain(Domain1D* d); - /// Return a reference to the Jacobian evaluator. - MultiJac& jacobian(); + //! Return a reference to the Jacobian evaluator. + MultiJac& jacobian(); /// Return a reference to the Newton iterator. MultiNewton& newton(); @@ -173,7 +173,10 @@ namespace Cantera { MultiNewton* m_newt; // Newton iterator doublereal m_rdt; // reciprocal of time step bool m_jac_ok; // if true, Jacobian is current - int m_nd; // number of domains + + //! number of domains + int m_nd; + int m_bw; // Jacobian bandwidth int m_size; // solution vector size diff --git a/Cantera/src/oneD/Sim1D.cpp b/Cantera/src/oneD/Sim1D.cpp index d804a4564..921e0da72 100644 --- a/Cantera/src/oneD/Sim1D.cpp +++ b/Cantera/src/oneD/Sim1D.cpp @@ -22,12 +22,16 @@ namespace Cantera { s += '\n'; writelog(s.c_str()); } - - Sim1D::Sim1D() : OneDim() { + //==================================================================================================================== + Sim1D::Sim1D() : + OneDim() + { //writelog("Sim1D default constructor\n"); } - - Sim1D::Sim1D(vector& domains) : OneDim(domains) { + //==================================================================================================================== + Sim1D::Sim1D(vector& domains) : + OneDim(domains) + { // resize the internal solution vector and the wprk array, // and perform domain-specific initialization of the @@ -49,7 +53,7 @@ namespace Cantera { m_steps.push_back(10); } - + //==================================================================================================================== // added by Karl Meredith void Sim1D::setInitialGuess(string component, vector_fp& locs, vector_fp& vals){ diff --git a/Cantera/src/oneD/Sim1D.h b/Cantera/src/oneD/Sim1D.h index 8b50cc098..e3717e15b 100644 --- a/Cantera/src/oneD/Sim1D.h +++ b/Cantera/src/oneD/Sim1D.h @@ -23,13 +23,14 @@ namespace Cantera { public: - /** - * Default constructor. This constructor is provided to make - * the class default-constructible, but is not meant to be - * used in most applications. Use the next constructor - * instead. - */ - Sim1D(); + + //! Default constructor. + /*! + * This constructor is provided to make + * the class default-constructible, but is not meant to be + * used in most applications. Use the next constructor + */ + Sim1D(); /**