#39 Multicomponent Array update operators not working

closed-fixed
arrays (15)
5
2012-04-17
2012-04-17
Patrik Jonsson
No

The Array update operators were not defined the same way as the assignment operator, so the you couldn't use them on multicomponent expressions. The following would fail:

typedef TinyVector<double,3> dVec;
Array<dVec,1> Fshort;
Array<dVec,1> FtmpShort(Fshort.size());
double beta = 1.0;
Fshort -= (1.0/beta)*FtmpShort;

Thanks to Maurice de Koning for reporting this.

Discussion

  • Patrik Jonsson
    Patrik Jonsson
    2012-04-17

    • status: open --> closed-fixed
     
  • Patrik Jonsson
    Patrik Jonsson
    2012-04-17

    Fixed in 2663e207d21f.