Skip to content

Commit

Permalink
Merge pull request #2 from deepmodeling/master
Browse files Browse the repository at this point in the history
pull new developments in deep modeling to this version
  • Loading branch information
mohanchen authored May 1, 2021
2 parents fe63348 + b794117 commit 9779b65
Show file tree
Hide file tree
Showing 7 changed files with 274 additions and 477 deletions.
338 changes: 169 additions & 169 deletions ABACUS.develop/examples/H2O-deepks-lcao/jle.orb

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions ABACUS.develop/source/src_global/matrix3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ Matrix3::Matrix3(const double &r11, const double &r12, const double &r13,
e31 = r31;e32 = r32;e33 = r33;
}

void Matrix3::Reset(void)
{
e11 = 1;e12 = 0;e13 = 0;
e21 = 0;e22 = 1;e23 = 0;
e31 = 0;e32 = 0;e33 = 1;
}

void Matrix3::Identity(void)
{
e11 = 1;e12 = 0;e13 = 0;
Expand Down
10 changes: 5 additions & 5 deletions ABACUS.develop/source/src_global/matrix3.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class Matrix3
double e11, e12, e13, e21, e22, e23, e31, e32, e33;

/* Constructors and destructor */
Matrix3(const double &r11 = 1,const double &r12 = 0,const double &r13 = 0,
const double &r21 = 0,const double &r22 = 1,const double &r23 = 0,
const double &r31 = 0,const double &r32 = 0,const double &r33 = 1);
Matrix3(){ Identity(); }
Matrix3(const double &r11,const double &r12,const double &r13,
const double &r21,const double &r22,const double &r23,
const double &r31,const double &r32,const double &r33);

void Reset(void);
void Identity(void);
void Zero(void);
double Det(void) const ;
Expand All @@ -46,7 +46,7 @@ Matrix3 operator -(const Matrix3 &m1, const Matrix3 &m2); //m1-m2
Matrix3 operator /(const Matrix3 &m,const double &s); //m/s
Matrix3 operator *(const Matrix3 &m1,const Matrix3 &m2); //m1*m2
Matrix3 operator *(const Matrix3 &m,const double &s); //m*s
Matrix3 operator *(double &s, const Matrix3 &m); //s*m
Matrix3 operator *(const double &s, const Matrix3 &m); //s*m
template<typename T> Vector3<double> operator *(const Matrix3 &m, const Vector3<T> &u); //m*u // Peize Lin change Vector3<T> 2017-01-10
template<typename T> Vector3<double> operator *(const Vector3<T> &u, const Matrix3 &m); //u*m // Peize Lin change Vector3<T> 2017-01-10

Expand Down
4 changes: 2 additions & 2 deletions ABACUS.develop/source/src_io/bessel_basis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ void Bessel_Basis::init_TableOne(

//caoyu add 2021-3-10
//=========output .orb format=============
ofs << setiosflags(ios::right) << setw(20) << "L" << setw(20) << "N" << endl;
ofs << setiosflags(ios::right) << setw(20) << l << setw(20) << ie << endl;
ofs << setiosflags(ios::right) << setw(20) << "Type"<< setw(20) << "L" << setw(20) << "N" << endl;
ofs << setiosflags(ios::right) << setw(20) << "0"<< setw(20) << l << setw(20) << ie << endl;
for (int ir = 0; ir < rmesh; ir++)
{
ofs << setiosflags(ios::scientific)
Expand Down
Loading

0 comments on commit 9779b65

Please sign in to comment.