Dear Mateusz,

Thanks for reporting that. I increased the checks, now the error message should be more consistent.


Best regards,
Michele

--
ETH Zurich
Michele Dolfi
Institute for Theoretical Physics
HIT G 32.4
Wolfgang-Pauli-Str. 27
8093 Zurich
Switzerland


+41 44 633 78 56 phone
+41 44 633 11 15 fax 





On Aug 22, 2015, at 6:07 PM, Mateusz Łącki <mateusz.lacki@gmail.com> wrote:

Dear All,
I wish to report a suboptimal behaviour in the mps_optim:

setting the initial state with wrong L (L=10 and there are 12 spins defined)

L=10;

init_state="local_quantumnumbers"
initial_local_S="0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5"
initial_local_Sz="0.5,-0.5,0.5,0.5,-0.5,0.5,-0.5,-0.5,0.5,-0.5,0.5,0.5”

produces a nasty segfault with no warning (in almost all other cases of setting something wrong a message explaining a nature of the problem is printed).
This is not a bug, but a nuissance.


Best,
Mateusz Łącki