Skip to content

Commit 1eadfb3

Browse files
authored
Merge pull request #607 from dyzheng/ABACUS_2.2.0_beta
refactor: Keep the style consistent ---- remove #pragma once
2 parents 7d59508 + ced8ebe commit 1eadfb3

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

source/src_external/src_test/print_tmp.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef PRINT_TMP_H
2+
#define PRINT_TMP_H
23

34
#include<iostream>
45
#include<fstream>
@@ -42,4 +43,6 @@ void print_matrixess(const std::map<size_t,std::map<size_t,std::map<Abfs::Vector
4243
ofs<<c1.first<<"\t"<<c2.first<<"\t"<<c3.first<<std::endl;
4344
c3.second->print(ofs, 1E-10)<<std::endl;
4445
}
45-
}
46+
}
47+
48+
#endif

source/src_external/src_test/src_global/element_basis_index-test.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// DATE : 2016-06-02
44
//==========================================================
55

6-
#pragma once
7-
6+
#ifndef ELEMENT_BASIS_INDEX_TEST_H
7+
#define ELEMENT_BASIS_INDEX_TEST_H
88

99
#include <iostream>
1010
using namespace std;
@@ -41,4 +41,6 @@ static std::ostream & operator << (std::ostream & os, const ModuleBase::Element_
4141
}
4242
}
4343
return os;
44-
}
44+
}
45+
46+
#endif

0 commit comments

Comments
 (0)