Révision 19567be2
b/modules/calculation.py | ||
---|---|---|
118 | 118 |
"the 'COORD_FILE_NAME' variable is created.") |
119 | 119 |
force_eval.SUBSYS.TOPOLOGY.Coord_file_name = 'coord.xyz' |
120 | 120 |
check_bak(inp_file.split('/')[-1]) |
121 |
cp2k.write_input_file(inp_file.split('/')[-1]) |
|
121 |
new_inp_file = inp_file.split('/')[-1] |
|
122 |
cp2k.write_input_file(new_inp_file) |
|
122 | 123 |
|
123 | 124 |
coord_file = force_eval.SUBSYS.TOPOLOGY.Coord_file_name |
124 | 125 |
|
... | ... | |
126 | 127 |
for i, conf in enumerate(atms_list): |
127 | 128 |
subdir = f'{run_type}/conf_{i}/' |
128 | 129 |
os.mkdir(subdir) |
129 |
copy(inp_file, subdir) |
|
130 |
copy(new_inp_file, subdir)
|
|
130 | 131 |
conf.write(subdir + coord_file) |
131 | 132 |
|
132 | 133 |
|
Formats disponibles : Unified diff