We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0f640c commit b4a3862Copy full SHA for b4a3862
1 file changed
src/pre_process/m_icpp_patches.fpp
@@ -1064,7 +1064,11 @@ contains
1064
do j = 0, n
1065
do i = 0, m
1066
r = sqrt((x_cc(i) - x_centroid)**2 + (y_cc(j) - y_centroid)**2)
1067
- theta = atan2(y_cc(j) - y_centroid, x_cc(i) - x_centroid)
+ if (r < small_radius) then
1068
+ theta = 0._wp
1069
+ else
1070
+ theta = atan2(y_cc(j) - y_centroid, x_cc(i) - x_centroid)
1071
+ end if
1072
sum_series = 0._wp
1073
do nn = 1, max_2d_fourier_modes
1074
sum_series = sum_series + patch_icpp(patch_id)%fourier_cos(nn)*cos(real(nn, wp)*theta) &
0 commit comments