Skip to content

Commit c6b8458

Browse files
committed
add lbfgs
1 parent e2ada07 commit c6b8458

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/module_relax/relax_old/bfgs.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ void BFGS::relax_step(const ModuleBase::matrix& _force,UnitCell& ucell)
4343
force[i][j]=_force(i,j)*ModuleBase::Ry_to_eV/ModuleBase::BOHR_TO_A;
4444
}
4545
}
46-
/*std::cout<<"force"<<std::endl;
46+
std::cout<<"force"<<std::endl;
4747
for(int i=0;i<size;i++)
4848
{
4949
for(int j=0;j<3;j++)
5050
{
5151
std::cout<<force[i][j]<<' ';
5252
}
5353
std::cout<<std::endl;
54-
}*/
54+
}
5555

5656
int k=0;
5757
for(int i=0;i<ucell.ntype;i++)
@@ -102,8 +102,8 @@ void BFGS::relax_step(const ModuleBase::matrix& _force,UnitCell& ucell)
102102
std::cout<<dpos[i][j]<<' ';
103103
}
104104
std::cout<<std::endl;
105-
}
106-
std::cout<<"pos"<<std::endl;
105+
}*/
106+
/*std::cout<<"pos"<<std::endl;
107107
for(int i=0;i<size;i++)
108108
{
109109
for(int j=0;j<3;j++)

0 commit comments

Comments
 (0)