@@ -334,7 +334,6 @@ contains
334334 call MPI_REDUCE(Rc_min_loc, Rc_min_glb, 1 , mpi_p, MPI_MIN, 0 , MPI_COMM_WORLD, ierr)
335335 end if
336336#else
337-
338337 icfl_max_glb = icfl_max_loc
339338
340339 if (viscous) then
@@ -1046,7 +1045,6 @@ contains
10461045 end if
10471046 end do
10481047 else
1049-
10501048 if (cyl_coord .and. p > 0 ) then
10511049 ! Implement pencil processor blocking if using cylindrical coordinates so that all cells in azimuthal
10521050 ! direction are stored on a single processor. This is necessary for efficient application of Fourier filter
@@ -1080,7 +1078,6 @@ contains
10801078 end if
10811079 end do
10821080 else
1083-
10841081 ! Initial estimate of optimal processor topology
10851082 num_procs_x = 1
10861083 num_procs_y = 1
@@ -1206,7 +1203,6 @@ contains
12061203
12071204 ! 2D Cartesian Processor Topology
12081205 else
1209-
12101206 ! Initial estimate of optimal processor topology
12111207 num_procs_x = 1
12121208 num_procs_y = num_procs
@@ -1320,7 +1316,6 @@ contains
13201316
13211317 ! 1D Cartesian Processor Topology
13221318 else
1323-
13241319 ! Optimal processor topology
13251320 num_procs_x = num_procs
13261321
@@ -1428,20 +1423,17 @@ contains
14281423 call MPI_SENDRECV(dx(m - buff_size + 1 ), buff_size, mpi_p, bc_x%end, 0 , dx(- buff_size), buff_size, mpi_p, &
14291424 & bc_x%beg, 0 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14301425 else ! PBC at the beginning only
1431-
14321426 ! Send/ receive buffer to / from bc_x%beg/ bc_x%beg
14331427 call MPI_SENDRECV(dx(0 ), buff_size, mpi_p, bc_x%beg, 1 , dx(- buff_size), buff_size, mpi_p, bc_x%beg, 0 , &
14341428 & MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14351429 end if
14361430 else ! PBC at the end
1437-
14381431 if (bc_x%beg >= 0 ) then ! PBC at the end and beginning
14391432
14401433 ! Send/ receive buffer to / from bc_x%beg/ bc_x%end
14411434 call MPI_SENDRECV(dx(0 ), buff_size, mpi_p, bc_x%beg, 1 , dx(m + 1 ), buff_size, mpi_p, bc_x%end, 1 , &
14421435 & MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14431436 else ! PBC at the end only
1444-
14451437 ! Send/ receive buffer to / from bc_x%end/ bc_x%end
14461438 call MPI_SENDRECV(dx(m - buff_size + 1 ), buff_size, mpi_p, bc_x%end, 0 , dx(m + 1 ), buff_size, mpi_p, &
14471439 & bc_x%end, 1 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
@@ -1459,20 +1451,17 @@ contains
14591451 call MPI_SENDRECV(dy(n - buff_size + 1 ), buff_size, mpi_p, bc_y%end, 0 , dy(- buff_size), buff_size, mpi_p, &
14601452 & bc_y%beg, 0 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14611453 else ! PBC at the beginning only
1462-
14631454 ! Send/ receive buffer to / from bc_y%beg/ bc_y%beg
14641455 call MPI_SENDRECV(dy(0 ), buff_size, mpi_p, bc_y%beg, 1 , dy(- buff_size), buff_size, mpi_p, bc_y%beg, 0 , &
14651456 & MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14661457 end if
14671458 else ! PBC at the end
1468-
14691459 if (bc_y%beg >= 0 ) then ! PBC at the end and beginning
14701460
14711461 ! Send/ receive buffer to / from bc_y%beg/ bc_y%end
14721462 call MPI_SENDRECV(dy(0 ), buff_size, mpi_p, bc_y%beg, 1 , dy(n + 1 ), buff_size, mpi_p, bc_y%end, 1 , &
14731463 & MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14741464 else ! PBC at the end only
1475-
14761465 ! Send/ receive buffer to / from bc_y%end/ bc_y%end
14771466 call MPI_SENDRECV(dy(n - buff_size + 1 ), buff_size, mpi_p, bc_y%end, 0 , dy(n + 1 ), buff_size, mpi_p, &
14781467 & bc_y%end, 1 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
@@ -1482,7 +1471,6 @@ contains
14821471
14831472 ! MPI Communication in z- direction
14841473 else
1485-
14861474 if (pbc_loc == - 1 ) then ! PBC at the beginning
14871475
14881476 if (bc_z%end >= 0 ) then ! PBC at the beginning and end
@@ -1491,20 +1479,17 @@ contains
14911479 call MPI_SENDRECV(dz(p - buff_size + 1 ), buff_size, mpi_p, bc_z%end, 0 , dz(- buff_size), buff_size, mpi_p, &
14921480 & bc_z%beg, 0 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14931481 else ! PBC at the beginning only
1494-
14951482 ! Send/ receive buffer to / from bc_z%beg/ bc_z%beg
14961483 call MPI_SENDRECV(dz(0 ), buff_size, mpi_p, bc_z%beg, 1 , dz(- buff_size), buff_size, mpi_p, bc_z%beg, 0 , &
14971484 & MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14981485 end if
14991486 else ! PBC at the end
1500-
15011487 if (bc_z%beg >= 0 ) then ! PBC at the end and beginning
15021488
15031489 ! Send/ receive buffer to / from bc_z%beg/ bc_z%end
15041490 call MPI_SENDRECV(dz(0 ), buff_size, mpi_p, bc_z%beg, 1 , dz(p + 1 ), buff_size, mpi_p, bc_z%end, 1 , &
15051491 & MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
15061492 else ! PBC at the end only
1507-
15081493 ! Send/ receive buffer to / from bc_z%end/ bc_z%end
15091494 call MPI_SENDRECV(dz(p - buff_size + 1 ), buff_size, mpi_p, bc_z%end, 0 , dz(p + 1 ), buff_size, mpi_p, &
15101495 & bc_z%end, 1 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
0 commit comments