Skip to content

Commit

Permalink
Move back to C++03 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
ttadano committed Jun 14, 2017
1 parent 64d4c58 commit c6b6d41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion anphon/kpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Kpoint::~Kpoint()

void Kpoint::kpoint_setups(std::string mode)
{
small_group_of_k = nullptr;
small_group_of_k = NULL;
symmetry->symmetry_flag = true;

unsigned int i, j;
Expand Down
18 changes: 9 additions & 9 deletions anphon/relaxation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ void Relaxation::prepare_relative_vector(std::vector<FcsArrayWithCell> fcs_in,
unsigned int tran_tmp;
unsigned int icount = 0;

for (std::vector<FcsArrayWithCell>::const_iterator it = fcs_in.cbegin(); it != fcs_in.cend(); ++it) {
for (std::vector<FcsArrayWithCell>::const_iterator it = fcs_in.begin(); it != fcs_in.end(); ++it) {

atm_super.clear();
atm_prim.clear();
Expand Down Expand Up @@ -316,7 +316,7 @@ void Relaxation::prepare_group_of_force_constants(std::vector<FcsArrayWithCell>
arr_old.push_back(-1);
}

for (std::vector<FcsArrayWithCell>::const_iterator it = fcs_in.cbegin(); it != fcs_in.cend(); ++it) {
for (std::vector<FcsArrayWithCell>::const_iterator it = fcs_in.begin(); it != fcs_in.end(); ++it) {

arr_tmp.clear();

Expand All @@ -341,7 +341,7 @@ void Relaxation::prepare_group_of_force_constants(std::vector<FcsArrayWithCell>
arr_old.push_back(-1);
}

for (std::vector<FcsArrayWithCell>::const_iterator it = fcs_in.cbegin(); it != fcs_in.cend(); ++it) {
for (std::vector<FcsArrayWithCell>::const_iterator it = fcs_in.begin(); it != fcs_in.end(); ++it) {

arr_tmp.clear();

Expand Down Expand Up @@ -2010,7 +2010,7 @@ void Relaxation::print_momentum_resolved_final_state(const unsigned int NT,
double omega_sum[3];
double frac;
int knum_triangle[3];
std::vector<std::vector<double>> ***kplist_conserved;
std::vector<std::vector<double> > ***kplist_conserved;
std::vector<KpointListWithCoordinate> ***kplist_for_target_mode;
std::vector<double> xk_vec;
double xk_norm[3], xk_tmp[3];
Expand Down Expand Up @@ -2149,8 +2149,8 @@ void Relaxation::print_momentum_resolved_final_state(const unsigned int NT,

// Find a list of k points which satisfy the energy conservation

for (std::vector<KpointPlaneTriangle>::const_iterator it = kpoint->kp_planes_tri[i].cbegin();
it != kpoint->kp_planes_tri[i].cend(); ++it) {
for (std::vector<KpointPlaneTriangle>::const_iterator it = kpoint->kp_planes_tri[i].begin();
it != kpoint->kp_planes_tri[i].end(); ++it) {

// K point indexes for each triangle
for (k = 0; k < 3; ++k) knum_triangle[k] = (*it).knum[k];
Expand Down Expand Up @@ -2258,7 +2258,7 @@ void Relaxation::print_momentum_resolved_final_state(const unsigned int NT,
for (is = 0; is < ns; ++is) {
for (js = 0; js < ns; ++js) {

for (std::vector<std::vector<double>>::const_iterator it2 = kplist_conserved[is][js][0].begin();
for (std::vector<std::vector<double> >::const_iterator it2 = kplist_conserved[is][js][0].begin();
it2 != kplist_conserved[is][js][0].end(); ++it2) {

for (k = 0; k < 3; ++k) {
Expand All @@ -2281,7 +2281,7 @@ void Relaxation::print_momentum_resolved_final_state(const unsigned int NT,
i, 0));
}

for (std::vector<std::vector<double>>::const_iterator it2 = kplist_conserved[is][js][1].begin();
for (std::vector<std::vector<double> >::const_iterator it2 = kplist_conserved[is][js][1].begin();
it2 != kplist_conserved[is][js][1].end(); ++it2) {

for (k = 0; k < 3; ++k) {
Expand Down Expand Up @@ -2337,7 +2337,7 @@ void Relaxation::print_momentum_resolved_final_state(const unsigned int NT,
memory->deallocate(kplist_conserved);


std::vector<std::vector<double>> **final_state_xy;
std::vector<std::vector<double> > **final_state_xy;
std::vector<double> triplet_xyG;
std::vector<int> small_group_k;
double pos_x, pos_y;
Expand Down

0 comments on commit c6b6d41

Please sign in to comment.