Changeset 25836 for issm/trunk/test/NightlyRun/test445.py
- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
-
issm/trunk/test
- Property svn:mergeinfo changed
-
issm/trunk/test/NightlyRun
- Property svn:ignore
-
old new 18 18 run.old 19 19 run_matlab 20 test218.qmu.in 21 test218.qmu.out 22 test218.qmu.err
-
- Property svn:ignore
-
issm/trunk/test/NightlyRun/test445.py
r24313 r25836 1 1 #Test Name: SquareSheetShelfSteaEnthalpyHO3dDakotaSampNeff 2 3 # TODO: 4 # - Figure out why test fails intermittently on Mac with "IndexError: list 5 # index out of range" 6 # 7 8 from os import getcwd 9 from socket import gethostname 10 2 11 import numpy as np 3 from os import getcwd 12 13 from ContourToMesh import * 14 from dmeth_params_set import * 4 15 from model import * 5 from socket import gethostname 16 from parameterize import * 17 from partitioner import * 18 from setflowequation import * 19 from setmask import * 20 from solve import * 6 21 from triangle import * 7 from setmask import * 8 from parameterize import * 9 from setflowequation import * 10 from solve import * 11 from partitioner import * 12 from dmeth_params_set import * 13 from ContourToMesh import * 22 14 23 15 24 #model not consistent: equality thickness = surface-base violated … … 24 33 md.thermal.isenthalpy = 1 25 34 md.thermal.isdynamicbasalspc = 1 26 md.initialization.waterfraction = np.zeros((md.mesh.numberofvertices ))27 md.initialization.watercolumn = np.zeros((md.mesh.numberofvertices ))35 md.initialization.waterfraction = np.zeros((md.mesh.numberofvertices, 1)) 36 md.initialization.watercolumn = np.zeros((md.mesh.numberofvertices, 1)) 28 37 29 38 md.friction.coupling = 3 … … 34 43 version = float(version[0]) 35 44 45 #partitioning 46 npart = 10 47 partition, md = partitioner(md, 'package', 'chaco', 'npart', npart, 'weighting', 'on') 48 partition -= 1 49 md.qmu.isdakota = 1 50 36 51 #variables 37 md.qmu.variables.neff = normal_uncertain.normal_uncertain('scaled_FrictionEffectivePressure', 1, .05) 38 md.qmu.variables.geoflux = normal_uncertain.normal_uncertain('scaled_BasalforcingsGeothermalflux', 1, .05) 52 md.qmu.variables.neff = normal_uncertain.normal_uncertain( 53 'descriptor', 'scaled_FrictionEffectivePressure', 54 'mean', np.ones((npart, 1)), 55 'stddev', .05 * np.ones((npart, 1)), 56 'partition', partition 57 ) 58 md.qmu.variables.geoflux = normal_uncertain.normal_uncertain( 59 'descriptor', 'scaled_BasalforcingsGeothermalflux', 60 'mean', np.ones((npart, 1)), 61 'stddev', .05 * np.ones((npart, 1)), 62 'partition', partition 63 ) 39 64 40 65 #responses 41 md.qmu.responses.MaxVel = response_function.response_function(' MaxVel', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])42 md.qmu.responses.MassFlux1 = response_function.response_function(' indexed_MassFlux_1', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])43 md.qmu.responses.MassFlux2 = response_function.response_function(' indexed_MassFlux_2', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])44 md.qmu.responses.MassFlux3 = response_function.response_function(' indexed_MassFlux_3', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])45 md.qmu.responses.MassFlux4 = response_function.response_function(' indexed_MassFlux_4', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])46 md.qmu.responses.MassFlux5 = response_function.response_function(' indexed_MassFlux_5', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])47 md.qmu.responses. MassFlux6 = response_function.response_function('indexed_MassFlux_6', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])48 md.qmu.responses. MassFlux7 = response_function.response_function('indexed_MassFlux_7', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])66 md.qmu.responses.MaxVel = response_function.response_function('descriptor','MaxVel') 67 md.qmu.responses.MassFlux1 = response_function.response_function('descriptor','indexed_MassFlux_1') 68 md.qmu.responses.MassFlux2 = response_function.response_function('descriptor','indexed_MassFlux_2') 69 md.qmu.responses.MassFlux3 = response_function.response_function('descriptor','indexed_MassFlux_3') 70 md.qmu.responses.MassFlux4 = response_function.response_function('descriptor','indexed_MassFlux_4') 71 md.qmu.responses.MassFlux5 = response_function.response_function('descriptor','indexed_MassFlux_5') 72 md.qmu.responses.massFlux6 = response_function.response_function('descriptor','indexed_MassFlux_6') 73 md.qmu.responses.massFlux7 = response_function.response_function('descriptor','indexed_MassFlux_7') 49 74 50 75 #mass flux profiles … … 54 79 #method 55 80 md.qmu.method = dakota_method.dakota_method('nond_samp') 56 md.qmu.method = dmeth_params_set(md.qmu.method, 'seed', 1234, 'samples', 20, 'sample_type', 'random') 81 md.qmu.method = dmeth_params_set( 82 md.qmu.method, 83 'seed', 1234, 84 'samples', 20, 85 'sample_type', 'random' 86 ) 57 87 58 88 #parameters … … 69 99 md.qmu.params.evaluation_concurrency = 1 70 100 71 #partitioning72 md.qmu.numberofpartitions = 1073 md = partitioner(md, 'package', 'chaco', 'npart', md.qmu.numberofpartitions, 'weighting', 'on')74 md.qmu.vpartition = md.qmu.vpartition - 175 md.qmu.isdakota = 176 77 101 md.stressbalance.reltol = 10**-5 #tighten for qmu analyses 78 79 102 80 103 #solve
Note:
See TracChangeset
for help on using the changeset viewer.