@@ -108,47 +108,27 @@ class WallBase
108108 // ! Build the Jacobian terms specific to the flow device for the given connected
109109 // ! reactor.
110110 // ! @param r a pointer to the calling reactor
111- // ! @param jacVector a vector of triplets to be added to the jacobian for the
112- // ! reactor
111+ // ! @param jacVector a vector of triplets to be added to the reactor Jacobian
113112 // ! @warning This function is an experimental part of the %Cantera API and may be
114- // ! changed
115- // ! or removed without notice.
116- // ! @since New in %Cantera 3.0.
113+ // ! changed or removed without notice.
114+ // ! @since New in %Cantera 3.1.
117115 // !
118- virtual void buildReactorJacobian (ReactorBase* r, vector<Eigen::Triplet<double >>& jacVector) {
116+ virtual void buildReactorJacobian (ReactorBase* r,
117+ vector<Eigen::Triplet<double >>& jacVector) {
119118 throw NotImplementedError (" WallBase::buildReactorJacobian" );
120119 }
121120
122- // ! Build the Jacobian terms specific to the flow device for the network. These
123- // ! terms
124- // ! will be adjusted to the networks indexing system outside of the reactor.
125- // ! @param jacVector a vector of triplets to be added to the jacobian for the
126- // ! reactor
121+ // ! Build the Jacobian cross-reactor terms specific to the flow device for the
122+ // ! network.
123+ // ! @param jacVector a vector of triplets to be added to the network Jacobian
127124 // ! @warning This function is an experimental part of the %Cantera API and may be
128- // ! changed
129- // ! or removed without notice.
130- // ! @since New in %Cantera 3.0.
125+ // ! changed or removed without notice.
126+ // ! @since New in %Cantera 3.1.
131127 // !
132128 virtual void buildNetworkJacobian (vector<Eigen::Triplet<double >>& jacVector) {
133129 throw NotImplementedError (" WallBase::buildNetworkJacobian" );
134130 }
135131
136- // ! Specify the jacobian terms have been calculated and should not be recalculated.
137- // ! @warning This function is an experimental part of the %Cantera API and may be
138- // ! changed
139- // ! or removed without notice.
140- // ! @since New in %Cantera 3.0.
141- // !
142- void jacobianCalculated () { m_jac_calculated = true ; };
143-
144- // ! Specify that jacobian terms have not been calculated and should be recalculated.
145- // ! @warning This function is an experimental part of the %Cantera API and may be
146- // ! changed
147- // ! or removed without notice.
148- // ! @since New in %Cantera 3.0.
149- // !
150- void jacobianNotCalculated () { m_jac_calculated = false ; };
151-
152132protected:
153133 string m_name; // !< Wall name.
154134 bool m_defaultNameSet = false ; // !< `true` if default name has been previously set.
@@ -160,10 +140,6 @@ class WallBase
160140 double m_time = 0.0 ;
161141
162142 double m_area = 1.0 ;
163-
164- // ! a variable to switch on and off so calculations are not doubled by the calling
165- // ! reactor or network
166- bool m_jac_calculated = false ;
167143};
168144
169145// ! Represents a wall between between two ReactorBase objects.
@@ -268,9 +244,11 @@ class Wall : public WallBase
268244 return m_k;
269245 }
270246
271- virtual void buildReactorJacobian (ReactorBase* r, vector<Eigen::Triplet<double >>& jacVector) override ;
247+ void buildReactorJacobian (ReactorBase* r,
248+ vector<Eigen::Triplet<double >>& jacVector) override ;
272249
273- virtual void buildNetworkJacobian (vector<Eigen::Triplet<double >>& jacVector) override ;
250+ void buildNetworkJacobian (vector<Eigen::Triplet<double >>& jacVector)
251+ override ;
274252
275253protected:
276254
0 commit comments