@@ -30,7 +30,7 @@ contains
3030 !> The subroutine initializes the MPI execution environment
3131 !! and queries both the number of processors which will be
3232 !! available for the job and the local processor rank.
33- subroutine s_mpi_initialize ! ----------------------------------------
33+ subroutine s_mpi_initialize
3434
3535#ifndef MFC_MPI
3636
@@ -58,9 +58,11 @@ contains
5858
5959#endif
6060
61- end subroutine s_mpi_initialize ! --------------------------------------
61+ end subroutine s_mpi_initialize
6262
63- subroutine s_initialize_mpi_data(q_cons_vf, ib_markers) ! --------------------------
63+ !! @param q_cons_vf Conservative variables
64+ !! @param ib_markers track if a cell is within the immersed boundary
65+ subroutine s_initialize_mpi_data(q_cons_vf, ib_markers)
6466
6567 type(scalar_field), &
6668 dimension(sys_size), &
@@ -188,7 +190,7 @@ contains
188190
189191#endif
190192
191- end subroutine s_initialize_mpi_data ! ---------------------------------
193+ end subroutine s_initialize_mpi_data
192194
193195 subroutine mpi_bcast_time_step_values(proc_time, time_avg)
194196
@@ -217,7 +219,7 @@ contains
217219 !! @param icfl_max_glb Global maximum ICFL stability criterion
218220 !! @param vcfl_max_glb Global maximum VCFL stability criterion
219221 !! @param Rc_min_glb Global minimum Rc stability criterion
220- subroutine s_mpi_reduce_stability_criteria_extrema(icfl_max_loc, & ! --
222+ subroutine s_mpi_reduce_stability_criteria_extrema(icfl_max_loc, &
221223 vcfl_max_loc, &
222224 ccfl_max_loc, &
223225 Rc_min_loc, &
@@ -257,7 +259,7 @@ contains
257259#endif
258260#endif
259261
260- end subroutine s_mpi_reduce_stability_criteria_extrema ! ---------------
262+ end subroutine s_mpi_reduce_stability_criteria_extrema
261263
262264 !> The following subroutine takes the input local variable
263265 !! from all processors and reduces to the sum of all
@@ -266,7 +268,7 @@ contains
266268 !! @param var_loc Some variable containing the local value which should be
267269 !! reduced amongst all the processors in the communicator.
268270 !! @param var_glb The globally reduced value
269- subroutine s_mpi_allreduce_sum(var_loc, var_glb) ! ---------------------
271+ subroutine s_mpi_allreduce_sum(var_loc, var_glb)
270272
271273 real(kind(0d0)), intent(in) :: var_loc
272274 real(kind(0d0)), intent(out) :: var_glb
@@ -279,7 +281,7 @@ contains
279281
280282#endif
281283
282- end subroutine s_mpi_allreduce_sum ! -----------------------------------
284+ end subroutine s_mpi_allreduce_sum
283285
284286 !> The following subroutine takes the input local variable
285287 !! from all processors and reduces to the minimum of all
@@ -288,7 +290,7 @@ contains
288290 !! @param var_loc Some variable containing the local value which should be
289291 !! reduced amongst all the processors in the communicator.
290292 !! @param var_glb The globally reduced value
291- subroutine s_mpi_allreduce_min(var_loc, var_glb) ! ---------------------
293+ subroutine s_mpi_allreduce_min(var_loc, var_glb)
292294
293295 real(kind(0d0)), intent(in) :: var_loc
294296 real(kind(0d0)), intent(out) :: var_glb
@@ -301,7 +303,7 @@ contains
301303
302304#endif
303305
304- end subroutine s_mpi_allreduce_min ! -----------------------------------
306+ end subroutine s_mpi_allreduce_min
305307
306308 !> The following subroutine takes the input local variable
307309 !! from all processors and reduces to the maximum of all
@@ -310,7 +312,7 @@ contains
310312 !! @param var_loc Some variable containing the local value which should be
311313 !! reduced amongst all the processors in the communicator.
312314 !! @param var_glb The globally reduced value
313- subroutine s_mpi_allreduce_max(var_loc, var_glb) ! ---------------------
315+ subroutine s_mpi_allreduce_max(var_loc, var_glb)
314316
315317 real(kind(0d0)), intent(in) :: var_loc
316318 real(kind(0d0)), intent(out) :: var_glb
@@ -323,15 +325,15 @@ contains
323325
324326#endif
325327
326- end subroutine s_mpi_allreduce_max ! -----------------------------------
328+ end subroutine s_mpi_allreduce_max
327329
328330 !> The following subroutine takes the inputted variable and
329331 !! determines its minimum value on the entire computational
330332 !! domain. The result is stored back into inputted variable.
331333 !! @param var_loc holds the local value to be reduced among
332334 !! all the processors in communicator. On output, the variable holds
333335 !! the minimum value, reduced amongst all of the local values.
334- subroutine s_mpi_reduce_min(var_loc) ! ---------------------------------
336+ subroutine s_mpi_reduce_min(var_loc)
335337
336338 real(kind(0d0)), intent(inout) :: var_loc
337339
@@ -352,7 +354,7 @@ contains
352354
353355#endif
354356
355- end subroutine s_mpi_reduce_min ! --------------------------------------
357+ end subroutine s_mpi_reduce_min
356358
357359 !> The following subroutine takes the first element of the
358360 !! 2-element inputted variable and determines its maximum
@@ -366,7 +368,7 @@ contains
366368 !! On output, this variable holds the maximum value, reduced amongst
367369 !! all of the local values, and the process rank to which the value
368370 !! belongs.
369- subroutine s_mpi_reduce_maxloc(var_loc) ! ------------------------------
371+ subroutine s_mpi_reduce_maxloc(var_loc)
370372
371373 real(kind(0d0)), dimension(2), intent(inout) :: var_loc
372374
@@ -388,10 +390,11 @@ contains
388390
389391#endif
390392
391- end subroutine s_mpi_reduce_maxloc ! -----------------------------------
393+ end subroutine s_mpi_reduce_maxloc
392394
393395 !> The subroutine terminates the MPI execution environment.
394- subroutine s_mpi_abort(prnt) ! ---------------------------------------------
396+ !! @param prnt error message to be printed
397+ subroutine s_mpi_abort(prnt)
395398
396399 character(len=*), intent(in), optional :: prnt
397400
@@ -412,10 +415,10 @@ contains
412415
413416#endif
414417
415- end subroutine s_mpi_abort ! -------------------------------------------
418+ end subroutine s_mpi_abort
416419
417420 !>Halts all processes until all have reached barrier.
418- subroutine s_mpi_barrier ! -------------------------------------------
421+ subroutine s_mpi_barrier
419422
420423#ifdef MFC_MPI
421424
@@ -424,10 +427,10 @@ contains
424427
425428#endif
426429
427- end subroutine s_mpi_barrier ! -----------------------------------------
430+ end subroutine s_mpi_barrier
428431
429432 !> The subroutine finalizes the MPI execution environment.
430- subroutine s_mpi_finalize ! ------------------------------------------
433+ subroutine s_mpi_finalize
431434
432435#ifdef MFC_MPI
433436
@@ -436,6 +439,6 @@ contains
436439
437440#endif
438441
439- end subroutine s_mpi_finalize ! ----------------------------------------
442+ end subroutine s_mpi_finalize
440443
441444end module m_mpi_common
0 commit comments