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

Execution bug report #26

Open
Trwang9201 opened this issue Jun 10, 2020 · 1 comment
Open

Execution bug report #26

Trwang9201 opened this issue Jun 10, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Trwang9201
Copy link

Hi, guys

Here are some issues reported which I try to run the example (VASP version).

Input files: all the example file you supplied except
[solver]
type = 'vasp'
path = '/usr/bin/vasp_std'
base_input_dir = '/home/wangtairan/download/abICS-master/examples/standard/spinel/baseinput'
perturb = 0.1

Output:
Traceback (most recent call last):
File "_mt19937.pyx", line 178, in numpy.random._mt19937.MT19937._legacy_seeding
TypeError: 'float' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/abics", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/abics/scripts/main.py", line 139, in main
main_impl(tomlfile)
File "/usr/local/lib/python3.6/dist-packages/abics/scripts/main.py", line 50, in main_impl
comm = RX_MPI_init(rxparams)
File "/usr/local/lib/python3.6/dist-packages/abics/mc_mpi.py", line 143, in RX_MPI_init
rand.seed(rand_seeds[worldrank])
File "mtrand.pyx", line 244, in numpy.random.mtrand.RandomState.seed
File "_mt19937.pyx", line 166, in numpy.random._mt19937.MT19937._legacy_seeding
File "_mt19937.pyx", line 186, in numpy.random._mt19937.MT19937._legacy_seeding
TypeError: Cannot cast array from dtype('float64') to dtype('int64') according to the rule 'safe'

Thank you guys!

@skasamatsu
Copy link
Contributor

skasamatsu commented Jun 11, 2020

Hi! Thank you for the report!
We had fixed this in the development branches but hadn't merged it.
We merged a fix into the release-v1.0 branch so please have a try.
https://github.com/issp-center-dev/abICS/tree/release-v1.0

A workaround on the old version (master branch) is to specify a random number seed. For example:
[replica]
seed=12345

Also, the VASP version won't run correctly without a patch to VASP (we're asking VASP folks if we can distribute it). In the meanwhile, maybe you can try out the QE version?

@skasamatsu skasamatsu added the bug Something isn't working label Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants