Commit e2c47ee4 authored by Laurent Belcour's avatar Laurent Belcour

Correction of a bug in the param::convert function.

Indentation correction in vertical segment class.
parent d5517d6d
......@@ -166,7 +166,7 @@ class params
}
// If the input parametrization is the CARTESIAN param, then
// there is no need to transform the input data.
if(intype == params::CARTESIAN)
else if(intype == params::CARTESIAN)
{
from_cartesian(invec, outtype, outvec);
}
......
......@@ -165,7 +165,7 @@ void vertical_segment::load(const std::string& filename, const arguments& args)
}
else
{
v[dimX() + dimY()+i] = v[dimX() + i] + min_dt ;
v[dimX() + dimY()+i] = v[dimX() + i] + min_dt ;
v[dimX() + 2*dimY()+i] = v[dimX() + i] + max_dt ;
}
}
......@@ -252,7 +252,7 @@ vec vertical_segment::get(int i) const
//! is not already present.
void vertical_segment::set(vec x)
{
assert(x.size() == _nX + _nY);
assert(x.size() == dimX() + dimY());
_data.push_back(x);
}
......
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