diff --git a/plugins/local/tc_keywords/EZFIO.cfg b/plugins/local/tc_keywords/EZFIO.cfg index 93ff790f..bc691fc3 100644 --- a/plugins/local/tc_keywords/EZFIO.cfg +++ b/plugins/local/tc_keywords/EZFIO.cfg @@ -280,3 +280,8 @@ doc: approach used to evaluate TC integrals [ analytic | numeric | semi-analytic interface: ezfio,ocaml,provider default: semi-analytic +[minimize_lr_angles] +type: logical +doc: If |true|, you minimize the angle between the left and right vectors associated to degenerate orbitals +interface: ezfio,provider,ocaml +default: False diff --git a/plugins/local/tc_scf/tc_scf.irp.f b/plugins/local/tc_scf/tc_scf.irp.f index d8c5ab66..768069d6 100644 --- a/plugins/local/tc_scf/tc_scf.irp.f +++ b/plugins/local/tc_scf/tc_scf.irp.f @@ -78,7 +78,9 @@ program tc_scf ! TODO ! rotate angles in separate code only if necessary - !call minimize_tc_orb_angles() + if(minimize_lr_angles)then + call minimize_tc_orb_angles() + endif call print_energy_and_mos(good_angles) endif