Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
voj committed Dec 11, 2024
1 parent da8d0ab commit 396bfe0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ public void process() throws IOException, FactoryException {
log("- joint events " + eventLoader.jointEvents.size());
log("- reconstructed joint ruptures " + events.size());

List<RsqSimEventLoader.Event> singleCrustalJointRuptures = eventLoader.makeSingleJointRuptures(events);
List<RsqSimEventLoader.Event> allSingleCrustalJointRuptures = eventLoader.makeSingleJointRuptures(events);

log("- single crustal joint ruptures " + singleCrustalJointRuptures.size());
log("- single crustal joint ruptures " + allSingleCrustalJointRuptures.size());

singleCrustalJointRuptures = singleCrustalJointRuptures.stream().filter(event ->
List<RsqSimEventLoader.Event> singleCrustalJointRuptures = allSingleCrustalJointRuptures.stream().filter(event ->
event.sections.stream()
.filter(s -> !s.getSectionName().contains("row:"))
.mapToDouble(s -> s.getArea(false))
Expand All @@ -170,7 +170,7 @@ public void process() throws IOException, FactoryException {

// List<List<PlausibilityResult>> stiffness = ruptures.parallelStream().map(r -> r.jump).map(tester::applyCoulomb).collect(Collectors.toList());
//System.out.println("passes: " +stiffness.stream().map(s -> s.get(2).isPass()).filter(p -> p).count());
List<RsqSimEventLoader.Event> passes = singleCrustalJointRuptures.parallelStream().filter(event -> tester.applyCoulomb(event.jump).get(2).isPass()).collect(Collectors.toList());
List<RsqSimEventLoader.Event> passes = allSingleCrustalJointRuptures.parallelStream().filter(event -> tester.applyCoulomb(event.jump).get(2).isPass()).collect(Collectors.toList());
log("- original filter passes: " + passes.size());

List<ClusterRupture> clusterRuptures = singleCrustalJointRuptures.stream().map(event -> ManipulatedClusterRupture.makeRupture(event.sections)).collect(Collectors.toList());
Expand Down Expand Up @@ -201,7 +201,7 @@ public static void processCanterbury() throws IOException, FactoryException {
}

public static void main(String[] args) throws FactoryException, IOException {
// processBruce5942();
processCanterbury();
// processBruce5942();
processCanterbury();
}
}

0 comments on commit 396bfe0

Please sign in to comment.