Giter Club home page Giter Club logo

opensha-core's Issues

Building subsections for crustal faults

The subsections would generally have length shorter than 0.5 times the down-dip width (DDW), if maxSubSectionLen is defined 0.5 DDW. In turn, the combined length of 2 subsections would be shorter than DDW. This implies that rupture length for considered smallest magnitude (at least 2 subsections) would be shorter than rupture width (unless AseismicSlipFactor is not zero).

When fault-dip is 90 degrees, seismogenic thickness would be the same as DDW. It is then possible that the consideration: “requiring at least 2 subsections ensures that the minimum rupture lengths are approximately equal to the seismogenic thickness (Main report UCERF3, p27)” may not hold.

On the other hand, what if we define the subsection length to be at least 0.5 DDW as follows:

traceLength = faultTrace.getTraceLength();
dL = 0.5*DDW;
numSubSec = (int) traceLength/dL;
dF = (traceLength - (numSubSec*dL))/numSubSec;
sectionLength = dL+dF;

Would not this simply the procedure to build the subsections.

Test suite compile failing

On: commit bf9ee39

when I run: ./gradlew test

I see

> Task :compileTestJava FAILED
/home/chrisbc/DEV/GNS/opensha/opensha-core/test/org/opensha/sra/SRA_Suite.java:5: error: cannot find symbol
import org.opensha.commons.util.InterpolateTests;
                               ^
  symbol:   class InterpolateTests
  location: package org.opensha.commons.util
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileTestJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
6 actionable tasks: 1 executed, 5 up-to-date
chrisbc@hushtwo:~/DEV/GNS/opensha/opensha-core$ 

Observations

As a workaround I've commented out this import, since it doesn't appear to be used in the Suite anyway. After this tests built OK.

Three failing tests

after applying workaround as per #10 the tests now run with failures

on: commit bf9ee39e25661e8b7e78a86e055cabc89a2e6ae9

when I run: ./gradlew test

I see:

> Task :compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :test

org.opensha.sha.imr.attenRelImpl.test.AttenRelTestsSuite > org.opensha.sha.imr.attenRelImpl.test.MultiIMR_ParamTest.testInitialConsist FAILED
    org.opensha.commons.exceptions.ConstraintException at MultiIMR_ParamTest.java:84

org.opensha.sha.imr.attenRelImpl.test.AttenRelTestsSuite > org.opensha.sha.imr.attenRelImpl.test.MultiIMR_ParamTest.testChangeProp FAILED
    org.opensha.commons.exceptions.ConstraintException at MultiIMR_ParamTest.java:92

org.opensha.sha.imr.attenRelImpl.test.AttenRelTestsSuite > org.opensha.sha.imr.attenRelImpl.test.MultiIMR_ParamTest.testSetIMTs FAILED
    org.opensha.commons.exceptions.ConstraintException at MultiIMR_ParamTest.java:66

2959 tests completed, 3 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

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.