@@ -36,10 +36,17 @@ def example_dft_md_reftraj(cp2k_code):
36
36
)
37
37
38
38
# Trajectory.
39
- steps = 5
40
- positions = np .array ([[[2 ,2 ,2.73 + 0.05 * random .random ()],[2 ,2 ,2 ]] for i in range (steps )])
41
- cells = np .array ([[[4 ,0 ,0 ],[0 ,4 ,0 ],[0 ,0 ,4.75 + 0.05 * random .random ()]]for i in range (steps )])
42
- symbols = ['H' ,'H' ]
39
+ steps = 5
40
+ positions = np .array (
41
+ [[[2 , 2 , 2.73 + 0.05 * random .random ()], [2 , 2 , 2 ]] for i in range (steps )]
42
+ )
43
+ cells = np .array (
44
+ [
45
+ [[4 , 0 , 0 ], [0 , 4 , 0 ], [0 , 0 , 4.75 + 0.05 * random .random ()]]
46
+ for i in range (steps )
47
+ ]
48
+ )
49
+ symbols = ["H" , "H" ]
43
50
trajectory = TrajectoryData ()
44
51
trajectory .set_trajectory (symbols , positions , cells = cells )
45
52
@@ -66,14 +73,14 @@ def example_dft_md_reftraj(cp2k_code):
66
73
"MD" : {
67
74
"ENSEMBLE" : "REFTRAJ" ,
68
75
"STEPS" : steps ,
69
- "REFTRAJ" :{
70
- ' FIRST_SNAPSHOT' : 1 ,
71
- ' LAST_SNAPSHOT' : steps ,
72
- ' EVAL_FORCES' : ' .TRUE.' ,
73
- ' TRAJ_FILE_NAME' : ' trajectory.xyz' ,
74
- ' CELL_FILE_NAME' : ' reftraj.cell' ,
75
- ' VARIABLE_VOLUME' : ' .TRUE.'
76
- },
76
+ "REFTRAJ" : {
77
+ " FIRST_SNAPSHOT" : 1 ,
78
+ " LAST_SNAPSHOT" : steps ,
79
+ " EVAL_FORCES" : " .TRUE." ,
80
+ " TRAJ_FILE_NAME" : " trajectory.xyz" ,
81
+ " CELL_FILE_NAME" : " reftraj.cell" ,
82
+ " VARIABLE_VOLUME" : " .TRUE." ,
83
+ },
77
84
},
78
85
"PRINT" : {
79
86
"RESTART" : {
0 commit comments