GithubHelp home page GithubHelp logo

gns-science / opensha-ucerf3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opensha/opensha-ucerf3

0.0 1.0 0.0 83.16 MB

UCERF3 code and data

License: Apache License 2.0

Java 99.79% CSS 0.21%

opensha-ucerf3's Introduction

opensha-ucerf3

UCERF3 code and data

opensha-ucerf3's People

Contributors

kevinmilner avatar field-usgs avatar chrisbc avatar pmpowers-usgs avatar voj avatar

Watchers

James Cloos avatar

opensha-ucerf3's Issues

Produce some Coulomb-based NZ crustal ruptures for comparison

As SRM team

we want to see some coulomb based ruptures built from CFM 3.0

so that we can compare the coulomb plausibility approach with the current, UCERF3 approach.

Done when:

  • we have a NZ rupture set built using defaults as per ClusterRuptureBuilder.main()
  • we have identified the main Coulomb parameters to tune/test on.

Upstream: raise 1 PR + 1 Issue

  • my @chrisbc changes on `src/org/opensha/sha/earthquake/faultSysSolution/ruptures/strategies/ClusterConnectionStrategy.java' need a PR back to upstream otherwise this will hit us again.
  • still the ERF test is failing. This needs an issue on upstream.

Originally posted by @chrisbc in #8 (comment)

removing state from MagScalingRelationship (in org.opensha.commons.calc.magScalingRelations)

picked up in PR #24

Involving two repos

opensha-commons
in org.opensha.commons.calc.magScalingRelations.MagScalingRelationship there's a public method .setRake()
and in org.opensha.commons.calc.magScalingRelations.magScalingRelImpl.ScalingRelationships we have the new class TMG2017CruMagAreaRel

opensha-ucerf3
in scratch.UCERF3.enumTreeBranches.ScalingRelationships we have this....

TMG_SUB_2017("Thingbaijam et al.(2017) Subduction", "TMG_SUB_2017") {
		// units of the input dimensions are in m or m^2 
		public double getAveSlip(double area, double length, double origWidth) {
			tmg_sub_magArea.setRake(90.0d); // interface

which seems to break thread-safety, since TMG2017SubMagAreaRel should not have state.

A couple of suggestions...

make the setRake method protected or even private.
create a constructor that passes in rake.

but we need to agree this with Kevin, since it's an API change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.