You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/post_process/m_checker.fpp
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -113,17 +113,18 @@ contains
113
113
114
114
!> Checks constraints on fft_wrt
115
115
impuresubroutines_check_inputs_fft
116
-
integer::num_procs_x, num_procs_y, num_procs_z
116
+
integer:: num_procs_y, num_procs_z
117
117
118
118
@:PROHIBIT(fft_wrt .and. (n == 0.or. p == 0), "FFT WRT only in 3D")
119
119
@:PROHIBIT(fft_wrt .and. cyl_coord, "FFT WRT incompatible with cylindrical coordinates")
120
120
@:PROHIBIT(fft_wrt .and. (MOD(m_glb+1,2) == 1.or.MOD(n_glb+1,2) == 1.or.MOD(p_glb+1,2) == 1), "FFT WRT requires global dimensions divisible by 2")
121
-
num_procs_x = (m_glb +1)/(m +1)
121
+
@:PROHIBIT(fft_wrt .and.MOD(n_glb+1,n+1) /=0, "FFT WRT requires n_glb to be divisble by num_procs_y")
122
+
@:PROHIBIT(fft_wrt .and.MOD(p_glb+1,p+1) /=0, "FFT WRT requires p_glb to be divisble by num_procs_z")
122
123
num_procs_y = (n_glb +1)/(n +1)
123
124
num_procs_z = (p_glb +1)/(p +1)
124
-
@:PROHIBIT(fft_wrt .and.(MOD(m_glb+1,num_procs_y) /=0.or.MOD(m_glb+1,num_procs_z) /=0), "FFT WRT requires m_glb to be divisble by num_procs_y and num_procs_z")
125
-
@:PROHIBIT(fft_wrt .and.(MOD(n_glb+1,num_procs_y) /=0.or.MOD(n_glb+1,num_procs_z) /=0), "FFT WRT requires n_glb to be divisble by num_procs_y and num_procs_z")
126
-
@:PROHIBIT(fft_wrt .and. (MOD(p_glb+1,num_procs_y) /=0.or.MOD(p_glb+1,num_procs_z) /=0), "FFT WRT requires p_glb to be divisble by num_procs_y and num_procs_z")
125
+
@:PROHIBIT(fft_wrt .and.MOD(m_glb+1,num_procs_y) /=0, "FFT WRT requires m_glb to be divisble by num_procs_y")
126
+
@:PROHIBIT(fft_wrt .and.MOD(n_glb+1,num_procs_z) /=0, "FFT WRT requires n_glb to be divisble by num_procs_z")
0 commit comments