File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/green/dielectric_profile Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class OneLayerErf
6565 * \param[in] point where to evaluate the derivative
6666 */
6767 double derivative (double point) const {
68- double factor = (epsilon1_ - epsilon2_ ) / (width_ * std::sqrt (M_PI));
68+ double factor = (epsilon2_ - epsilon1_ ) / (width_ * std::sqrt (M_PI));
6969 double t = (point - center_) / width_;
7070 double val = std::exp (-std::pow (t, 2 ));
7171 return (factor * val); // first derivative of epsilon(r)
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class OneLayerTanh
6464 * \param[in] point where to evaluate the derivative
6565 */
6666 double derivative (double point) const {
67- double factor = (epsilon1_ - epsilon2_ ) / (2.0 * width_);
67+ double factor = (epsilon2_ - epsilon1_ ) / (2.0 * width_);
6868 double tanh_r = std::tanh ((point - center_) / width_);
6969 return (factor * (1 - std::pow (tanh_r, 2 ))); // first derivative of epsilon(r)
7070 }
You can’t perform that action at this time.
0 commit comments