Skip to content

Commit

Permalink
Clean up indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Oct 20, 2022
1 parent 6a012b0 commit 87d1f5f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xfields/fieldmaps/bigaussian_src/bigaussian.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ void get_Ex_Ey_gauss(

if (fabs(sigma_x-sigma_y) < min_sigma_diff){
const double sigma = 0.5*(sigma_x+sigma_y);
if ((x*x+y*y)<1e-14){
if ((x*x+y*y)<1e-14){
Gx = 1./(8*PI*EPSILON_0*sigma*sigma);
Gy = Gx;
}
else{
Gy = Gx;
}
else{
Gx = 1/(2.*(x*x+y*y))*(y*Ey-x*Ex+1./(2*PI*EPSILON_0*sigma*sigma)
*x*x*exp(-(x*x+y*y)/(2.*sigma*sigma)));
Gy = 1./(2*(x*x+y*y))*(x*Ex-y*Ey+1./(2*PI*EPSILON_0*sigma*sigma)
*y*y*exp(-(x*x+y*y)/(2.*sigma*sigma)));
}
}
}
else{

Expand Down

0 comments on commit 87d1f5f

Please sign in to comment.