Skip to content

Commit 1e36371

Browse files
author
Damian Rouson
authored
Merge pull request #10 from sourceryinstitute/update-vegetables
Update vegetables & silence library output by default
2 parents 23d983a + eedf7a3 commit 1e36371

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ developing and testing. Earlier versions or commits might work also.
5252

5353
* Compiler: [GNU Fortran] (gfortran) 10.2.0
5454
* Parallel runtime library: [OpenCoarrays] 2.9.0
55-
* Fortran package manager: [fpm] 105644
55+
* Fortran package manager: [fpm] 7d320295c6fe56cc767b352bd26f0466aa29ac5c
5656

5757
This library also uses the [vegetables] unit testing framework, which
5858
the [fpm] build system will install automatically.

fpm.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ maintainer = "[email protected]"
66
copyright = "2020 Sourcery Institute"
77

88
[dev-dependencies]
9-
vegetables = {git = "https://gitlab.com/everythingfunctional/vegetables", tag = "v6.0.0"}
9+
vegetables = {git = "https://gitlab.com/everythingfunctional/vegetables", tag = "v6.0.1"}
1010

1111
[[test]]
1212
name="unit"

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)