Révision 695dcff8 modules/calculation.py
b/modules/calculation.py | ||
---|---|---|
24 | 24 |
logger.warning("'COORD_FILE_NAME' not specified on CP2K input. Using\n" |
25 | 25 |
"default name 'coord.xyz'. A new CP2K input file with " |
26 | 26 |
"the 'COORD_FILE_NAME' variable is created. If there\n" |
27 |
"is a name conflict the old file will be backed up") |
|
27 |
"is a name conflict the old file will be backed up.")
|
|
28 | 28 |
force_eval.SUBSYS.TOPOLOGY.Coord_file_name = 'coord.xyz' |
29 | 29 |
print(inp_file.split('/')[-1]) |
30 | 30 |
check_bak(inp_file.split('/')[-1]) |
... | ... | |
81 | 81 |
subm_jobs.append(qsub(sub_script, name=job_name)) |
82 | 82 |
os.chdir(init_dir) |
83 | 83 |
|
84 |
logger.info('All jobs have been submitted, waiting them to finish') |
|
84 |
logger.info('All jobs have been submitted, waiting them to finish.')
|
|
85 | 85 |
while not all([stat == 'f' for stat in get_jobs_status_sge(subm_jobs)]): |
86 | 86 |
sleep(30) |
87 |
logger.info('All jobs have finished') |
|
87 |
logger.info('All jobs have finished.')
|
|
88 | 88 |
|
89 | 89 |
|
90 | 90 |
def sub_lsf(run_type, sub_script, max_qw, name): |
... | ... | |
109 | 109 |
|
110 | 110 |
if inp_vars['batch_q_sys']: |
111 | 111 |
logger.info(f"Running {run_type} calculation with {inp_vars['code']} on" |
112 |
f" {inp_vars['batch_q_sys']}") |
|
112 |
f" {inp_vars['batch_q_sys']}.")
|
|
113 | 113 |
else: |
114 |
logger.info(f"Doing a dry run of {run_type}") |
|
114 |
logger.info(f"Doing a dry run of {run_type}.")
|
|
115 | 115 |
check_bak(run_type) |
116 | 116 |
os.mkdir(run_type) |
117 | 117 |
if inp_vars['code'] == 'cp2k': |
Formats disponibles : Unified diff