Révision 96d422c7 modules/refinement.py

b/modules/refinement.py
60 60
    selected_confs = select_stable_confs(conf_list, inp_vars['energy_cutoff'])
61 61
    logger.info(f"Selected {len(selected_confs)} structures to carry out the"
62 62
                f" refinement")
63
    # run_calc('refinement', inp_vars, selected_confs)
64
    finished_calcs, failed_calcs = check_finished_calcs('refinement',
65
                                                        inp_vars['code'])
66
    conf_list = collect_confs(finished_calcs, inp_vars['code'], 'refinement',
67
                              inp_vars['special_atoms'])
68
    sorted_confs = select_stable_confs(conf_list, np.inf)
63
    run_calc('refinement', inp_vars, selected_confs)
69 64
    logger.info("Finished the procedures for the refinement of "
70 65
                "adsorbate-surface structures section. ")
71
    logger.info("Most stable structure "
72
                f"is {sorted_confs[0].info['ref']} with a total energy of "
73
                f"{sorted_confs[0].info['energy']} eV.")
74
    confs_str = "\n".join([" ".join((str(conf.info['ref']), 'E =',
75
                                     str(conf.info['energy'] -
66
    if inp_vars["batch_q_sys"]:
67
        finished_calcs, failed_calcs = check_finished_calcs('refinement',
68
                                                            inp_vars['code'])
69
        conf_list = collect_confs(finished_calcs, inp_vars['code'],
70
                                  'refinement', inp_vars['special_atoms'])
71
        sorted_confs = select_stable_confs(conf_list, np.inf)
72
        logger.info(f"Most stable structure is {sorted_confs[0].info['ref']} "
73
                    f"with a total energy of {sorted_confs[0].info['energy']} "
74
                    f"eV.")
75
        confs_str = "\n".join([" ".join((str(conf.info['ref']), 'E =',
76
                                         str(conf.info['energy'] -
76 77
                                         sorted_confs[0].info['energy']),
77
                                     'eV'))
78
                           for conf in sorted_confs])
79
    logger.info("The relative energies, of all structures obtained at the "
80
                "refinement stage, respect the most stable one "
81
                f"({sorted_confs[0].info['ref']}) are:\n{confs_str}")
78
                                         'eV'))
79
                               for conf in sorted_confs])
80
        logger.info("The relative energies, of all structures obtained at the "
81
                    "refinement stage, respect the most stable one "
82
                    f"({sorted_confs[0].info['ref']}) are:\n{confs_str}")

Formats disponibles : Unified diff