@@ -150,22 +150,22 @@ void CompareState::processCompareState()
150150 if (cmd.compare (" X=" ) == 0 )
151151 {
152152 last_X = *it;
153- currentError = mmodel ->compareVec (sofa::core::vec_id::read_access::position, str);
153+ currentError = this -> l_state ->compareVec (sofa::core::vec_id::read_access::position, str);
154154
155155
156156 totalError_X +=currentError;
157157
158- const double dsize = (double )this ->mmodel ->getSize ();
158+ const double dsize = (double )this ->l_state ->getSize ();
159159 if (dsize != 0.0 )
160160 dofError_X +=currentError/dsize;
161161 }
162162 else if (cmd.compare (" V=" ) == 0 )
163163 {
164164 last_V = *it;
165- currentError = mmodel ->compareVec (sofa::core::vec_id::read_access::velocity, str);
165+ currentError = this -> l_state ->compareVec (sofa::core::vec_id::read_access::velocity, str);
166166 totalError_V +=currentError;
167167
168- const double dsize = (double )this ->mmodel ->getSize ();
168+ const double dsize = (double )this ->l_state ->getSize ();
169169 if (dsize != 0.0 )
170170 dofError_V += currentError/dsize;
171171 }
@@ -206,18 +206,18 @@ void CompareState::draw(const core::visual::VisualParams* vparams)
206206 }
207207 }
208208
209- if (mmodel && !last_X.empty ())
209+ if (this -> l_state && !last_X.empty ())
210210 {
211211 core::VecCoordId refX (core::VecCoordId::V_FIRST_DYNAMIC_INDEX );
212- mmodel ->vAvail (vparams, refX);
213- mmodel ->vAlloc (vparams, refX);
212+ this -> l_state ->vAvail (vparams, refX);
213+ this -> l_state ->vAlloc (vparams, refX);
214214 std::istringstream str (last_X);
215215 std::string cmd;
216216 str >> cmd;
217- mmodel ->readVec (refX, str);
217+ this -> l_state ->readVec (refX, str);
218218
219- const core::objectmodel::BaseData* dataX = mmodel ->baseRead (core::vec_id::write_access::position);
220- const core::objectmodel::BaseData* dataRefX = mmodel ->baseRead (refX);
219+ const core::objectmodel::BaseData* dataX = this -> l_state ->baseRead (core::vec_id::write_access::position);
220+ const core::objectmodel::BaseData* dataRefX = this -> l_state ->baseRead (refX);
221221 if (dataX && dataRefX)
222222 {
223223 const sofa::defaulttype::AbstractTypeInfo* infoX = dataX->getValueTypeInfo ();
@@ -251,7 +251,7 @@ void CompareState::draw(const core::visual::VisualParams* vparams)
251251 }
252252 }
253253
254- mmodel ->vFree (vparams, refX);
254+ this -> l_state ->vFree (vparams, refX);
255255 }
256256}
257257
0 commit comments