@@ -65,14 +65,14 @@ namespace cadet
6565
6666 unsigned int LumpedRateModelWithoutPoresDG::numDofs () const CADET_NOEXCEPT
6767 {
68- // Column bulk DOFs: nCol * nNodes * nComp mobile phase and nCol * nNodes * (sum boundStates) solid phase
68+ // Column bulk DOFs: nElem * nNodes * nComp mobile phase and nElem * nNodes * (sum boundStates) solid phase
6969 // Inlet DOFs: nComp
7070 return _disc.nPoints * (_disc.nComp + _disc.strideBound ) + _disc.nComp ;
7171 }
7272
7373 unsigned int LumpedRateModelWithoutPoresDG::numPureDofs () const CADET_NOEXCEPT
7474 {
75- // Column bulk DOFs: nCol * nNodes * nComp mobile phase and nCol * nNodes * (sum boundStates) solid phase
75+ // Column bulk DOFs: nElem * nNodes * nComp mobile phase and nElem * nNodes * (sum boundStates) solid phase
7676 return _disc.nPoints * (_disc.nComp + _disc.strideBound );
7777 }
7878
@@ -130,16 +130,16 @@ namespace cadet
130130 _disc.nNodes = _disc.polyDeg + 1 ;
131131
132132 if (paramProvider.exists (" NELEM" ))
133- _disc.nCol = paramProvider.getInt (" NELEM" );
133+ _disc.nElem = paramProvider.getInt (" NELEM" );
134134 else if (paramProvider.exists (" NCOL" ))
135- _disc.nCol = std::max (1u , paramProvider.getInt (" NCOL" ) / _disc.nNodes ); // number of elements is rounded down
135+ _disc.nElem = std::max (1u , paramProvider.getInt (" NCOL" ) / _disc.nNodes ); // number of elements is rounded down
136136 else
137137 throw InvalidParameterException (" Specify field NELEM (or NCOL)" );
138138
139- if (_disc.nCol < 1 )
139+ if (_disc.nElem < 1 )
140140 throw InvalidParameterException (" Number of column elements must be at least 1!" );
141141
142- _disc.nPoints = _disc.nNodes * _disc.nCol ;
142+ _disc.nPoints = _disc.nNodes * _disc.nElem ;
143143
144144 int polynomial_integration_mode = 0 ;
145145 if (paramProvider.exists (" EXACT_INTEGRATION" ))
@@ -165,16 +165,16 @@ namespace cadet
165165#endif
166166
167167 // Allocate space for initial conditions
168- _initC.resize (_disc.nCol * _disc.nNodes * _disc.nComp );
169- _initQ.resize (_disc.nCol * _disc.nNodes * _disc.strideBound );
168+ _initC.resize (_disc.nElem * _disc.nNodes * _disc.nComp );
169+ _initQ.resize (_disc.nElem * _disc.nNodes * _disc.strideBound );
170170
171171 // Create nonlinear solver for consistent initialization
172172 configureNonlinearSolver (paramProvider);
173173
174174 paramProvider.popScope ();
175175
176176 const unsigned int strideNode = _disc.nComp + _disc.strideBound ;
177- const bool transportSuccess = _convDispOp.configureModelDiscretization (paramProvider, helper, _disc.nComp , polynomial_integration_mode, _disc.nCol , _disc.polyDeg , strideNode);
177+ const bool transportSuccess = _convDispOp.configureModelDiscretization (paramProvider, helper, _disc.nComp , polynomial_integration_mode, _disc.nElem , _disc.polyDeg , strideNode);
178178
179179 _disc.curSection = -1 ;
180180
@@ -761,7 +761,7 @@ namespace cadet
761761
762762 // Map inlet DOFs to the column inlet (first bulk cells)
763763 // Inlet at z = 0 for forward flow, at z = L for backward flow.
764- unsigned int offInlet = _convDispOp.forwardFlow () ? 0 : (_disc.nCol - 1u ) * idxr.strideColCell ();
764+ unsigned int offInlet = _convDispOp.forwardFlow () ? 0 : (_disc.nElem - 1u ) * idxr.strideColCell ();
765765
766766 for (unsigned int comp = 0 ; comp < _disc.nComp ; comp++) {
767767 for (unsigned int node = 0 ; node < (_disc.exactInt ? _disc.nNodes : 1 ); node++) {
@@ -888,7 +888,7 @@ namespace cadet
888888
889889 // Handle inlet DOFs:
890890 // Inlet at z = 0 for forward flow, at z = L for backward flow.
891- unsigned int offInlet = _convDispOp.forwardFlow () ? 0 : (_disc.nCol - 1u ) * idxr.strideColCell ();
891+ unsigned int offInlet = _convDispOp.forwardFlow () ? 0 : (_disc.nElem - 1u ) * idxr.strideColCell ();
892892
893893 for (unsigned int comp = 0 ; comp < _disc.nComp ; comp++) {
894894 for (unsigned int node = 0 ; node < (_disc.exactInt ? _disc.nNodes : 1 ); node++) {
0 commit comments