Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/ttadano/alamode.git
Browse files Browse the repository at this point in the history
  • Loading branch information
ttadano committed Jun 14, 2017
2 parents 42e22e7 + 982bce9 commit 64d4c58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions anphon/phonon_dos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ void Dos::calc_total_scattering_phase_space(double **omega,
sps_sum1 += multi * sps_tmp1;
sps_sum2 += multi * sps_tmp2;

ret_mode[ik][is][0] = sps_tmp2;
ret_mode[ik][is][1] = sps_tmp1;
ret_mode[ik][is][0] = sps_tmp1;
ret_mode[ik][is][1] = sps_tmp2;
}
}

Expand Down
7 changes: 4 additions & 3 deletions anphon/relaxation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ void Relaxation::perform_mode_analysis()
std::string file_V3;
std::ofstream ofs_V3;

int ik_irred;
int ik_irred, multi;
unsigned int nk_size;
unsigned int ib, is, js, k1, k2;
std::vector<KsListGroup> triplet;
Expand Down Expand Up @@ -1487,10 +1487,10 @@ void Relaxation::perform_mode_analysis()
ofs_V3 << "# Frequency = " << writes->in_kayser(omega) << std::endl;
ofs_V3 << "## Matrix elements |V3|^2 for given mode" << std::endl;
ofs_V3 << "## q', j', omega(q'j') (cm^-1), q'', j'', ";
ofs_V3 << "omega(q''j'') (cm^-1), |V3(-qj,q'j',q''j'')| (cm^-2)" << std::endl;
ofs_V3 << "omega(q''j'') (cm^-1), |V3(-qj,q'j',q''j'')|^2 (cm^-2), multiplicity" << std::endl;

for (j = 0; j < nk_size; ++j) {

multi = static_cast<double>(triplet[j].group.size());
k1 = triplet[j].group[0].ks[0];
k2 = triplet[j].group[0].ks[1];

Expand All @@ -1505,6 +1505,7 @@ void Relaxation::perform_mode_analysis()
ofs_V3 << std::setw(15)
<< writes->in_kayser(dynamical->eval_phonon[k2][js]);
ofs_V3 << std::setw(15) << v3norm[j][ib];
ofs_V3 << std::setw(5) << multi;
ofs_V3 << std::endl;

++ib;
Expand Down

0 comments on commit 64d4c58

Please sign in to comment.