Skip to content

Commit 2c9e5bd

Browse files
author
Damian Rouson
committed
feat(lib): default to quiet output
1 parent 6b35631 commit 2c9e5bd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/data-partition-implementation.F90

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
use assertions_interface, only : assert, assertions
33
implicit none
44

5+
logical, parameter :: verbose=.false.
6+
57
contains
68

79
module procedure define_partitions
@@ -57,8 +59,10 @@ pure function overflow(im, excess) result(extra_datum)
5759
if (present(dim)) call assert (dim==1, "dimensioned partitioned == 1")
5860

5961
associate( me => this_image() )
60-
write(6,*) 'gather_real_1D_array(): executing on image', me
61-
flush(6)
62+
if (verbose) then
63+
write(6,*) 'gather_real_1D_array(): executing on image', me
64+
flush(6)
65+
end if
6266
associate( first=>first(me), last=>last(me) )
6367
if (.not. present(result_image)) then
6468
a(1:first-1) = 0.
@@ -92,8 +96,10 @@ pure function overflow(im, excess) result(extra_datum)
9296
end if
9397

9498
associate( me => this_image() )
95-
write(6,*) 'gather_real_2D_array(): executing on image', me
96-
flush(6)
99+
if (verbose) then
100+
write(6,*) 'gather_real_2D_array(): executing on image', me
101+
flush(6)
102+
end if
97103
associate( first => first(me), last => last(me) )
98104
if (.not. present(result_image)) then
99105
select case(dim_)

0 commit comments

Comments
 (0)