|
@@ -266,7 +266,7 @@ struct convert<Lemma::Vector3r> {
|
266
|
266
|
static Node encode(const Lemma::Vector3r& rhs) {
|
267
|
267
|
Node node;
|
268
|
268
|
for (int ic=0; ic<rhs.size(); ++ic) {
|
269
|
|
- node[0].push_back( rhs(ic) );
|
|
269
|
+ node["data"].push_back( rhs(ic) );
|
270
|
270
|
}
|
271
|
271
|
node.SetTag( "Vector3r" );
|
272
|
272
|
return node;
|
|
@@ -277,7 +277,7 @@ struct convert<Lemma::Vector3r> {
|
277
|
277
|
return false;
|
278
|
278
|
}
|
279
|
279
|
int ir=0;
|
280
|
|
- for(YAML::const_iterator it=node[0].begin(); it!=node[0].end(); ++it) {
|
|
280
|
+ for(YAML::const_iterator it=node["data"].begin(); it!=node["data"].end(); ++it) {
|
281
|
281
|
rhs(ir) = it->as<Lemma::Real>();
|
282
|
282
|
++ir;
|
283
|
283
|
}
|