1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209
|
/* OrcaBasis.c */
/**********************************************************************************************************
Copyright (c) 2002-2012 Abdul-Rahman Allouche. All rights reserved
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the Gabedit), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
************************************************************************************************************/
#include <stdlib.h>
#include <ctype.h>
#include "../../Config.h"
#include "../Common/Global.h"
#include "../Orca/OrcaTypes.h"
#include "../Orca/OrcaGlobal.h"
#include "../Geometry/GeomGlobal.h"
#include "../Geometry/GeomConversion.h"
#include "../Geometry/GeomXYZ.h"
#include "../Geometry/Fragments.h"
#include "../Geometry/DrawGeom.h"
#include "../Utils/Utils.h"
#include "../Utils/UtilsInterface.h"
#include "../Utils/Constants.h"
#include "../Geometry/InterfaceGeom.h"
#include "../Common/Windows.h"
#include "../Utils/Constants.h"
#include "../Utils/AtomsProp.h"
#include "../Utils/GabeditTextEdit.h"
#include "../Symmetry/MoleculeSymmetry.h"
#include "../Symmetry/MoleculeSymmetryInterface.h"
static gchar selectedTypeBasis[BSIZE]="";
static gchar** listBasisReal = NULL;
static gchar** listBasisView = NULL;
static gint numberOfBasis = 0;
/*************************************************************************************************************/
static gchar* listTypeBasisView[] =
{
"Pople Style basis sets",
"Pople with one diffuse function on non-hydrogen atoms",
"Pople with one diffuse function on all atoms",
"Dunning basis sets",
"Ahlrichs basis sets",
"Def2 Ahlrichs basis sets",
"Jensen Basis Sets",
"Atomic Natural Orbital Basis Sets",
"Miscellenous and Specialized Basis Sets",
};
static gchar* listTypeBasisReal[] =
{
"Pople",
"PopleDiffuseNonHydrogen",
"PopleDiffuseAllAtoms",
"Dunning",
"Ahlrichs",
"Def2Ahlrichs",
"Jensen",
"ANO",
"Miscellenous",
};
static guint numberOfTypeBasis = G_N_ELEMENTS (listTypeBasisView);
/*************************************************************************************************************/
static gchar* listPopleBasisView[] =
{
"3-21G Pople 3-21G",
"3-21GSP Buenker 3-21GSP",
"4-22GSP Buenker 4-22GSP",
"6-31G Pople 6-31G and its modifications",
"6-311G Pople 6-311G and its modifications",
"3-21G* 3-21G plus one polarisation function all non-hydrogens atoms",
"3-21GSP* 3-21GSP plus one polarisation function all non-hydrogens atoms",
"4-22GSP* 4-22GSP plus one polarisation function all non-hydrogens atoms",
"6-31G* 6-31G plus one polarisation function all non-hydrogens atoms",
"6-311G* 6-311G plus one polarisation function all non-hydrogens atoms",
"3-21G** 3-21G plus one polarisation function all atoms",
"3-21GSP** 3-21GSP plus one polarisation function all atoms",
"4-22GSP** 4-22GSP plus one polarisation function all atoms",
"6-31G** 6-31G plus one polarisation function all atoms",
"6-311G** 6-311G plus one polarisation function all atoms",
"3-21G(2d) 3-21G plus two polarisation functions all non-hydrogens atoms",
"3-21GSP(2d) 3-21GSP plus two polarisation functions all non-hydrogens atoms",
"4-22GSP(2d) 4-22GSP plus two polarisation functions all non-hydrogens atoms",
"6-31G(2d) 6-31G plus two polarisation functions all non-hydrogens atoms",
"6-311G(2d) 6-311G plus two polarisation functions all non-hydrogens atoms",
"3-21G(2d,2p) 3-21G plus two polarisation functions all atoms",
"3-21GSP(2d,2p) 3-21GSP plus two polarisation functions all atoms",
"4-22GSP(2d,2p) 4-22GSP plus two polarisation functions all atoms",
"6-31G(2d,2p) 6-31G plus two polarisation functions all atoms",
"6-311G(2d,2p) 6-311G plus two polarisation functions all atoms",
"3-21G(2df) 3-21G plus three polarisation functions all non-hydrogens atoms",
"3-21GSP(2df) 3-21GSP plus three polarisation functions all non-hydrogens atoms",
"4-22GSP(2df) 4-22GSP plus three polarisation functions all non-hydrogens atoms",
"6-31G(2df) 6-31G plus three polarisation functions all non-hydrogens atoms",
"6-311G(2df) 6-311G plus three polarisation functions all non-hydrogens atoms",
"3-21G(2df,2pd) 3-21G plus three polarisation functions all atoms",
"3-21GSP(2df,2pd) 3-21GSP plus three polarisation functions all atoms",
"4-22GSP(2df,2pd) 4-22GSP plus three polarisation functions all atoms",
"6-31G(2df,2pd) 6-31G plus three polarisation functions all atoms",
"6-311G(2df,2pd) 6-311G plus three polarisation functions all atoms",
"3-21G(3df) 3-21G plus four polarisation functions all non-hydrogens atoms",
"3-21GSP(3df) 3-21GSP plus four polarisation functions all non-hydrogens atoms",
"4-22GSP(3df) 4-22GSP plus four polarisation functions all non-hydrogens atoms",
"6-31G(3df) 6-31G plus four polarisation functions all non-hydrogens atoms",
"6-311G(3df) 6-311G plus four polarisation functions all non-hydrogens atoms",
"3-21G(3df,3pd) 3-21G plus four polarisation functions all atoms",
"3-21GSP(3df,3pd) 3-21GSP plus four polarisation functions all atoms",
"4-22GSP(3df,3pd) 4-22GSP plus four polarisation functions all atoms",
"6-31G(3df,3pd) 6-31G plus four polarisation functions all atoms",
"6-311G(3df,3pd) 6-311G plus four polarisation functions all atoms",
};
static gchar* listPopleBasisReal[] =
{
"3-21G",
"3-21GSP",
"4-22GSP",
"6-31G",
"6-311G",
"3-21G*",
"3-21GSP*",
"4-22GSP*",
"6-31G*",
"6-311G*",
"3-21G**",
"3-21GSP**",
"4-22GSP**",
"6-31G**",
"6-311G**",
"3-21G(2d)",
"3-21GSP(2d)",
"4-22GSP(2d)",
"6-31G(2d)",
"6-311G(2d)",
"3-21G(2d,2p)",
"3-21GSP(2d,2p)",
"4-22GSP(2d,2p)",
"6-31G(2d,2p)",
"6-311G(2d,2p)",
"3-21G(2df)",
"3-21GSP(2df)",
"4-22GSP(2df)",
"6-31G(2df)",
"6-311G(2df)",
"3-21G(2df,2pd)",
"3-21GSP(2df,2pd)",
"4-22GSP(2df,2pd)",
"6-31G(2df,2pd)",
"6-311G(2df,2pd)",
"3-21G(3df)",
"3-21GSP(3df)",
"4-22GSP(3df)",
"6-31G(3df)",
"6-311G(3df)",
"3-21G(3df,3pd)",
"3-21GSP(3df,3pd)",
"4-22GSP(3df,3pd)",
"6-31G(3df,3pd)",
"6-311G(3df,3pd)",
};
static guint numberOfPopleBasis = G_N_ELEMENTS (listPopleBasisView);
/*************************************************************************************************************/
static gchar* listPopleDiffuseNonHydrogenBasisView[] =
{
"3-21+G 3-21G plus diffuse functions on all non-hydrogens atoms",
"3-21+GSP 3-21GSP plus diffuse functions on all non-hydrogens atoms",
"4-22+GSP 4-22GSP plus diffuse functions on all non-hydrogens atoms",
"6-31+G 6-31G plus diffuse functions on all non-hydrogens atoms",
"6-311+G 6-311G plus diffuse functions on all non-hydrogens atoms",
"3-21+G* 3-21G + diff. non-hydrogens + 1 pol. non-hydrogens",
"3-21+GSP* 3-21GSP + diff. non-hydrogens + 1 pol. non-hydrogens",
"4-22+GSP* 4-22GSP + diff. non-hydrogens + 1 pol. non-hydrogens",
"6-31+G* 6-31G + diff. non-hydrogens + 1 pol. non-hydrogens",
"6-311+G* 6-311G + diff. non-hydrogens + 1 pol. non-hydrogens",
"3-21+G** 3-21G + diff. non-hydrogens + 1 pol. ",
"3-21+GSP** 3-21GSP + diff. non-hydrogens + 1 pol. ",
"4-22+GSP** 4-22GSP + diff. non-hydrogens + 1 pol. ",
"6-31+G** 6-31G + diff. non-hydrogens + 1 pol. ",
"6-311+G** 6-311G + diff. non-hydrogens + 1 pol. ",
"3-21+G(2d) 3-21G + diff. non-hydrogens + 2 pol. non-hydrogens",
"3-21+GSP(2d) 3-21GSP + diff. non-hydrogens + 2 pol. non-hydrogens",
"4-22+GSP(2d) 4-22GSP + diff. non-hydrogens + 2 pol. non-hydrogens",
"6-31+G(2d) 6-31G + diff. non-hydrogens + 2 pol. non-hydrogens",
"6-311+G(2d) 6-311G + diff. non-hydrogens + 2 pol. non-hydrogens",
"3-21+G(2d,2p) 3-21G + diff. non-hydrogens + 2 pol.",
"3-21+GSP(2d,2p) 3-21GSP + diff. non-hydrogens + 2 pol.",
"4-22+GSP(2d,2p) 4-22GSP + diff. non-hydrogens + 2 pol.",
"6-31+G(2d,2p) 6-31G + diff. non-hydrogens + 2 pol.",
"6-311+G(2d,2p) 6-311G + diff. non-hydrogens + 2 pol.",
"3-21+G(2df) 3-21G + diff. non-hydrogens + 3 pol. non-hydrogens",
"3-21+GSP(2df) 3-21GSP + diff. non-hydrogens + 3 pol. non-hydrogens",
"4-22+GSP(2df) 4-22GSP + diff. non-hydrogens + 3 pol. non-hydrogens",
"6-31+G(2df) 6-31G + diff. non-hydrogens + 3 pol. non-hydrogens",
"6-311+G(2df) 6-311G + diff. non-hydrogens + 3 pol. non-hydrogens",
"3-21+G(2df,2pd) 3-21G + diff. non-hydrogens + 3 pol.",
"3-21+GSP(2df,2pd) 3-21GSP + diff. non-hydrogens + 3 pol.",
"4-22+GSP(2df,2pd) 4-22GSP + diff. non-hydrogens + 3 pol.",
"6-31+G(2df,2pd) 6-31G + diff. non-hydrogens + 3 pol.",
"6-311+G(2df,2pd) 6-311G + diff. non-hydrogens + 3 pol.",
"3-21+G(3df) 3-21G + diff. non-hydrogens + 4 pol. non-hydrogens",
"3-21+GSP(3df) 3-21GSP + diff. non-hydrogens + 4 pol. non-hydrogens",
"4-22+GSP(3df) 4-22GSP + diff. non-hydrogens + 4 pol. non-hydrogens",
"6-31+G(3df) 6-31G + diff. non-hydrogens + 4 pol. non-hydrogens",
"6-311+G(3df) 6-311G + diff. non-hydrogens + 4 pol. non-hydrogens",
"3-21+G(3df,3pd) 3-21G + diff. non-hydrogens + 4 pol.",
"3-21+GSP(3df,3pd) 3-21GSP + diff. non-hydrogens + 4 pol.",
"4-22+GSP(3df,3pd) 4-22GSP + diff. non-hydrogens + 4 pol.",
"6-31+G(3df,3pd) 6-31G + diff. non-hydrogens + 4 pol.",
"6-311+G(3df,3pd) 6-311G + diff. non-hydrogens + 4 pol.",
};
static gchar* listPopleDiffuseNonHydrogenBasisReal[] =
{
"3-21+G",
"3-21+GSP",
"4-22+GSP",
"6-31+G",
"6-311+G",
"3-21+G*",
"3-21+GSP*",
"4-22+GSP*",
"6-31+G*",
"6-311+G*",
"3-21+G**",
"3-21+GSP**",
"4-22+GSP**",
"6-31+G**",
"6-311+G**",
"3-21+G(2d)",
"3-21+GSP(2d)",
"4-22+GSP(2d)",
"6-31+G(2d)",
"6-311+G(2d)",
"3-21+G(2d,2p)",
"3-21+GSP(2d,2p)",
"4-22+GSP(2d,2p)",
"6-31+G(2d,2p)",
"6-311+G(2d,2p)",
"3-21+G(2df)",
"3-21+GSP(2df)",
"4-22+GSP(2df)",
"6-31+G(2df)",
"6-311+G(2df)",
"3-21+G(2df,2pd)",
"3-21+GSP(2df,2pd)",
"4-22+GSP(2df,2pd)",
"6-31+G(2df,2pd)",
"6-311+G(2df,2pd)",
"3-21+G(3df)",
"3-21+GSP(3df)",
"4-22+GSP(3df)",
"6-31+G(3df)",
"6-311+G(3df)",
"3-21+G(3df,3pd)",
"3-21+GSP(3df,3pd)",
"4-22+GSP(3df,3pd)",
"6-31+G(3df,3pd)",
"6-311+G(3df,3pd)",
};
static guint numberOfPopleDiffuseNonHydrogenBasis = G_N_ELEMENTS (listPopleDiffuseNonHydrogenBasisView);
/*************************************************************************************************************/
static gchar* listPopleDiffuseAllAtomsBasisView[] =
{
"3-21++G 3-21G plus diffuse functions on all atoms",
"3-21++GSP 3-21GSP plus diffuse functions on all atoms",
"4-22++GSP 4-22GSP plus diffuse functions on all atoms",
"6-31++G 6-31G plus diffuse functions on all atoms",
"6-311++G 6-311G plus diffuse functions on all atoms",
"3-21++G* 3-21G + diff. + 1 pol. non-hydrogens",
"3-21++GSP* 3-21GSP + diff. + 1 pol. non-hydrogens",
"4-22++GSP* 4-22GSP + diff. + 1 pol. non-hydrogens",
"6-31++G* 6-31G + diff. + 1 pol. non-hydrogens",
"6-311++G* 6-311G + diff. + 1 pol. non-hydrogens",
"3-21++G** 3-21G + diff. + 1 pol. ",
"3-21++GSP** 3-21GSP + diff. + 1 pol. ",
"4-22++GSP** 4-22GSP + diff. + 1 pol. ",
"6-31++G** 6-31G + diff. + 1 pol. ",
"6-311++G** 6-311G + diff. + 1 pol. ",
"3-21++G(2d) 3-21G + diff. + 2 pol. non-hydrogens",
"3-21++GSP(2d) 3-21GSP + diff. + 2 pol. non-hydrogens",
"4-22++GSP(2d) 4-22GSP + diff. + 2 pol. non-hydrogens",
"6-31++G(2d) 6-31G + diff. + 2 pol. non-hydrogens",
"6-311++G(2d) 6-311G + diff. + 2 pol. non-hydrogens",
"3-21++G(2d,2p) 3-21G + diff. + 2 pol.",
"3-21++GSP(2d,2p) 3-21GSP + diff. + 2 pol.",
"4-22++GSP(2d,2p) 4-22GSP + diff. + 2 pol.",
"6-31++G(2d,2p) 6-31G + diff. + 2 pol.",
"6-311++G(2d,2p) 6-311G + diff. + 2 pol.",
"3-21++G(2df) 3-21G + diff. + 3 pol. non-hydrogens",
"3-21++GSP(2df) 3-21GSP + diff. + 3 pol. non-hydrogens",
"4-22++GSP(2df) 4-22GSP + diff. + 3 pol. non-hydrogens",
"6-31++G(2df) 6-31G + diff. + 3 pol. non-hydrogens",
"6-311++G(2df) 6-311G + diff. + 3 pol. non-hydrogens",
"3-21++G(2df,2pd) 3-21G + diff. + 3 pol.",
"3-21++GSP(2df,2pd) 3-21GSP + diff. + 3 pol.",
"4-22++GSP(2df,2pd) 4-22GSP + diff. + 3 pol.",
"6-31++G(2df,2pd) 6-31G + diff. + 3 pol.",
"6-311++G(2df,2pd) 6-311G + diff. + 3 pol.",
"3-21++G(3df) 3-21G + diff. + 4 pol. non-hydrogens",
"3-21++GSP(3df) 3-21GSP + diff. + 4 pol. non-hydrogens",
"4-22++GSP(3df) 4-22GSP + diff. + 4 pol. non-hydrogens",
"6-31++G(3df) 6-31G + diff. + 4 pol. non-hydrogens",
"6-311++G(3df) 6-311G + diff. + 4 pol. non-hydrogens",
"3-21++G(3df,3pd) 3-21G + diff. + 4 pol.",
"3-21++GSP(3df,3pd) 3-21GSP + diff. + 4 pol.",
"4-22++GSP(3df,3pd) 4-22GSP + diff. + 4 pol.",
"6-31++G(3df,3pd) 6-31G + diff. + 4 pol.",
"6-311++G(3df,3pd) 6-311G + diff. + 4 pol.",
};
static gchar* listPopleDiffuseAllAtomsBasisReal[] =
{
"3-21++G",
"3-21++GSP",
"4-22++GSP",
"6-31++G",
"6-311++G",
"3-21++G*",
"3-21++GSP*",
"4-22++GSP*",
"6-31++G*",
"6-311++G*",
"3-21++G**",
"3-21++GSP**",
"4-22++GSP**",
"6-31++G**",
"6-311++G**",
"3-21++G(2d)",
"3-21++GSP(2d)",
"4-22++GSP(2d)",
"6-31++G(2d)",
"6-311++G(2d)",
"3-21++G(2d,2p)",
"3-21++GSP(2d,2p)",
"4-22++GSP(2d,2p)",
"6-31++G(2d,2p)",
"6-311++G(2d,2p)",
"3-21++G(2df)",
"3-21++GSP(2df)",
"4-22++GSP(2df)",
"6-31++G(2df)",
"6-311++G(2df)",
"3-21++G(2df,2pd)",
"3-21++GSP(2df,2pd)",
"4-22++GSP(2df,2pd)",
"6-31++G(2df,2pd)",
"6-311++G(2df,2pd)",
"3-21++G(3df)",
"3-21++GSP(3df)",
"4-22++GSP(3df)",
"6-31++G(3df)",
"6-311++G(3df)",
"3-21++G(3df,3pd)",
"3-21++GSP(3df,3pd)",
"4-22++GSP(3df,3pd)",
"6-31++G(3df,3pd)",
"6-311++G(3df,3pd)",
};
static guint numberOfPopleDiffuseAllAtomsBasis = G_N_ELEMENTS (listPopleDiffuseAllAtomsBasisView);
/*************************************************************************************************************/
static gchar* listDunningBasisView[] =
{
"cc-pVDZ Dunning correlation concisistent polarized double zeta",
"cc-(p)VDZ Same but no polarization on hydrogens",
"Aug-cc-pVDZ Same but including diffuse functions",
"cc-pVTZ Dunning correlation concisistent polarized triple zeta",
"cc-(p)VTZ Same but no polarization on hydrogen",
"Aug-cc-pVTZ Same but including diffuse functions(g-functions deleted!)",
"cc-pVQZ Dunning correlation concisistent polarized quadruple zeta",
"Aug-cc-pVQZ with diffuse functions",
"cc-pV5Z Dunning correlation concisistent polarized quintuple zeta",
"Aug-cc-pV5Z with diffuse functions",
"cc-pV6Z Dunning correlation concisistent polarized sextuple zeta",
"Aug-cc-pV6Z ... with diffuse functions",
"cc-pCVDZ Core-polarized double-zeta correlation consistent basis set",
"cc-pCVTZ Same for triple zeta",
"cc-pCVQZ Same for quadruple zeta",
"cc-pCV5Z Same for quintuple zeta",
"cc-pV6Z Same for sextuple zeta",
"Aug-pCVDZ Same double zeta with diffuse functions augmented",
"Aug-pCVTZ Same for triple zeta",
"Aug-pCVQZ Same for quadruple zeta",
"Aug-pCV5Z Same for quintuple zeta",
"Aug-cc-pV6Z Same for sextuple zeta",
"DUNNING-DZP Dunning's original double zeta basis set",
};
static gchar* listDunningBasisReal[] =
{
"cc-pVDZ",
"cc-(p)VDZ",
"Aug-cc-pVDZ",
"cc-pVTZ",
"cc-(p)VTZ",
"Aug-cc-pVTZ",
"cc-pVQZ",
"Aug-cc-pVQZ",
"cc-pV5Z",
"Aug-cc-pV5Z",
"cc-pV6Z",
"Aug-cc-pV6Z",
"cc-pCVDZ",
"cc-pCVTZ",
"cc-pCVQZ",
"cc-pCV5Z",
"cc-pV6Z",
"Aug-pCVDZ",
"Aug-pCVTZ",
"Aug-pCVQZ",
"Aug-pCV5Z",
"Aug-cc-pV6Z",
};
static guint numberOfDunningBasis = G_N_ELEMENTS (listDunningBasisView);
/*************************************************************************************************************/
static gchar* listAhlrichsBasisView[] =
{
"SV Ahlrichs split valence basis set",
"VDZ Ahlrichs split valence basis set",
"VTZ Ahlrichs Valence triple zeta basis set",
"TZV Ahlrichs triple-zeta valence basis set. NOT identical to VTZ",
"QZVP Ahlrichs quadruple-zeta basis set. P is already polarized",
"DZ Ahlrichs double zeta basis set",
"QZVPP(-g,-f) QZVPP with higest polarization functions deleted",
"SV(P) SV + One polar set on all non-hydrogens atoms",
"VDZ(P) VDZ + One polar set on all non-hydrogens atoms",
"VTZ(P) VTZ + One polar set on all non-hydrogens atoms",
"TZV(P) TZV + One polar set on all non-hydrogens atoms",
"DZ(P) DZ + One polar set on all non-hydrogens atoms",
"SVP SV + One polar set on all atoms",
"VDZP VDZ + One polar set on all atoms",
"VTZP VTZ + One polar set on all atoms",
"TZVP TZV + One polar set on all atoms",
"DZP DZ + One polar set on all atoms",
"SV(2D) SV + Two polar set on all non-hydrogens atoms",
"VDZ(2D) VDZ + Two polar set on all non-hydrogens atoms",
"VTZ(2D) VTZ + Two polar set on all non-hydrogens atoms",
"TZV(2D) TZV + Two polar set on all non-hydrogens atoms",
"DZ(2D) DZ + Two polar set on all non-hydrogens atoms",
"SV(2D,2P) SV + Two polar set on all atoms",
"VDZ(2D,2P) VDZ + Two polar set on all atoms",
"VTZ(2D,2P) VTZ + Two polar set on all atoms",
"TZV(2D,2P) TZV + Two polar set on all atoms",
"DZ(2D,2P) DZ + Two polar set on all atoms",
"SV(2df) SV + Three polar set on all non-hydrogens atoms",
"VDZ(2df) VDZ + Three polar set on all non-hydrogens atoms",
"VTZ(2df) VTZ + Three polar set on all non-hydrogens atoms",
"TZV(2df) TZV + Three polar set on all non-hydrogens atoms",
"DZ(2df) DZ + Three polar set on all non-hydrogens atoms",
"SV(2df,2pd) SV + Three polar set on all atoms",
"VDZ(2df,2pd) VDZ + Three polar set on all atoms",
"VTZ(2df,2pd) VTZ + Three polar set on all atoms",
"TZV(2df,2pd) TZV + Three polar set on all atoms",
"DZ(2df,2pd) DZ + Three polar set on all atoms",
"SV(PP) SV + Three polar set on all non-hydrogens atoms",
"VDZ(PP) VDZ + Three polar set on all non-hydrogens atoms",
"VTZ(PP) VTZ + Three polar set on all non-hydrogens atoms",
"TZV(PP) TZV + Three polar set on all non-hydrogens atoms",
"DZ(PP) DZ + Three polar set on all non-hydrogens atoms",
"SVPP SV + Three polar set on all atoms",
"VDZPP VDZ + Three polar set on all atoms",
"VTZPP VTZ + Three polar set on all atoms",
"TZVPP TZV + Three polar set on all atoms",
"DZPP DZ + Three polar set on all atoms",
"SV(P)+ SV plus Pople diff. func. + 1 polar on non-hydrogens",
"VDZ(P)+ VDZ plus Pople diff. func. + 1 polar on non-hydrogens",
"VTZ(P)+ VTZ plus Pople diff. func. + 1 polar on non-hydrogens",
"TZV(P)+ TZV plus Pople diff. func. + 1 polar on non-hydrogens",
"SVP++ SV plus Pople diff. func. + One polar set on all atoms",
"TZVP++ TZV plus Pople diff. func. + One polar set on all atoms",
"TZV(2D) TZV lus Pople diff. func. + One polar set on all atoms",
"aug-SV(P) SV plus Dunning diff. One polar set on all non-hydrogens atoms",
"aug-VDZ(P) VDZ plus Dunning diff. One polar set on all non-hydrogens atoms",
"aug-VTZ(P) VTZ plus Dunning diff. One polar set on all non-hydrogens atoms",
"aug-TZV(P) TZV plus Dunning diff. One polar set on all non-hydrogens atoms",
"aug-DZ(P) DZ plus Dunning diff. One polar set on all non-hydrogens atoms",
"aug-SVP SV plus Dunning diff. One polar set on all atoms",
"aug-VDZP VDZ plus Dunning diff. One polar set on all atoms",
"aug-VTZP VTZ plus Dunning diff. One polar set on all atoms",
"aug-TZVP TZV plus Dunning diff. One polar set on all atoms",
"aug-DZP DZ plus Dunning diff. One polar set on all atoms",
"aug-SV(2D) SV plus Dunning diff. Two polar set on all non-hydrogens atoms",
"aug-VDZ(2D) VDZ plus Dunning diff. Two polar set on all non-hydrogens atoms",
"aug-VTZ(2D) VTZ plus Dunning diff. Two polar set on all non-hydrogens atoms",
"aug-TZV(2D) TZV plus Dunning diff. Two polar set on all non-hydrogens atoms",
"aug-DZ(2D) DZ plus Dunning diff. Two polar set on all non-hydrogens atoms",
"aug-SV(2D,2P) SV plus Dunning diff. Two polar set on all atoms",
"aug-VDZ(2D,2P) VDZ plus Dunning diff. Two polar set on all atoms",
"aug-VTZ(2D,2P) VTZ plus Dunning diff. Two polar set on all atoms",
"aug-TZV(2D,2P) TZV plus Dunning diff. Two polar set on all atoms",
"aug-DZ(2D,2P) DZ plus Dunning diff. Two polar set on all atoms",
"aug-SV(2df) SV plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-VDZ(2df) VDZ plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-VTZ(2df) VTZ plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-TZV(2df) TZV plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-DZ(2df) DZ plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-SV(2df,2pd) SV plus Dunning diff. Three polar set on all atoms",
"aug-VDZ(2df,2pd) VDZ plus Dunning diff. Three polar set on all atoms",
"aug-VTZ(2df,2pd) VTZ plus Dunning diff. Three polar set on all atoms",
"aug-TZV(2df,2pd) TZV plus Dunning diff. Three polar set on all atoms",
"aug-DZ(2df,2pd) DZ plus Dunning diff. Three polar set on all atoms",
"aug-SV(PP) SV plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-VDZ(PP) VDZ plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-VTZ(PP) VTZ plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-TZV(PP) TZV plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-DZ(PP) DZ plus Dunning diff. Three polar set on all non-hydrogens atoms",
"aug-SVPP SV plus Dunning diff. Three polar set on all atoms",
"aug-VDZPP VDZ plus Dunning diff. Three polar set on all atoms",
"aug-VTZPP VTZ plus Dunning diff. Three polar set on all atoms",
"aug-TZVPP TZV plus Dunning diff. Three polar set on all atoms",
"aug-DZPP DZ plus Dunning diff. Three polar set on all atoms",
};
static gchar* listAhlrichsBasisReal[] =
{
"SV",
"VDZ",
"VTZ",
"TZV",
"QZVP",
"DZ",
"QZVPP(-g,-f)",
"SV(P)",
"VDZ(P)",
"VTZ(P)",
"TZV(P)",
"DZ(P)",
"SVP",
"VDZP",
"VTZP ",
"TZVP ",
"DZP",
"SV(2D)",
"VDZ(2D)",
"VTZ(2D)",
"TZV(2D)",
"DZ(2D)",
"SV(2D,2P)",
"VDZ(2D,2P)",
"VTZ(2D,2P)",
"TZV(2D,2P)",
"DZ(2D,2P)",
"SV(2df)",
"VDZ(2df)",
"VTZ(2df)",
"TZV(2df)",
"DZ(2df)",
"SV(2df,2pd)",
"VDZ(2df,2pd)",
"VTZ(2df,2pd)",
"TZV(2df,2pd)",
"DZ(2df,2pd)",
"SV(PP)",
"VDZ(PP)",
"VTZ(PP)",
"TZV(PP)",
"DZ(PP)",
"SVPP",
"VDZPP",
"VTZPP",
"TZVPP",
"DZPP",
"SV(P)+",
"VDZ(P)+",
"VTZ(P)+",
"TZV(P)+",
"SVP++",
"TZVP++",
"TZV(2D)",
"aug-SV(P)",
"aug-VDZ(P)",
"aug-VTZ(P)",
"aug-TZV(P)",
"aug-DZ(P)",
"aug-SVP",
"aug-VDZP",
"aug-VTZP",
"aug-TZVP",
"aug-DZP",
"aug-SV(2D)",
"aug-VDZ(2D)",
"aug-VTZ(2D)",
"aug-TZV(2D)",
"aug-DZ(2D)",
"aug-SV(2D,2P)",
"aug-VDZ(2D,2P)",
"aug-VTZ(2D,2P)",
"aug-TZV(2D,2P)",
"aug-DZ(2D,2P)",
"aug-SV(2df)",
"aug-VDZ(2df)",
"aug-VTZ(2df)",
"aug-TZV(2df)",
"aug-DZ(2df)",
"aug-SV(2df,2pd)",
"aug-VDZ(2df,2pd)",
"aug-VTZ(2df,2pd)",
"aug-TZV(2df,2pd)",
"aug-DZ(2df,2pd)",
"aug-SV(PP)",
"aug-VDZ(PP)",
"aug-VTZ(PP)",
"aug-TZV(PP)",
"aug-DZ(PP)",
"aug-SVPP",
"aug-VDZPP",
"aug-VTZPP",
"aug-TZVPP",
"aug-DZPP",
};
static guint numberOfAhlrichsBasis = G_N_ELEMENTS (listAhlrichsBasisView);
/*************************************************************************************************************/
static gchar* listDef2AhlrichsBasisView[] =
{
"Def2-SV(P) SV basis set with 'new' polarization functions",
"Def2-SVP",
"Def2-TZVP TZVP basis set with 'new' polarization functions",
"Def2-TZVP(-f) Delete the f-polarization functions from def2-TZVP",
"Def2-TZVP(-df) delete the double d-function and replace it by the older single d-function.",
"Def2-TZVPP TZVPP basis set with 'new' polarization functions",
"Def2-aug-TZVPP Same but with diffuse functions from aug-cc-pVTZ",
"Def2-QZVPP Very accurate quadruple-zeta basis.",
"Def2-QZVPP(-g,-f) higest angular momentum polarization functions deleted",
};
static gchar* listDef2AhlrichsBasisReal[] =
{
"Def2-SV(P)",
"Def2-SVP",
"Def2-TZVP",
"Def2-TZVP(-f)",
"Def2-TZVP(-df)",
"Def2-TZVPP",
"Def2-aug-TZVPP",
"Def2-QZVPP",
"Def2-QZVPP(-g,-f)",
};
static guint numberOfDef2AhlrichsBasis = G_N_ELEMENTS (listDef2AhlrichsBasisView);
/*************************************************************************************************************/
static gchar* listJensenBasisView[] =
{
"PC-1 Polarization consistent basis sets (H-Ar) optimized for DFT",
"PC-2 double zeta polarization consistent basis sets (H-Ar) optimized for DFT",
"PC-3 triple zeta polarization consistent basis sets (H-Ar) optimized for DFT",
"PC-4 quadruple zeta polarization consistent basis sets (H-Ar) optimized for DFT",
"Aug-PC-1 PC-1 with augmentations by diffuse functions",
"Aug-PC-2 PC-2 with augmentations by diffuse functions",
"Aug-PC-3 PC-3 with augmentations by diffuse functions",
"Aug-PC-4 PC-4 with augmentations by diffuse functions",
};
static gchar* listJensenBasisReal[] =
{
"PC-1",
"PC-2",
"PC-3",
"PC-4",
"Aug-PC-1",
"Aug-PC-2",
"Aug-PC-3",
"Aug-PC-4",
};
static guint numberOfJensenBasis = G_N_ELEMENTS (listJensenBasisView);
/*************************************************************************************************************/
static gchar* listANOBasisView[] =
{
"ano-pVDZ better than the cc-pVDZ (but much larger number of primitives of course)",
"ano-pVTZ",
"ano-pVQZ",
"ano-pV5Z",
"saug-ano-pVDZ ano-pVDZ augmentation with a single set of s,p functions.",
"saug-ano-pVTZ ano-pVTZ augmentation with a single set of s,p functions.",
"saug-ano-pVQZ ano-pVQZ augmentation with a single set of s,p functions. ",
"saug-ano-pV5Z ano-pV5Z augmentation with a single set of s,p functions.",
"aug-ano-pVDZ ano-pVDZ full augmentation with spd",
"aug-ano-pVTZ ano-pVTZ full augmentation with spdf",
"aug-ano-pVQZ ano-pVQZ full augmentation with spdfg",
"BNANO-DZP (Bonn-ANO-DZP), small DZP type ANO basis set from the Bonn group",
"BNANO-TZ2P (Bonn-ANO-TZ2P), slightly larger triple-zeta ANO with two pol. Bonn group",
"BNANO-TZ3P Same but with a contracted set of f-polarization functions on the heavy atoms",
"NASA-AMES-ANO The original NASA/AMES ANO basis set (quadruple-zeta type)",
"BAUSCHLICHER ANO First row transition metal ANO sets",
"ROOS-ANO-DZP A fairly large DZP basis set from Roos, same size as aug-ano-pVDZ",
"ROOS-ANO-TZP A fairly large TZP basis from Roos, same size as aug-ano-pVTZ",
};
static gchar* listANOBasisReal[] =
{
"ano-pVDZ",
"ano-pVTZ",
"ano-pVQZ",
"ano-pV5Z",
"saug-ano-pVDZ",
"saug-ano-pVTZ",
"saug-ano-pVQZ",
"saug-ano-pV5Z",
"aug-ano-pVDZ",
"aug-ano-pVTZ",
"aug-ano-pVQZ",
"BNANO-DZP",
"BNANO-TZ2P",
"BNANO-TZ3P",
"NASA-AMES-ANO",
"BAUSCHLICHER",
"ROOS-ANO-DZP",
"ROOS-ANO-TZP",
};
static guint numberOfANOBasis = G_N_ELEMENTS (listANOBasisView);
/*************************************************************************************************************/
static gchar* listMiscellenousBasisView[] =
{
"DGAUSS DGauss polarized valence double zeta basis set",
"DZVP-DFT DGauss polarized valence double zeta basis set",
"SADLEJ-PVTZ Sadlej's polarized triple zeta basis for poarlizability and related calculations",
"EPR-II Barone's Basis set for EPR calculations (double zeta)",
"EPR-III Barone's Basis set for EPR calculations (triple-zeta)",
"IGLO-II Kutzelniggs basis set for NMR and EPR calculations",
"IGLO-III Kutzelniggs basis set for NMR and EPR calculations (accurate)",
"Partridge-1 Accurate uncontracted basis set",
"Partridge-2 Accurate uncontracted basis set",
"Partridge-3 Accurate uncontracted basis set",
"Wachters Good first row transition metal basis set",
};
static gchar* listMiscellenousBasisReal[] =
{
"DGAUSS",
"DZVP-DFT",
"SADLEJ-PVTZ",
"EPR-II",
"EPR-III",
"IGLO-II",
"IGLO-III",
"Partridge-1",
"Partridge-2",
"Partridge-3",
"Wachters",
};
static guint numberOfMiscellenousBasis = G_N_ELEMENTS (listMiscellenousBasisView);
/*************************************************************************************************************/
static gchar* listAuxBasisView[] =
{
"AutoAux Automatic construction of a general purpose fitting basis",
"DEMON/J The DeMon/J Coulomb fitting basis",
"DGAUSS/J The DGauss A1 Coulomb fitting basis",
"SV/J (=VDZ/J) Ahlrichs Coulomb fitting basis for the SVP basis",
"TZV/J (=VTZ/J) Ahlrichs Coulomb fitting basis for the TZV or TZVP basis",
"QZVPP/J Ahlrichs Coulomb fitting for the QZVPP basis",
"Def2-SVP/J Ahlrichs Coulomb fitting for def-SVP",
"Def2-TZVPP/J Ahlrichs Coulomb fitting for def2-TZVPP/J",
"Def2-QZVPP/J Ahlrichs Coulomb fitting for def2-QZVPP/J",
"SV/J(-f) Same as SV/J but with the highest angular momentum aux-function deleted",
"TZV/J(-f) Same as TZV/J but with the highest angular momentum aux-function deleted",
"SV/C (=VDZ/C) The Ahlrichs correlation fitting basis for MP2-RI with SVP",
"TZV/C (=VTZ/C) The Ahlrichs correlation fitting basis for MP2-RI with TZVP",
"TZVPP/C (=VTZPP/C) The Ahlrichs correlation fitting basis for MP2-RI with extended triple-z bases",
"QZVP/C Correlation fitting for the QZVP basis",
"QZVPP/C Correlation fitting for the QZVPP basis",
"Def2-SVP/C Correlation fitting for the def2-SVP basis",
"Def2-TZVP/C Correlation fitting for the def2-TZVP basis",
"Def2-TZVPP/C Correlation fitting for the def2-TZVPP basis",
"Def2-QZVPP/C Correlation fitting for the def2-QZVPP basis",
"cc-pVDZ/C Aux-basis for the cc-pVDZ orbital basis",
"cc-pVTZ/C Aux-basis for the cc-pVTZ orbital basis",
"cc-pVQZ/C Aux-basis for the cc-pVQZ orbital basis",
"cc-pV5Z/C Aux-basis for the cc-pV5Z orbital basis",
"cc-pV6Z/C Aux-basis for the cc-pV6Z orbital basis,",
"Aug-cc-pVDZ/C Aux-basis for the aug-cc-pVDZ orbital basis",
"Aug-cc-pVTZ/C Aux-basis for the aug-cc-pVTZ orbital basis",
"Aug-SV/C Aux basis for SVP and related bases but with diffuse functions",
"Aug-TZV/C Aux basis for TZVP and related bases but with diffuse functions",
"Aug-TZVPP/C Aux basis for TZVPP and related bases but with diffuse functions",
"SVP/JK Coulomb+Exchange fitting for SVP",
"TZVPP/JK Coulomb+Exchange fitting for TZVPP",
"QZVPP/JK Coulomb+Exchange fitting for QZVPP",
"Def2-SVP/JK Coulomb+Exchange fitting for def2-SVP",
"Def2-TZVPP/JK Coulomb+Exchange fitting for def2-TZVPP",
"Def2-QZVPP/JK Coulomb+Exchange fitting for def2-QZVPP",
"cc-pVDZ/JK Coulomb+Exchange fitting for cc-pVDZ",
"cc-pVTZ/JK Coulomb+Exchange fitting for cc-pVTZ",
"cc-pVQZ/JK Coulomb+Exchange fitting for cc-pVQZ",
"cc-pV5Z/JK Coulomb+Exchange fitting for cc-pV5Z",
"cc-pV6Z/JK Coulomb+Exchange fitting for cc-pV6Z",
};
static gchar* listAuxBasisReal[] =
{
"AutoAux",
"DEMON/J",
"DGAUSS/J",
"SV/J",
"TZV/J",
"QZVPP/J",
"Def2-SVP/J",
"Def2-TZVPP/J",
"Def2-QZVPP/J",
"SV/J(-f)",
"TZV/J(-f)",
"SV/C (=VDZ/C)",
"TZV/C (=VTZ/C)",
"TZVPP/C (=VTZPP/C)",
"QZVP/C",
"QZVPP/C",
"Def2-SVP/C",
"Def2-TZVP/C",
"Def2-TZVPP/C",
"Def2-QZVPP/C",
"cc-pVDZ/C",
"cc-pVTZ/C",
"cc-pVQZ/C",
"cc-pV5Z/C",
"cc-pV6Z/C",
"Aug-cc-pVDZ/C",
"Aug-cc-pVTZ/C",
"Aug-SV/C",
"Aug-TZV/C",
"Aug-TZVPP/C",
"SVP/JK",
"TZVPP/JK",
"QZVPP/JK",
"Def2-SVP/JK",
"Def2-TZVPP/JK",
"Def2-QZVPP/JK",
"cc-pVDZ/JK",
"cc-pVTZ/JK",
"cc-pVQZ/JK",
"cc-pV5Z/JK",
"cc-pV6Z/JK",
};
static guint numberOfAuxBasis = G_N_ELEMENTS (listAuxBasisView);
/*************************************************************************************************************/
static void setOrcaBasis(GtkWidget* comboBasis)
{
gint i;
if(strcmp(selectedTypeBasis, "Pople")==0)
{
listBasisView = listPopleBasisView;
listBasisReal = listPopleBasisReal;
numberOfBasis = numberOfPopleBasis;
}
else if(strcmp(selectedTypeBasis, "PopleDiffuseNonHydrogen")==0)
{
listBasisView = listPopleDiffuseNonHydrogenBasisView;
listBasisReal = listPopleDiffuseNonHydrogenBasisReal;
numberOfBasis = numberOfPopleDiffuseNonHydrogenBasis;
}
else if(strcmp(selectedTypeBasis, "PopleDiffuseAllAtoms")==0)
{
listBasisView = listPopleDiffuseAllAtomsBasisView;
listBasisReal = listPopleDiffuseAllAtomsBasisReal;
numberOfBasis = numberOfPopleDiffuseAllAtomsBasis;
}
else if(strcmp(selectedTypeBasis, "Dunning")==0)
{
listBasisView = listDunningBasisView;
listBasisReal = listDunningBasisReal;
numberOfBasis = numberOfDunningBasis;
}
else if(strcmp(selectedTypeBasis, "Ahlrichs")==0)
{
listBasisView = listAhlrichsBasisView;
listBasisReal = listAhlrichsBasisReal;
numberOfBasis = numberOfAhlrichsBasis;
}
else if(strcmp(selectedTypeBasis, "Def2Ahlrichs")==0)
{
listBasisView = listDef2AhlrichsBasisView;
listBasisReal = listDef2AhlrichsBasisReal;
numberOfBasis = numberOfDef2AhlrichsBasis;
}
else if(strcmp(selectedTypeBasis, "Jensen")==0)
{
listBasisView = listJensenBasisView;
listBasisReal = listJensenBasisReal;
numberOfBasis = numberOfJensenBasis;
}
else if(strcmp(selectedTypeBasis, "ANO")==0)
{
listBasisView = listANOBasisView;
listBasisReal = listANOBasisReal;
numberOfBasis = numberOfANOBasis;
}
else
{
listBasisView = listMiscellenousBasisView;
listBasisReal = listMiscellenousBasisReal;
numberOfBasis = numberOfMiscellenousBasis;
}
if (comboBasis && GTK_IS_COMBO_BOX(comboBasis))
{
GtkTreeModel * model = NULL;
model = gtk_combo_box_get_model(GTK_COMBO_BOX(comboBasis));
gtk_list_store_clear(GTK_LIST_STORE(model));
for(i=0;i<numberOfBasis;i++)
gtk_combo_box_append_text (GTK_COMBO_BOX (comboBasis), listBasisView[i]);
gtk_combo_box_set_active(GTK_COMBO_BOX (comboBasis), 0);
}
}
/************************************************************************************************************/
static void traitementTypeBasis (GtkComboBox *combobox, gpointer d)
{
GtkTreeIter iter;
gchar* data = NULL;
gchar* res = NULL;
gint i;
GtkWidget* comboBasis = NULL;
/* gchar* s;*/
if (gtk_combo_box_get_active_iter (combobox, &iter))
{
GtkTreeModel* model = gtk_combo_box_get_model(combobox);
gtk_tree_model_get (model, &iter, 0, &data, -1);
}
else return;
for(i=0;i<numberOfTypeBasis;i++)
{
if(strcmp((gchar*)data,listTypeBasisView[i])==0) res = listTypeBasisReal[i];
}
if(res) sprintf(selectedTypeBasis,"%s",res);
comboBasis = g_object_get_data(G_OBJECT (combobox), "ComboBasis");
if(comboBasis) setOrcaBasis(comboBasis);
}
/********************************************************************************************************/
static GtkWidget *create_list_type_basis(GtkWidget *comboBasis)
{
GtkTreeIter iter;
GtkTreeStore *store;
GtkTreeModel *model;
GtkWidget *combobox;
GtkCellRenderer *renderer;
gint i;
GtkTreeIter iter0;
store = gtk_tree_store_new (1,G_TYPE_STRING);
for(i=0;i<numberOfTypeBasis;i++)
{
gtk_tree_store_append (store, &iter, NULL);
if(i==0) iter0 = iter;
gtk_tree_store_set (store, &iter, 0, listTypeBasisView[i], -1);
}
model = GTK_TREE_MODEL (store);
combobox = gtk_combo_box_new_with_model (model);
g_object_set_data(G_OBJECT (combobox), "ComboBasis",comboBasis);
/*
gtk_combo_box_set_add_tearoffs (GTK_COMBO_BOX (combobox), TRUE);
*/
g_object_unref (model);
g_signal_connect (G_OBJECT(combobox), "changed", G_CALLBACK(traitementTypeBasis), NULL);
renderer = gtk_cell_renderer_text_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combobox), renderer, TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combobox), renderer, "text", 0, NULL);
gtk_combo_box_set_active_iter(GTK_COMBO_BOX (combobox), &iter0);
return combobox;
}
/************************************************************************************************************/
void initOrcaBasis()
{
orcaBasis.name = g_strdup("3-21G");
orcaBasis.molecule = g_strdup("$:molecule");
orcaBasis.numberOfBasisTypes=0;
orcaBasis.basisNames = NULL;
}
/************************************************************************************************************/
void freeOrcaBasis()
{
if(orcaBasis.name ) g_free(orcaBasis.name);
orcaBasis.name = NULL;
if(orcaBasis.molecule ) g_free(orcaBasis.molecule);
orcaBasis.molecule = NULL;
if(orcaBasis.basisNames)
{
gint i;
for(i=0;i<orcaBasis.numberOfBasisTypes;i++)
if(orcaBasis.basisNames[i])g_free(orcaBasis.basisNames[i]);
if(orcaBasis.basisNames)g_free(orcaBasis.basisNames);
}
orcaBasis.numberOfBasisTypes=0;
orcaBasis.basisNames = NULL;
}
/************************************************************************************************************/
static void changedEntryBasis(GtkWidget *entry, gpointer data)
{
G_CONST_RETURN gchar* entryText = NULL;
gchar* res = NULL;
gint i;
if(!GTK_IS_WIDGET(entry)) return;
entryText = gtk_entry_get_text(GTK_ENTRY(entry));
if(strlen(entryText)<1)return;
if(orcaBasis.name) g_free(orcaBasis.name);
for(i=0;i<numberOfBasis;i++)
{
if(strcmp((gchar*)entryText,listBasisView[i])==0) res = listBasisReal[i];
}
if(res) orcaBasis.name=g_strdup(res);
}
/************************************************************************************************************/
static void changedEntryAuxBasis(GtkWidget *entry, gpointer data)
{
G_CONST_RETURN gchar* entryText = NULL;
gint i;
gchar* res = NULL;
if(!GTK_IS_WIDGET(entry)) return;
entryText = gtk_entry_get_text(GTK_ENTRY(entry));
if(strlen(entryText)<1)return;
if(orcaMolecule.auxBasisName) g_free(orcaMolecule.auxBasisName);
for(i=0;i<numberOfAuxBasis;i++)
{
if(strcmp((gchar*)entryText,listAuxBasisView[i])==0) res = listAuxBasisReal[i];
}
if(res) orcaMolecule.auxBasisName=g_strdup(res);
}
/***********************************************************************************************/
static GtkWidget* addComboListToATable(GtkWidget* table,
gchar** list, gint nlist, gint i, gint j, gint k)
{
GtkWidget *entry = NULL;
GtkWidget *combo = NULL;
combo = create_combo_box_entry(list, nlist, TRUE, -1, -1);
gtk_table_attach(GTK_TABLE(table),combo,j,j+k,i,i+1,
(GtkAttachOptions) (GTK_FILL | GTK_EXPAND),
(GtkAttachOptions) (GTK_FILL | GTK_EXPAND),
3,3);
entry = GTK_BIN (combo)->child;
g_object_set_data(G_OBJECT (entry), "Combo",combo);
return entry;
}
/***********************************************************************************************/
void addOrcaTypeBasisToTable(GtkWidget *table, gint i, GtkWidget* comboBasis)
{
GtkWidget* combo = NULL;
add_label_table(table,_("Type"),(gushort)i,0);
add_label_table(table,":",(gushort)i,1);
combo = create_list_type_basis(comboBasis);
gtk_table_attach(GTK_TABLE(table),combo,2,2+1,i,i+1,
(GtkAttachOptions) (GTK_FILL | GTK_EXPAND),
(GtkAttachOptions) (GTK_FILL | GTK_EXPAND),
3,3);
}
/***********************************************************************************************/
GtkWidget* addOrcaBasisToTable(GtkWidget *table, gint i)
{
GtkWidget* entryBasis = NULL;
GtkWidget* comboBasis = NULL;
gint nlistBasis = 1;
gchar* listBasis[] = {" "};
add_label_table(table,_("Basis"),(gushort)i,0);
add_label_table(table,":",(gushort)i,1);
entryBasis = addComboListToATable(table, listBasis, nlistBasis, i, 2, 1);
comboBasis = g_object_get_data(G_OBJECT (entryBasis), "Combo");
gtk_widget_set_sensitive(entryBasis, TRUE);
gtk_editable_set_editable(GTK_EDITABLE(entryBasis),FALSE);
g_signal_connect(G_OBJECT(entryBasis),"changed", G_CALLBACK(changedEntryBasis),NULL);
return comboBasis;
}
/***********************************************************************************************/
void addOrcaAuxBasisToTable(GtkWidget *table, gint i, GtkWidget* comboMethod, GtkWidget* comboExcited)
{
GtkWidget* entryAuxBasis = NULL;
GtkWidget* comboAuxBasis = NULL;
GtkWidget* label = NULL;
label = add_label_table(table,_("Auxiliary basis"),(gushort)i,0);
if(comboMethod) g_object_set_data(G_OBJECT (comboMethod), "LabelAuxBasis1", label);
if(comboExcited) g_object_set_data(G_OBJECT (comboExcited), "LabelAuxBasis1", label);
label = add_label_table(table,":",(gushort)i,1);
if(comboMethod) g_object_set_data(G_OBJECT (comboMethod), "LabelAuxBasis2", label);
if(comboExcited) g_object_set_data(G_OBJECT (comboExcited), "LabelAuxBasis2", label);
entryAuxBasis = addComboListToATable(table, listAuxBasisView, numberOfAuxBasis, i, 2, 1);
comboAuxBasis = g_object_get_data(G_OBJECT (entryAuxBasis), "Combo");
gtk_widget_set_sensitive(entryAuxBasis, TRUE);
gtk_editable_set_editable(GTK_EDITABLE(entryAuxBasis),FALSE);
if(comboMethod) g_object_set_data(G_OBJECT (comboMethod), "ComboAuxBasis", comboAuxBasis);
if(comboExcited) g_object_set_data(G_OBJECT (comboExcited), "ComboAuxBasis", comboAuxBasis);
g_signal_connect(G_OBJECT(entryAuxBasis),"changed", G_CALLBACK(changedEntryAuxBasis),NULL);
orcaMolecule.auxBasisName=g_strdup(listAuxBasisReal[0]);
}
/***********************************************************************************************/
static void putOrcaBasisInTextEditor()
{
gchar buffer[BSIZE];
sprintf(buffer," %s ",orcaBasis.name);
gabedit_text_insert (GABEDIT_TEXT(text), NULL, NULL, NULL, buffer, -1);
}
/***********************************************************************************************/
void putOrcaAuxBasisInTextEditor()
{
gchar buffer[BSIZE];
if(!orcaMolecule.auxBasisName) return;
sprintf(buffer," %s",orcaMolecule.auxBasisName);
gabedit_text_insert (GABEDIT_TEXT(text), NULL, NULL, NULL, buffer, -1);
}
/***********************************************************************************************/
void putOrcaBasisInfoInTextEditor()
{
putOrcaBasisInTextEditor();
}
|