Skip to content

Commit 8768870

Browse files
committed
add log
1 parent e1a97f6 commit 8768870

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

source/module_cell/module_neighbor/sltk_atom_arrange.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,17 @@ void atom_arrange::search(const bool pbc_flag,
113113

114114
ofs_in << " " << std::setw(5) << it << std::setw(5) << ia << std::setw(8) << grid_d.getAdjacentNum() + 1
115115
<< std::endl;
116-
116+
std::cout << " adjacent atoms of " << ucell.atoms[it].label + std::to_string(ia + 1) << ":" << std::endl;
117+
std::cout << "getAdjacentNum: " << grid_d.getAdjacentNum() + 1 << std::endl;
118+
/*
117119
for (int ad = 0; ad < grid_d.getAdjacentNum() + 1; ad++)
118120
{
119121
ModuleBase::Vector3<double> tau = grid_d.getAdjacentTau(ad);
120122
ModuleBase::Vector3<int> box = grid_d.getBox(ad);
121123
std::cout << std::setw(8) << ucell.atoms[it].label + std::to_string(ia + 1) << std::setw(15)
122124
<< tau.x << " " << std::setw(15) << tau.y << " " << std::setw(15) << tau.z << " "
123125
<< std::setw(8) << box.x << std::setw(8) << box.y << std::setw(8) << box.z << std::endl;
124-
}
126+
}*/
125127
}
126128
}
127129
ofs_in << "search neighboring atoms done." << std::endl;

source/module_cell/module_neighbor/sltk_grid.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ void Grid::init(std::ofstream& ofs_in, const UnitCell& ucell, const double radiu
2626
ModuleBase::GlobalFunc::OUT(ofs_in, "Radius(unit:lat0)", sradius);
2727

2828
this->Check_Expand_Condition(ucell);
29+
ModuleBase::GlobalFunc::OUT(ofs_in, "glayer", glayerX, glayerY, glayerZ);
30+
ModuleBase::GlobalFunc::OUT(ofs_in, "glayer_minus", glayerX_minus, glayerY_minus, glayerZ_minus);
31+
2932
this->setMemberVariables(ofs_in, ucell);
3033
this->Construct_Adjacent(ucell);
3134
ModuleBase::timer::tick("atom_arrange", "grid_d.init");
@@ -137,6 +140,7 @@ void Grid::Check_Expand_Condition(const UnitCell& ucell)
137140
glayerY_minus = extend_d22;
138141
glayerZ_minus = extend_d33;
139142
// End, 2016-09-05, LiuXh
143+
140144
}
141145

142146

0 commit comments

Comments
 (0)