Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
silence pfix output (#104)
Browse files Browse the repository at this point in the history
* silence pfix output when verbose=0
  • Loading branch information
keith roberts authored Oct 21, 2020
1 parent 04ffaa0 commit 96a376c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ and this project (tries to) adhere to [Semantic Versioning](https://semver.org/s

### Unreleased
- Added more examples on README
### Fixed
- Silence messages about pfix when verbose=0

### [3.0.5] - 2020-10-18

Expand Down
7 changes: 2 additions & 5 deletions SeismicMesh/generation/mesh_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ def print_msg2(msg):
DT = _select_cgal_dim(dim)

pfix, nfix = _unpack_pfix(dim, opts, comm)
if comm.rank == 0:
print_msg1("Constraining " + str(nfix) + " fixed points..")

fh, p, extents = _initialize_points(dim, geps, bbox, fh, fd, h0, opts, pfix, comm)

Expand Down Expand Up @@ -787,11 +789,6 @@ def _unpack_pfix(dim, opts, comm):
else:
pfix = np.array(opts["pfix"], dtype="d")
nfix = len(pfix)
if comm.rank == 0:
print(
"Constraining " + str(nfix) + " fixed points..",
flush=True,
)
else:
pfix = np.empty((0, dim))
nfix = 0
Expand Down

0 comments on commit 96a376c

Please sign in to comment.