unused variable ifdefed
sw is a 6x6 complex matrix now as well