Skip to content

Commit

Permalink
added braces
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvt committed Jan 27, 2018
1 parent 710ecd7 commit 8e1f26a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions psi4/src/psi4/ccresponse/polar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,14 @@ void polar(void) {
trace[i] = tensor[i][0][0] + tensor[i][1][1] + tensor[i][2][2];
outfile->Printf("\n\talpha_(%5.3f) = %20.12f a.u.\n", params.omega[i], trace[i] / 3.0);

std::string omega_nm_rd;
if (params.omega[i] == 0.0)
std::string omega_nm_rd;
if (params.omega[i] == 0.0) {
omega_nm_rd = "INF ";
else
}
else {
/* make sure omega in nm is rounded */
omega_nm_rd = std::to_string(std::lround(omega_nm));

}
if (params.wfn == "CC2") {
std::stringstream tag;
tag << "CC2 DIPOLE POLARIZABILITY @ " << omega_nm_rd << "NM";
Expand Down

0 comments on commit 8e1f26a

Please sign in to comment.