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

DPGEN with cp2k2022.1[BUG] #1120

Closed
cxliangUT opened this issue Jan 17, 2023 · 4 comments · Fixed by deepmodeling/dpdata#533
Closed

DPGEN with cp2k2022.1[BUG] #1120

cxliangUT opened this issue Jan 17, 2023 · 4 comments · Fixed by deepmodeling/dpdata#533
Labels
bug Something isn't working

Comments

@cxliangUT
Copy link

cxliangUT commented Jan 17, 2023

Summary

Errors using DPGEN (DPMD+lammps+cp2k) in iteration step 08

DPGEN Version and Platform

DPGEN-0.11.0

Job submission and computing cluster configuration

DPGEN framework in local computer (everything is local, DPMD, lammps as well as CP2K)

Expected Behavior

The DPGEN normally runs

Actual Behavior

the program stops at iteration 00 step 08. The error message shows as:

INFO:dpgen:-------------------------iter.000000 task 08--------------------------
Traceback (most recent call last):
File "/workspace/cxliang/conda/envs/deepmd/bin/dpgen", line 8, in
sys.exit(main())
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpgen/main.py", line 185, in main
args.func(args)
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpgen/generator/run.py", line 3926, in gen_run
run_iter (args.PARAM, args.MACHINE)
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpgen/generator/run.py", line 3812, in run_iter
post_fp (ii, jdata)
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpgen/generator/run.py", line 3691, in post_fp
post_fp_cp2k(iter_index, jdata)
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpgen/generator/run.py", line 3568, in post_fp_cp2k
_sys = dpdata.LabeledSystem(oo, fmt = 'cp2k/output')
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpdata/system.py", line 265, in init
self.from_fmt(file_name, fmt, type_map=type_map, begin= begin, step=step, convergence_check=convergence_check, **kwargs)
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpdata/system.py", line 291, in from_fmt
return self.from_fmt_obj(load_format(fmt), file_name, **kwargs)
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpdata/system.py", line 1080, in from_fmt_obj
self.check_data()
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpdata/system.py", line 281, in check_data
dd.check(self)
File "/workspace/cxliang/conda/envs/deepmd/lib/python3.10/site-packages/dpdata/system.py", line 121, in check
raise DataError("Shape of %s is %s, but expected %s" % (self.name,
dpdata.system.DataError: Shape of forces is (1, 5, 3), but expected (1, 4, 3)

Steps to Reproduce

just try DPGEN (DPMD-kit2.1.5+lammps+cp2k2022.1)

Further Information, Files, and Links

image
dpgen_example_cp2k.zip

Interesting Findings
the cases we are working on is nothing but the methane cases in example.
we find that the problem comes from the dpdata in dpgen, when the dpdata reads the output file from cp2k, it will miss the coordinate of the first hydrogen atom. Then, the frames, number of atoms ,etc are obtained from the coordinates file, which gives the wrong information. We find that dpdata is accurate to read in the forces.

@cxliangUT cxliangUT added the bug Something isn't working label Jan 17, 2023
@cxliangUT cxliangUT changed the title [BUG] _Replace With Suitable Title_ DPGEN with cp2k2022.1[BUG] _Replace With Suitable Title_ Jan 17, 2023
@cxliangUT cxliangUT changed the title DPGEN with cp2k2022.1[BUG] _Replace With Suitable Title_ DPGEN with cp2k2022.1[BUG] Jan 17, 2023
@njzjz
Copy link
Member

njzjz commented Jan 18, 2023

@robinzyb How about submitting a PR to migrate to the format in your cp2kdata package?

@robinzyb
Copy link
Collaborator

@robinzyb How about submitting a PR to migrate to the format in your cp2kdata package?

any suggestion? Specifically, I used a different format name, "cp2kdata/xx," instead of the original "cp2k/aimd." A simple solution is to replace the format name.

@njzjz
Copy link
Member

njzjz commented Jan 19, 2023

A simple solution is to replace the format name.

This looks good to me.

@njzjz
Copy link
Member

njzjz commented Sep 6, 2023

Fixed by deepmodeling/dpdata#533.

@njzjz njzjz closed this as completed Sep 6, 2023
@njzjz njzjz linked a pull request Sep 6, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants