This adds a connectedness constraint to the DownDipPermutationStrategy. It ensures that during rupture generation we drop any subduction ruptures that are disconnected, i.e. have a gap in them.
I have also pulled the constraints into their own DownDipConstraints file to make it easier to understand both them and the DownDipPermutationStrategy. This allowed for more focussed testing of the DownDipConstraints. Unit tests now ask directly, "does this rupture satisfy the constraint?" rather than looking at all the permutations that the DownDipPermutationStrategy generates.
If the output of the connectedness constraint is negated, then we can use it to generate a rupture set that contains exactly those disconnected ruptures that have been included in the NZSHM22 Puysegur rupture set.
I strongly suggest ignoring whitespace when looking at the changes.
Fixes #301
This adds a connectedness constraint to the
DownDipPermutationStrategy
. It ensures that during rupture generation we drop any subduction ruptures that are disconnected, i.e. have a gap in them.I have also pulled the constraints into their own
DownDipConstraints
file to make it easier to understand both them and theDownDipPermutationStrategy
. This allowed for more focussed testing of the DownDipConstraints. Unit tests now ask directly, "does this rupture satisfy the constraint?" rather than looking at all the permutations that theDownDipPermutationStrategy
generates.If the output of the connectedness constraint is negated, then we can use it to generate a rupture set that contains exactly those disconnected ruptures that have been included in the NZSHM22 Puysegur rupture set.
I strongly suggest ignoring whitespace when looking at the changes.