opensha / opensha-core Goto Github PK
View Code? Open in Web Editor NEWCore OpenSHA repository
License: Apache License 2.0
Core OpenSHA repository
License: Apache License 2.0
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.
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$
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.