Skip to content

Commit

Permalink
Avoid some compilers to warn the usage of std::pow(int, int)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttadano committed Apr 15, 2015
1 parent 859fcec commit 1830c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anphon/phonon_dos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,13 @@ void Dos::calc_total_scattering_phase_space(double **omega, const int smearing_m
sps_sum1 += multi * sps_tmp1;
sps_sum2 += multi * sps_tmp2;

ret_mode[ik][is] = (sps_tmp1 + 2.0 * sps_tmp2) / (3.0 * static_cast<double>(std::pow(ns,3)));
ret_mode[ik][is] = (sps_tmp1 + 2.0 * sps_tmp2) / (3.0 * static_cast<double>(std::pow(ns,3.0)));
}
}

memory->deallocate(kmap_identity);

ret = (sps_sum1 + 2.0 * sps_sum2) / (3.0 * static_cast<double>(std::pow(ns, 3)));
ret = (sps_sum1 + 2.0 * sps_sum2) / (3.0 * static_cast<double>(std::pow(ns, 3.0)));

if (mympi->my_rank == 0) {
std::cout << "done." << std::endl;
Expand Down

0 comments on commit 1830c82

Please sign in to comment.