Changeset 24313 for issm/trunk/test/NightlyRun/test412.py
- Timestamp:
- 11/01/19 12:01:57 (5 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
-
issm/trunk/test
- Property svn:mergeinfo changed
-
issm/trunk/test/NightlyRun/test412.py
r23189 r24313 1 1 #Test Name: SquareSheetShelfDiadSSA3dDakota 2 import numpy as np3 2 from model import * 4 3 from socket import gethostname … … 10 9 from partitioner import * 11 10 from importancefactors import * 12 13 11 from normal_uncertain import * 14 12 from response_function import * 15 13 16 md = triangle(model(), '../Exp/Square.exp',300000.)17 md = setmask(md, '../Exp/SquareShelf.exp','')18 md = parameterize(md, '../Par/SquareSheetShelf.py')19 md = setflowequation(md, 'SSA','all')20 md.cluster = generic('name', gethostname(),'np',3)14 md = triangle(model(), '../Exp/Square.exp', 300000.) 15 md = setmask(md, '../Exp/SquareShelf.exp', '') 16 md = parameterize(md, '../Par/SquareSheetShelf.py') 17 md = setflowequation(md, 'SSA', 'all') 18 md.cluster = generic('name', gethostname(), 'np', 3) 21 19 22 20 #partitioning 23 21 md.qmu.numberofpartitions = md.mesh.numberofvertices 24 md = partitioner(md, 'package','linear','npart',md.qmu.numberofpartitions)25 md.qmu. partition = md.qmu.partition-122 md = partitioner(md, 'package', 'linear', 'npart', md.qmu.numberofpartitions) 23 md.qmu.vpartition = md.qmu.vpartition - 1 26 24 md.qmu.isdakota = 1 27 25 … … 33 31 34 32 #variables 35 md.qmu.variables.rho_ice = normal_uncertain.normal_uncertain('MaterialsRhoIce', md.materials.rho_ice,0.01)36 md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain('scaled_FrictionCoefficient', 1,0.01)33 md.qmu.variables.rho_ice = normal_uncertain.normal_uncertain('MaterialsRhoIce', md.materials.rho_ice, 0.01) 34 md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain('scaled_FrictionCoefficient', 1, 0.01) 37 35 38 36 #responses 39 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])37 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]) 40 38 41 39 #method … … 47 45 48 46 if version >= 6: 49 50 51 47 md.qmu.params.analysis_driver = 'matlab' 48 md.qmu.params.evaluation_scheduling = 'master' 49 md.qmu.params.processors_per_evaluation = 2 52 50 else: 53 54 51 md.qmu.params.analysis_driver = 'stressbalance' 52 md.qmu.params.evaluation_concurrency = 1 55 53 56 #imperative! 57 md.stressbalance.reltol = 10**-5 #tighten for qmu analyses54 #imperative! 55 md.stressbalance.reltol = 10**-5 #tighten for qmu analyses 58 56 59 57 #solve 60 md.verbose = verbose('000000000') 61 md = solve(md, 'Stressbalance','overwrite','y')58 md.verbose = verbose('000000000') # this line is recommended 59 md = solve(md, 'Stressbalance', 'overwrite', 'y') 62 60 63 61 #Fields and tolerances to track changes 64 62 md.qmu.results = md.results.dakota 65 md.results.dakota.importancefactors = importancefactors(md, 'scaled_FrictionCoefficient','MaxVel').T63 md.results.dakota.importancefactors = importancefactors(md, 'scaled_FrictionCoefficient', 'MaxVel').T 66 64 field_names = ['importancefactors'] 67 65 field_tolerances = [1e-10]
Note:
See TracChangeset
for help on using the changeset viewer.