Skip to content

Commit 5300f54

Browse files
authored
Merge branch 'develop' into modularize_15
2 parents 88f1c31 + 7edc682 commit 5300f54

File tree

22 files changed

+500
-383
lines changed

22 files changed

+500
-383
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [symmetry](#symmetry)
99
- [symmetry\_prec](#symmetry_prec)
1010
- [symmetry\_autoclose](#symmetry_autoclose)
11+
- [cal_symm_repr](#cal_symm_repr)
1112
- [kpar](#kpar)
1213
- [bndpar](#bndpar)
1314
- [latname](#latname)
@@ -562,6 +563,11 @@ These variables are used to control general system parameters.
562563
- True: automatically set symmetry to 0 and continue running without symmetry analysis
563564
- **Default**: True
564565

566+
### cal_symm_repr
567+
- **Type**: Integer [Integer]\(optional\)
568+
- **Description**: Whether to print the matrix representation of symmetry operation to running log file. If the first value is given as 1, then all matrix representations will be printed. The second optional parameter controls the precision (number of digits) to print, default is 3, which is enough for a quick check.
569+
- **Default**: 1 3
570+
565571
### kpar
566572

567573
- **Type**: Integer

source/source_cell/k_vector_utils.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,9 @@ void kvec_ibz_kpoint(K_Vectors& kv,
486486
ucell.atoms,
487487
false,
488488
nullptr);
489-
ModuleBase::Matrix3 b_optlat_new(recip_vec1.x,
490-
recip_vec1.y,
491-
recip_vec1.z,
492-
recip_vec2.x,
493-
recip_vec2.y,
494-
recip_vec2.z,
495-
recip_vec3.x,
496-
recip_vec3.y,
497-
recip_vec3.z);
489+
ModuleBase::Matrix3 b_optlat_new(recip_vec1.x, recip_vec1.y, recip_vec1.z,
490+
recip_vec2.x, recip_vec2.y, recip_vec2.z,
491+
recip_vec3.x, recip_vec3.y, recip_vec3.z);
498492
// set the crystal point-group symmetry operation
499493
symm.setgroup(bsymop, bnop, recip_brav_type);
500494
// transform the above symmetric operation matrices between different coordinate

0 commit comments

Comments
 (0)