Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

继续上一问题2 #23

Open
Chris317 opened this issue Oct 21, 2022 · 2 comments
Open

继续上一问题2 #23

Chris317 opened this issue Oct 21, 2022 · 2 comments

Comments

@Chris317
Copy link

老师,您好!
我又把最新版安装了一遍,现在发现出不了数据的原因是python版本的问题,python3.8可以出一部分数据然后卡住,python3.9是完全卡住,老师请您帮忙看看是什么原因?

(base) [hpc192201004@ln03 samples]$ ls
CrI3With2NNCoupling sim_XYmodel_under_Linux.py sim_XYmodel_under_Windows.py Square_XY_isotropic
(base) [hpc192201004@ln03 samples]$ python sim_XYmodel_under_Linux.py
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
1.029 0.000 0.608 0.608 0.608 0.001 0.001 0.001 0.547 0.547 1.000 0.299703 -1.299 1.693 0.925 1.000 0.418 -1.420 2.037
0.986 0.000 0.653 0.653 0.653 -0.004 -0.004 -0.004 0.588 0.588 1.000 0.345648 -1.354 1.838 0.954 1.000 0.470 -1.495 2.250
0.943 0.000 0.687 0.687 0.687 0.003 0.003 0.003 0.619 0.619 1.000 0.383669 -1.401 1.967 0.970 1.000 0.510 -1.551 2.416
0.900 0.000 0.714 0.714 0.714 0.003 0.003 0.003 0.643 0.643 1.000 0.413906 -1.443 2.087 0.979 1.000 0.540 -1.598 2.562
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
1.200 0.000 0.361 0.361 0.361 0.002 0.002 0.002 0.325 0.325 1.000 0.105591 -1.058 1.127 0.687 1.000 0.163 -1.030 1.093

(base) [hpc192201004@ln03 samples]$ ls
CrI3With2NNCoupling sim_XYmodel_under_Linux.py sim_XYmodel_under_Windows.py Square_XY_isotropic
(base) [hpc192201004@ln03 samples]$ python sim_XYmodel_under_Linux.py
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
1.029 0.000 0.608 0.608 0.608 0.001 0.001 0.001 0.547 0.547 1.000 0.299703 -1.299 1.693 0.925 1.000 0.418 -1.420 2.037
0.986 0.000 0.653 0.653 0.653 -0.004 -0.004 -0.004 0.588 0.588 1.000 0.345648 -1.354 1.838 0.954 1.000 0.470 -1.495 2.250
0.943 0.000 0.687 0.687 0.687 0.003 0.003 0.003 0.619 0.619 1.000 0.383669 -1.401 1.967 0.970 1.000 0.510 -1.551 2.416
0.900 0.000 0.714 0.714 0.714 0.003 0.003 0.003 0.643 0.643 1.000 0.413906 -1.443 2.087 0.979 1.000 0.540 -1.598 2.562
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
loading dynamic library in /public/home/hpc192201004/.local/lib/python3.8/site-packages/mcsolver/lib/_xylib.cpython-38-x86_64-linux-gnu.so
1.200 0.000 0.361 0.361 0.361 0.002 0.002 0.002 0.325 0.325 1.000 0.105591 -1.058 1.127 0.687 1.000 0.163 -1.030 1.093

@Chris317
Copy link
Author

老师我的问题解决了
是python版本的问题
python3.9卡在loading dynamic library 这里出不了数据
python3.8第一次加载四个loading dynamic library后可以出来部分数据,然后第二次加载四个loading dynamic library后出来一行数据就卡住了
python3.7正常运行至出来完整的数据后停止,并产生了result.txt文件,文件中的数据完整

(env2) [chris@node05 samples]$ python sim_XYmodel_under_Linux.py
loading dynamic library in /home/chris/anaconda3/envs/env2/lib/python3.7/site-packages/mcsolver/lib/_xylib.cpython-37m-x86_64-linux-gnu.so
loading dynamic library in /home/chris/anaconda3/envs/env2/lib/python3.7/site-packages/mcsolver/lib/_xylib.cpython-37m-x86_64-linux-gnu.so
loading dynamic library in /home/chris/anaconda3/envs/env2/lib/python3.7/site-packages/mcsolver/lib/_xylib.cpython-37m-x86_64-linux-gnu.so
loading dynamic library in /home/chris/anaconda3/envs/env2/lib/python3.7/site-packages/mcsolver/lib/_xylib.cpython-37m-x86_64-linux-gnu.so
1.029 0.000 0.608 0.608 0.608 0.001 0.001 0.001 0.547 0.547 1.000 0.299703 -1.299 1.693 0.925 1.000 0.418 -1.420 2.037
0.986 0.000 0.653 0.653 0.653 -0.004 -0.004 -0.004 0.588 0.588 1.000 0.345648 -1.354 1.838 0.954 1.000 0.470 -1.495 2.250
0.943 0.000 0.687 0.687 0.687 0.003 0.003 0.003 0.619 0.619 1.000 0.383669 -1.401 1.967 0.970 1.000 0.510 -1.551 2.416
0.900 0.000 0.714 0.714 0.714 0.003 0.003 0.003 0.643 0.643 1.000 0.413906 -1.443 2.087 0.979 1.000 0.540 -1.598 2.562
loading dynamic library in /home/chris/anaconda3/envs/env2/lib/python3.7/site-packages/mcsolver/lib/_xylib.cpython-37m-x86_64-linux-gnu.so
loading dynamic library in /home/chris/anaconda3/envs/env2/lib/python3.7/site-packages/mcsolver/lib/_xylib.cpython-37m-x86_64-linux-gnu.so
loading dynamic library in /home/chris/anaconda3/envs/env2/lib/python3.7/site-packages/mcsolver/lib/_xylib.cpython-37m-x86_64-linux-gnu.so
loading dynamic library in /home/chris/anaconda3/envs/env2/lib/python3.7/site-packages/mcsolver/lib/_xylib.cpython-37m-x86_64-linux-gnu.so
1.200 0.000 0.361 0.361 0.361 0.002 0.002 0.002 0.325 0.325 1.000 0.105591 -1.058 1.127 0.687 1.000 0.163 -1.030 1.093
1.157 0.000 0.418 0.418 0.418 0.000 0.000 0.000 0.376 0.376 1.000 0.141691 -1.115 1.251 0.746 1.000 0.213 -1.123 1.295
1.114 0.000 0.486 0.486 0.486 -0.000 -0.000 -0.000 0.438 0.438 1.000 0.191526 -1.177 1.393 0.818 1.000 0.282 -1.228 1.540
1.071 0.000 0.552 0.552 0.552 0.000 0.000 0.000 0.497 0.497 1.000 0.247108 -1.241 1.547 0.881 1.000 0.354 -1.333 1.802
time elapsed 19.815 s
(env2) [chris@node05 samples]$ ls
CrI3With2NNCoupling out result.txt sim_XYmodel_under_Linux.py sim_XYmodel_under_Windows.py spinDotSpin.txt Square_XY_isotropic
(env2) [chris@node05 samples]$ cat result.txt
#Temp # # #Susc #energy #capacity #Binder cumulante #auto-corr.
1.029 0.547451 0.547451 0.680844 -1.299098 0.005191 0.925373 0.007731
0.986 0.587918 0.587918 0.663835 -1.353983 0.004546 0.954368 0.004838
0.943 0.619410 0.619410 0.653684 -1.401384 0.004016 0.970397 0.003129
0.900 0.643355 0.643355 0.651215 -1.443466 0.003683 0.978998 0.002265
1.200 0.324948 0.324948 0.745341 -1.057892 0.005199 0.686581 0.016147
1.157 0.376418 0.376418 0.741749 -1.115296 0.005550 0.746337 0.016598
1.114 0.437637 0.437637 0.725554 -1.177300 0.005765 0.818447 0.014825
1.071 0.497099 0.497099 0.702699 -1.241151 0.005506 0.880855 0.011373
(env2) [chris@node05 samples]$

@Chris317
Copy link
Author

python对应的具体版本分别为3.9.12,3.8.5,3.7.13。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant