adjusting libmpdata calls to new API (psi_n -> state)