issp-center-dev / TeNeS

Massively parallel tensor network solver
http://www.pasums.issp.u-tokyo.ac.jp/tenes/en
GNU General Public License v3.0
46 stars 11 forks source link

Output.dat is not created #67

Open HamidArianZad opened 1 year ago

HamidArianZad commented 1 year ago

Dear TeNeS team,

In my recent TN simulations using TeNeS, I encountered an issue with saving the calculation results in the 'output.dat' file. I'm currently using the command $ python tutorial_magnetization.py > output.dat to save the output. However, despite the file being created, the results are not written into it. Consequently, the calculation process halts, and when I check the 'output.dat' file, I only see the following lines.

Number of Processes: 1
Number of Threads / Process: 16
Tensor type: real
Bond dimensions:
   D  (Bulk): 2
   chi (CTM): 10
Start simple update

after line "Start simple update" there is nothing. How can I write the results into the output.dat during the calculation time?

yomichi commented 1 year ago
HamidArianZad commented 1 year ago

In fact, I previously used TeNeS in my previous notebook, and everything worked fine. Please note that the previous version installed on my previous notebook was ver. 1.2.0: 2021-12-13.

I have now installed TeNeS on my new notebook and attempted to save the results of my calculations into the 'output.dat' file as usual. However, I encountered some difficulties.

The version of TeNeS installed on my notebook is 1.3.1: 2022-10-21. The file 'tutorial_magnetization.py' can be found in the folder '/TeNeS/sample/05_magnetization', which was automatically created during the TeNeS installation process.

The input file, 'input_0_1500.toml', was generated by running the 'tutorial_magnetization.py' file.

I have not made any changes to the parameters in the files located in the '/TeNeS/sample/05_magnetization' folder. I simply installed TeNeS on my new notebook and executed the command '$ python tutorial_magnetization.py > output.dat'.

yomichi commented 1 year ago

In your new notebook, does TeNeS v1.2.0 work (sample/05_magnetization)?

HamidArianZad commented 1 year ago

I have not attempted it.

Should I uninstall the current version, 1.3.1: 2022-10-21, and install the older version, v1.2.0? If necessary, I would prefer to continue working with the newer version, 1.3.1: 2022-10-21, as I believe it performs better than the older version. In the newer version (ver: 1.3.1), if I execute the command $ python tutorial_magnetization.py without appending > output.dat, the program runs successfully until the completion of the calculations. I can then access the results of the magnetization, which are saved in the file magnetization.dat. Other quantities are also saved after the calculations are finished.

I think the results for the local magnetization in Heisenberg spin models are more precise with the newer version v1.3.1 compared to older version v1.2.0.

yomichi commented 1 year ago

Yes, the newer version is recommended, of course (FYI, we released v1.3.2 yesterday).

In the newer version (ver: 1.3.1), if I execute the command $ python tutorial_magnetization.py without appending > output.dat, the program runs successfully until the completion of the calculations. I can then access the results of the magnetization, which are saved in the file magnetization.dat. Other quantities are also saved after the calculations are finished.

Is the problem solved?

HamidArianZad commented 1 year ago

Appending > output.dat in version ver: 1.3.1 did not resolve the issue for me.

I am pleased to hear about the release of the latest version, v1.3.2. I would like to upgrade to this version. Could you please provide me with the command to upgrade from v1.3.1 to v1.3.2? Alternatively, do I need to uninstall the older version, v1.3.1, and then install the new version, v1.3.2?