Commit f8d6d9d1 authored by Laurent Belcour's avatar Laurent Belcour

Small correction on the data_params class. The get function was not...

Small correction on the data_params class. The get function was not transfering the y component of the vector.
parent 58f9c24e
......@@ -64,8 +64,7 @@ public:
//! has a parametrization, and a new parametrization.
data_params(const data* d, params::type param) : _d(d), _param(param)
{
_nX = d->dimX(); //! \todo the parametrization can change the size
//! of the input domain.
_nX = params::dimension(param);
_nY = d->dimY();
}
......@@ -86,8 +85,10 @@ public:
virtual vec get(int i) const
{
vec res(_nX + _nY);
vec in = _d->get(i);
params::convert(&_d->get(i)[0], _d->parametrization(), _param, &res[0]);
params::convert(&in[0], _d->parametrization(), _param, &res[0]);
memcpy(&res[_nX], &in[_d->dimX()], _nY*sizeof(double));
return res;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment