Commit ee5f852
authored
Symmetry: debug and new features (#1904)
* add a new atom_ordering algorithm in module symmetry
* fix wrong transpose
* add mat_rotate to ibrav=4,12,13 according to euler angles
* fix a gtrans=0 bug
* add space group analysis
* change euler angles according to their defination
* delete the duplicated call of point-group functions
* rotate the matrix back in k-space
* revert the transpose in force_symmetry
* remove unused gmatrix_fft
* revert to transpose with a special transpose for 60-hexagonal in mat_rotate
* fix a typo
* revert the double-call with more detailed output
* reverte back-rotation
* output bravais and point group analysis for input configuration
* simplify some variables
* add gmat_con and gtrans_con to bring optimized-symm into input config
* fix unset-newpos bug
* fix inverted-sign bug of gtrans
* implement rhog_symm and invmap
* add some unittests for trans-funcs in module_symmetry
* **implement rhog_symmetry both parallel and serial**
* fix some bugs
* modify the parallel of rhog_symmetry
* add round option in gmatrix_convert
* divide the phase factor back to fix space-group bug
* modify UT; divide gmatrix_convet_int from gmatrix_convert
* checksym: add gtrans firstly and then check_boundary
* add an imcomplete pricell
* complete pricell
* fix pricell bugs
* modify algorithm in pricell but still have bug
* fix a gtrans-missing bug in checksym
* modify pcell-lattice-vector-searching algorithm
* fix a bug: change 0-init into -1-init
* use pricell onto rhog_symmetry
* add get_shortest_latvec
* extract get_optlat as a subfunction from lattice_type
* add plat_type
* call the get_shortest_latvec and plat_type
* modify plat-algorithm and deal with collineation
* pricell: exclude collinear and coplane when searching b1b2b3
* pcell in rhosym: fix a nan-bug resulting from zero mean-gphase
* fix a compile error
* pricell: fix the condition searching jplane and iplane
* pricel in rhosym: add the missing ncell-division back
* comment out some couts
* pricell: fix collinear-condition
* rhosym: modify rotation
* add a space to output for convenient grep
* setgroup: change r2yp into r2zp in ibrav=12, fitting to mat_rotate
* setgroup: modify cel_const and use mat_rotate in ibrav=11
* improve cel_const for ibrav=12, 13
* standard_lat: strengthen conditions to ibrav-setting and remove mat_rotate
* remove redundant output and fix zero-celconst for triclinc
* convert ptrans to input configuration
* use a new rotate_recip without scaling gmatrix by the number of FFT-grids
* retain s1, s2, s3 as input lat-vec
* delete a exclamation mark
* restrict kvec_d into [0, 1)
* rhogsym: deal with error in gphase
* fix unittest
* fix a type error
* remove cel_const dependence from setgroup
* ibzkpt: use kgmatrix and row-vector-rotate (vec*mat)
* move the output out of lattice_type function
* symmetry: change some function into const and remove some useless code
* fix the dependence of the test
* fix fco-wrong-kgmatrix by changing the condition to modify optlat
* ibzkpt: add group-analysis in reciprocal and k-lattice, check and restrict kpoints
* pricell: add hermite_normal_form and remove plat_type
* fix the include in symmetry_rhog
* modify result.ref of some scf cases
* fix result.ref
* fix ibz_kpoint in unit tests
* set OMP_NUM_THREADS=1 in test workflow
* set scf_nmax=8 in case 121_PW_KPAR
* fix a MPI_Send bug sending to other pools (local to local, rather than global)
* rewrite and fix KPAR-bug
* do rhog_symmetry respectively in each pool
* Revert "set OMP_NUM_THREADS=1 in test workflow"
This reverts commit c4719b6.
* Revert "set scf_nmax=8 in case 121_PW_KPAR"
This reverts commit a1305d2.
* fix Makefile
* clear ptrans befor every ion step
* modify result.ref
* add unittest to atom_ordering_new
* use EXPECT_LE
* delete some useless comments
* add introduction to unit test1 parent 5fe7471 commit ee5f852
File tree
46 files changed
+1768
-580
lines changed- source
- module_cell
- module_symmetry
- test
- test
- module_elecstate
- module_charge
- test
- module_esolver
- module_hamilt_pw/hamilt_pwdft
- module_pw
- tests/integrate
- 101_PW_15_lowz
- 101_PW_15_pseudopots_LibxcLDA
- 107_PW_outWfcPw
- 107_PW_outWfcR
- 108_PW_RE
- 110_PW_SY
- 111_PW_S2_elec_add
- 111_PW_elec_add
- 121_PW_KPAR
- 184_PW_BNDKPAR_SDFT_ALL
- 184_PW_BNDKPAR_SDFT_MALL
- 201_NO_15_pseudopots
- 201_NO_KP_15_CF_CS_Si
- 203_NO_bspline
- 205_NO_FD_smearing
- 205_NO_GA_smearing
- 205_NO_MV_smearing
- 211_NO_S2_elec_add
- 211_NO_elec_add
- 301_NO_GO_15_CF_CS
- 304_NO_GO_FM
- 304_NO_GO_ocp
- 308_NO_GO_CF_RE
- 308_NO_GO_RE_MB
- 601_NO_TDDFT_CO_occ
- 601_NO_TDDFT_CO
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+1768
-580
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
551 | 562 | | |
552 | 563 | | |
553 | 564 | | |
| |||
561 | 572 | | |
562 | 573 | | |
563 | 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 | + | |
564 | 625 | | |
565 | 626 | | |
566 | 627 | | |
567 | | - | |
| 628 | + | |
568 | 629 | | |
569 | 630 | | |
570 | 631 | | |
571 | | - | |
| 632 | + | |
572 | 633 | | |
573 | 634 | | |
574 | 635 | | |
575 | 636 | | |
576 | 637 | | |
577 | 638 | | |
578 | | - | |
| 639 | + | |
579 | 640 | | |
580 | 641 | | |
581 | 642 | | |
| |||
591 | 652 | | |
592 | 653 | | |
593 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
594 | 662 | | |
595 | 663 | | |
596 | 664 | | |
| |||
604 | 672 | | |
605 | 673 | | |
606 | 674 | | |
| 675 | + | |
607 | 676 | | |
608 | 677 | | |
609 | 678 | | |
610 | 679 | | |
611 | 680 | | |
612 | 681 | | |
613 | | - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
614 | 696 | | |
615 | 697 | | |
616 | 698 | | |
617 | 699 | | |
618 | 700 | | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
619 | 704 | | |
620 | 705 | | |
621 | 706 | | |
| |||
631 | 716 | | |
632 | 717 | | |
633 | 718 | | |
634 | | - | |
635 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
636 | 722 | | |
637 | | - | |
638 | | - | |
639 | | - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
640 | 726 | | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
641 | 733 | | |
642 | 734 | | |
643 | 735 | | |
| |||
708 | 800 | | |
709 | 801 | | |
710 | 802 | | |
| 803 | + | |
711 | 804 | | |
712 | 805 | | |
713 | 806 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments