combined Hamiltonian exchange code; 1d nocv temp