Skip to content

Commit 8af3283

Browse files
author
kmilner
committed
2 parents 273e96b + 6cfa885 commit 8af3283

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/main/java/scratch/kevin/nshm23/HardcodedInversionFactoryRunner.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
import org.opensha.sha.earthquake.rupForecastImpl.nshm23.prior2018.NSHM18_DeformationModels;
4646
import org.opensha.sha.earthquake.rupForecastImpl.nshm23.prior2018.NSHM18_FaultModels;
4747
import org.opensha.sha.earthquake.rupForecastImpl.nshm23.prior2018.NSHM18_LogicTreeBranch;
48+
import org.opensha.sha.earthquake.rupForecastImpl.prvi25.PRVI25_InvConfigFactory;
49+
import org.opensha.sha.earthquake.rupForecastImpl.prvi25.logicTree.PRVI25_LogicTreeBranch;
4850
import org.opensha.sha.faultSurface.FaultSection;
4951
import org.opensha.sha.magdist.IncrementalMagFreqDist;
5052
import org.opensha.sha.magdist.SparseGutenbergRichterSolver;
@@ -115,8 +117,8 @@ public static void main(String[] args) throws IOException {
115117
// dirName += "-nshm23-full_sys-prev_weights";
116118
// NSHM23_PaleoDataLoader.INCLUDE_U3_PALEO_SLIP = false;
117119
// dirName += "-no_paleo_slip";
118-
NSHM23_InvConfigFactory factory = new NSHM23_InvConfigFactory();
119-
dirName += "-nshm23";
120+
// NSHM23_InvConfigFactory factory = new NSHM23_InvConfigFactory();
121+
// dirName += "-nshm23";
120122
// NSHM23_InvConfigFactory factory = new NSHM23_InvConfigFactory.PaleoSlipInequality();
121123
// dirName += "-nshm23-paleo_slip_ineq";
122124
// NSHM23_InvConfigFactory factory = new NSHM23_InvConfigFactory.ForceNewPaleo();
@@ -126,16 +128,22 @@ public static void main(String[] args) throws IOException {
126128
// NSHM23_InvConfigFactory factory = new DefModSamplingEnabledInvConfig.ConnDistB0p5MidSegCorrCapSigma();
127129
// dirName += "-nshm23-dm_sample_cap_sigma";
128130

131+
PRVI25_InvConfigFactory factory = new PRVI25_InvConfigFactory();
132+
dirName += "-prvi25";
133+
129134
factory.setCacheDir(new File("/home/kevin/OpenSHA/nshm23/rup_sets/cache"));
130135

131136
boolean writeRS = true;
132137

133138
// LogicTreeBranch<U3LogicTreeBranchNode<?>> branch = U3LogicTreeBranch.DEFAULT;
134139
// LogicTreeBranch<LogicTreeNode> branch = NSHM18_LogicTreeBranch.DEFAULT; dirName += "-2018_inputs";
135140
// LogicTreeBranch<LogicTreeNode> branch = NSHM23_U3_HybridLogicTreeBranch.DEFAULT; dirName += "-u3";
136-
LogicTreeBranch<LogicTreeNode> branch = NSHM23_LogicTreeBranch.DEFAULT_ON_FAULT;
141+
// LogicTreeBranch<LogicTreeNode> branch = NSHM23_LogicTreeBranch.DEFAULT_ON_FAULT;
142+
LogicTreeBranch<LogicTreeNode> branch = PRVI25_LogicTreeBranch.DEFAULT_ON_FAULT;
137143
branch = branch.copy();
138144

145+
branch.setValue(NSHM23_SegmentationModels.CLASSIC);
146+
139147
// seg/b sampling
140148
// List<LogicTreeLevel<? extends LogicTreeNode>> levels = NSHM23_LogicTreeBranch.levelsOnFault;
141149
// levels = new ArrayList<>(levels);

src/main/java/scratch/kevin/nshm23/MPJ_LogicTreeInversionRunnerScriptWriter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ public static void main(String[] args) throws IOException {
245245

246246
/*
247247
* NSHM23 logic tree
248+
* TODO (this is a just a marker to find this part quickly)
248249
*/
249250
//// List<LogicTreeLevel<? extends LogicTreeNode>> levels = NSHM23_U3_HybridLogicTreeBranch.levels;
250251
//// dirName += "-nshm23_u3_hybrid_branches";
@@ -597,6 +598,7 @@ public static void main(String[] args) throws IOException {
597598

598599
/*
599600
* PRVI25 logic tree
601+
* TODO (this is a just a marker to find this part quickly)
600602
*/
601603
List<LogicTreeLevel<? extends LogicTreeNode>> levels = PRVI25_LogicTreeBranch.levelsOnFault;
602604
dirName += "-prvi25_crustal_branches";
@@ -649,7 +651,7 @@ public static void main(String[] args) throws IOException {
649651

650652
// SUB-SECT CONSTRAINT
651653
// SubSectConstraintModels.TOT_NUCL_RATE, // default
652-
SubSectConstraintModels.NUCL_MFD,
654+
// SubSectConstraintModels.NUCL_MFD,
653655

654656
// SUB-SEIS MO REDUCTION
655657
// SubSeisMoRateReductions.SUB_B_1,

0 commit comments

Comments
 (0)