Skip to content

Commit

Permalink
Add warning regarding missing partitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Jan 28, 2025
1 parent f1d147f commit 871410c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/mapping-tester/preparemeshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def main(argv):
print('Warning: outdir "{}" already exisits.'.format(outdir))
meshdir = os.path.join(outdir, "meshes")
function = setup["general"]["function"]
if "partitioning" not in setup["general"]:
print(
"You haven't specified a partitioning algorihm in the general section of the setup.json. This defaults to meshfree, which uses a non-deterministic k-means clusterting. Partitionings will be non-reproducible."
)
algorithm = setup["general"].get("partitioning", "meshfree")

partitions = set(
Expand Down

0 comments on commit 871410c

Please sign in to comment.