From 5b6d52bbf72dab403ce2062a871b64c6cc55e2cb Mon Sep 17 00:00:00 2001 From: Andrew Gilbert Date: Tue, 14 May 2019 22:38:17 +1000 Subject: [PATCH] Qui updates --- src/Qui/InputDialog.C | 12 + src/Qui/InputDialog.h | 2 + src/Qui/InputDialogLogic.C | 24 ++ src/Qui/QuiMainWindow.ui | 499 +++++++++++++++++++++++++++---------- 4 files changed, 403 insertions(+), 134 deletions(-) diff --git a/src/Qui/InputDialog.C b/src/Qui/InputDialog.C index 263e4237..771786f5 100644 --- a/src/Qui/InputDialog.C +++ b/src/Qui/InputDialog.C @@ -943,6 +943,12 @@ void InputDialog::toggleStack(QStackedWidget* stack, bool on, QString model) } +void InputDialog::on_qui_none(bool on) +{ + toggleStack(m_ui.largeMoleculesStack, on, "LargeMoleculesNone"); +} + + void InputDialog::on_qui_cfmm_toggled(bool on) { toggleStack(m_ui.largeMoleculesStack, on, "LargeMoleculesCFMM"); @@ -958,6 +964,12 @@ void InputDialog::on_ftc_toggled(bool on) toggleStack(m_ui.largeMoleculesStack, on, "LargeMoleculesFTC"); } +void InputDialog::on_qui_use_ri_toggled(bool on) +{ + toggleStack(m_ui.largeMoleculesStack, on, "LargeMoleculesRI"); +} + + /* void InputDialog::on_qui_solvent_cosmo_toggled(bool on) diff --git a/src/Qui/InputDialog.h b/src/Qui/InputDialog.h index dcfd422d..2cc22576 100644 --- a/src/Qui/InputDialog.h +++ b/src/Qui/InputDialog.h @@ -108,6 +108,8 @@ class InputDialog : public QMainWindow { void on_qui_use_case_toggled(bool); void on_ftc_toggled(bool); void on_qui_cfmm_toggled(bool); + void on_qui_use_ri_toggled(bool); + void on_qui_none(bool on); void on_solvent_method_currentTextChanged(QString const&); diff --git a/src/Qui/InputDialogLogic.C b/src/Qui/InputDialogLogic.C index e590842a..16821b55 100644 --- a/src/Qui/InputDialogLogic.C +++ b/src/Qui/InputDialogLogic.C @@ -468,6 +468,30 @@ void InputDialog::initializeQuiLogic() Disable(m_ui.scf_guess_mix) + Disable(m_ui.label_scf_guess_mix)) ); + // GenScfMan + + QtNode& gen_scfman(reg.get("GEN_SCFMAN")); + gen_scfman.addRule( + If(gen_scfman == QtTrue, + Enable(m_ui.internal_stability) + + Enable(m_ui.os_roscf) + + Enable(m_ui.ghf) + + Enable(m_ui.complex), + Disable(m_ui.internal_stability) + + Disable(m_ui.os_roscf) + + Disable(m_ui.ghf) + + Disable(m_ui.complex) + ) + ); + + QtNode& complexNode(reg.get("COMPLEX")); + complexNode.addRule( + If(complexNode == QtTrue, + Enable(m_ui.complex_mix) + Enable(m_ui.label_complex_mix), + Disable(m_ui.complex_mix) + Disable(m_ui.label_complex_mix) + ) + ); + QtNode& dualBasisEnergy(reg.get("DUAL_BASIS_ENERGY")); diff --git a/src/Qui/QuiMainWindow.ui b/src/Qui/QuiMainWindow.ui index ae4e1316..e1c33afa 100644 --- a/src/Qui/QuiMainWindow.ui +++ b/src/Qui/QuiMainWindow.ui @@ -6,8 +6,8 @@ 0 0 - 982 - 854 + 980 + 707 @@ -447,7 +447,7 @@ QToolButton:checked { 0 0 523 - 526 + 379 @@ -457,7 +457,7 @@ QToolButton:checked { true - 1 + 0 -1 @@ -468,7 +468,7 @@ QToolButton:checked { 0 0 499 - 434 + 287 @@ -477,6 +477,13 @@ QToolButton:checked { + + + + % + + + @@ -487,10 +494,13 @@ QToolButton:checked { - - - - Algorithm + + + + -1 + + + 20 @@ -507,26 +517,10 @@ QToolButton:checked { - - - - -1 - - - 20 - - - - - - - - + + - Max Cycles - - - scf_max_cycles + Complex SCF @@ -540,12 +534,8 @@ QToolButton:checked { - - - - % - - + + @@ -557,20 +547,58 @@ QToolButton:checked { - - - - false + + + + Generalized Hartree-Fock - + + + + Algorithm + + + + + + + Open-shell Singlet ROSCF + + + + Dual Basis Energy + + + + Max Cycles + + + scf_max_cycles + + + + + + + Use GEN_SCFMAN + + + + + + + false + + + @@ -584,7 +612,34 @@ QToolButton:checked { - + + + + % + + + 0 + + + 0 + + + + + + + Complex Mix + + + + + + + Stability Analysis + + + + Unrestricted @@ -614,7 +669,7 @@ QToolButton:checked { 0 0 499 - 434 + 287 @@ -630,13 +685,6 @@ QToolButton:checked { - - - - Stability Analysis - - - @@ -732,6 +780,11 @@ QToolButton:checked { PAO + + + Internal Stability + + Thresholds @@ -891,7 +944,7 @@ QToolButton:checked { QFrame::Sunken - 0 + 3 @@ -1052,46 +1105,50 @@ QToolButton:checked { - - - - - + + + + Subspace + + - - + + - Print Level + Max DIIS Cycles - - + + - Threshold + DIIS Metric - - + + - - + + + + + - Subspace + Print Level - - + + + + + - Max DIIS Cycles + Threshold - - - @@ -1105,13 +1162,6 @@ QToolButton:checked { - - - - DIIS Metric - - - @@ -1132,6 +1182,9 @@ QToolButton:checked { + + + @@ -1291,14 +1344,21 @@ QToolButton:checked { - + Method - - + + + + + CASE + + + + CFMM @@ -1308,17 +1368,24 @@ QToolButton:checked { - - + + - FTC + None - - + + - CASE + RI + + + + + + + FTC @@ -1342,6 +1409,7 @@ QToolButton:checked { 0 + @@ -1499,6 +1567,81 @@ QToolButton:checked { + + + + + + + + + + + ARI + + + + + + + Outer Radius + + + + + + + + + + RI-K + + + + + + + Inner Radius + + + + + + + RI-J + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + @@ -1683,6 +1826,87 @@ QToolButton:checked { + + + + + + + + + + + Convergence + + + + + + + + + + Davidson Iterations + + + + + + + + + + Max SCFs + + + + + + + + + + Number of Roots + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Compute Vec-Mat Poduct By FD + + + + + + + + + Qt::Vertical + + + + 20 + 394 + + + + + + @@ -2611,7 +2835,7 @@ QToolButton:checked { - + @@ -2620,18 +2844,11 @@ QToolButton:checked { - - - - - - - Convergence - - + + @@ -2640,6 +2857,16 @@ QToolButton:checked { + + + + Max Subspace + + + + + + @@ -2653,29 +2880,22 @@ QToolButton:checked { - - + + + + Convergence + + - - + + - Max Subspace + Guess Type - - - - - - Guess Type - - - - - - - + + @@ -2697,48 +2917,61 @@ QToolButton:checked { - - + + - Use Reduced Active Space + Virtual Cutoff - + Occupied Cutoff - - + + + + + - Virtual Cutoff + Subspace - - - - + - - + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + - Subspace + Use Reduced Active Space - + Increase Printout - + @@ -5437,7 +5670,7 @@ Eventually this should go. 0 0 - 982 + 980 22 @@ -5526,8 +5759,6 @@ Eventually this should go. multipole_order qui_plots_points skip_cis_rpa - qui_cfmm - ftc qui_use_case ftc_fast ftc_class_thresh_mult