Hello Weihao,
Thank you for reporting this bug.
You probably have done nothing wrong.
It happens that depending on which operational system you are running,
the code might need some tiny adjusts. I have written a test code that will exit at some point
(it will not give you the final cellulose crystal) but will write some log files.
Could you please run the code I am sending attached on your computer, for instance (leave file input.inp as it is)
./cellulose-builder 3 4 5
By inspecting those files I could figure out what's the problem about.
I will be looking forward for your answer. Thank you very much,
Thiago.
--
Munir S. Skaf
Institute of Chemistry - Cx. P. 6154
State University of Campinas - UNICAMP
Campinas - SP 13084-862, Brazil
Tel. 55 19 3521 3093 / Fax: 3521 3023