We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44760a5 commit 6e9a758Copy full SHA for 6e9a758
grudge/trace_pair.py
@@ -497,9 +497,12 @@ def cross_rank_trace_pairs(
497
num_tag = actx.comm_tag_to_mpi_tag.get(comm_tag)
498
499
if num_tag is None:
500
- raise ValueError("Encountered unknown symbolic tag "
501
- f"'{comm_tag}'. To make this symbolic tag work, "
502
- f"use 'grudge.array_context.MPIPyOpenCLArrayContext' and "
+ num_tag = hash(comm_tag)
+ from warnings import warn
+ warn("Encountered unknown symbolic tag "
503
+ f"'{comm_tag}', assigning a value of '{num_tag}'. "
504
+ "To use a different value, "
505
+ "use 'grudge.array_context.MPIPyOpenCLArrayContext' and "
506
"assign this tag a numerical value via its "
507
"comm_tag_to_mpi_tag attribute.")
508
0 commit comments