Skip to content

Commit

Permalink
SAXS: fixed pow
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocamilloni committed Nov 18, 2020
1 parent 383d585 commit 220b95d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/isdb/SAXS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ SAXS::SAXS(const ActionOptions&ao):
atoi[i]=i;
for(unsigned k=0; k<numq; ++k) {
for(unsigned j=0; j<parameter[i].size(); ++j) {
FF_tmp[k][i]+= parameter[i][j]*std::powl(static_cast<long double>(q_list[k]),j);
FF_tmp[k][i]+= parameter[i][j]*std::pow(static_cast<long double>(q_list[k]),j);
}
}
}
Expand All @@ -249,7 +249,7 @@ SAXS::SAXS(const ActionOptions&ao):
for(unsigned i=0; i<NMARTINI; ++i) {
for(unsigned k=0; k<numq; ++k) {
for(unsigned j=0; j<parameter[i].size(); ++j) {
FF_tmp[k][i]+= parameter[i][j]*std::powl(static_cast<long double>(q_list[k]),j);
FF_tmp[k][i]+= parameter[i][j]*std::pow(static_cast<long double>(q_list[k]),j);
}
}
}
Expand Down

1 comment on commit 220b95d

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/performance-optimization.txt
Found broken examples in automatic/a-trieste-6.txt
Found broken examples in automatic/munster.txt
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/MAZE_MEMETIC_SAMPLING.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_RANDOM_WALK.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in MiscelaneousPP.md

Please sign in to comment.