← Back to team overview

yade-dev team mailing list archive

Re: Assertion `SizeAtCompileTime == Dynamic || SizeAtCompileTime == dim' failed.

 

Thanks for your replies,

It turns out that I was initializing Vector3r variable to 1.0 (non vector!).
I wonder how it's possible that it was compiling before mandatory switch to minieigen?

wrong:
  ((Vector3i   ,order,1               ,,"Energy level 'n' of quantum harmonic oscillator"))

correct:
  ((Vector3i   ,order,Vector3i::Zero(),,"Energy level 'n' in xyz-directions of quantum harmonic oscillator"))


At some point I switched from 1D oscillator to 3D oscillator, and I
forgot to change the initialization value :) And it was compiling!

-- 
Janek Kozicki                               http://janek.kozicki.pl/  |


References