Changeset 23793 for issm/trunk-jpl/test/NightlyRun/test218.py
- Timestamp:
- 03/13/19 03:17:46 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test218.py
r23130 r23793 22 22 from verbose import * 23 23 24 md = squaremesh(model(), 1000000,1000000,5,5)25 md = setmask(md, 'all','')26 md = parameterize(md, '../Par/SquareShelf2.py')27 md = setflowequation(md, 'SSA','all')28 md.cluster = generic('name', gethostname(),'np',3)24 md = squaremesh(model(), 1000000, 1000000, 5, 5) 25 md = setmask(md, 'all', '') 26 md = parameterize(md, '../Par/SquareShelf2.py') 27 md = setflowequation(md, 'SSA', 'all') 28 md.cluster = generic('name', gethostname(), 'np', 3) 29 29 30 #redo the parameter file for this special shelf. 31 #constant thickness, constrained (vy =0) flow into an icefront,30 #redo the parameter file for this special shelf. 31 #constant thickness, constrained (vy = 0) flow into an icefront, 32 32 #from 0 m/yr at the grounding line. 33 33 … … 67 67 68 68 #constrain grounding line to 0 velocity 69 pos = np.where(md.mesh.y == ymin)69 pos = np.where(md.mesh.y == ymin) 70 70 md.stressbalance.spcvx[pos] = 0. 71 71 md.stressbalance.spcvy[pos] = 0. … … 73 73 #partitioning 74 74 md.qmu.numberofpartitions = md.mesh.numberofvertices 75 md = partitioner(md, 'package','linear','npart',md.qmu.numberofpartitions)76 md.qmu.partition = (md.qmu.partition - 1.).reshape(-1, 1).T75 md = partitioner(md, 'package', 'linear', 'npart', md.qmu.numberofpartitions) 76 md.qmu.partition = (md.qmu.partition - 1.).reshape(-1, 1).T 77 77 78 78 #Dakota options … … 81 81 version = IssmConfig('_DAKOTA_VERSION_') 82 82 # returns tuple "(u'6.2',)" -> unicode string '6.2', convert to float 83 version =float(version[0])83 version = float(version[0]) 84 84 85 85 #variables 86 md.qmu.variables.rheology_B = normal_uncertain.normal_uncertain('scaled_MaterialsRheologyB', 1,.05)86 md.qmu.variables.rheology_B = normal_uncertain.normal_uncertain('scaled_MaterialsRheologyB', 1, .05) 87 87 88 88 #responses 89 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])89 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]) 90 90 91 91 #method … … 97 97 98 98 if version >= 6: 99 100 101 99 md.qmu.params.analysis_driver = 'matlab' 100 md.qmu.params.evaluation_scheduling = 'master' 101 md.qmu.params.processors_per_evaluation = 2 102 102 else: 103 104 103 md.qmu.params.analysis_driver = 'stressbalance' 104 md.qmu.params.evaluation_concurrency = 1 105 105 106 106 107 #imperative! 108 md.stressbalance.reltol = 10**-10 #tighten for qmu analysis107 #imperative! 108 md.stressbalance.reltol = 10**-10 #tighten for qmu analysis 109 109 md.qmu.isdakota = 1 110 110 111 111 #solve 112 md.verbose = verbose('000000000') 113 md = solve(md, 'Stressbalance','overwrite','y')112 md.verbose = verbose('000000000') # this line is recommended 113 md = solve(md, 'Stressbalance', 'overwrite', 'y') 114 114 115 115 #Fields and tolerances to track changes 116 116 md.qmu.results = md.results.dakota 117 md.results.dakota.importancefactors = importancefactors(md, 'scaled_MaterialsRheologyB','MaxVel').reshape(-1,1)117 md.results.dakota.importancefactors = importancefactors(md, 'scaled_MaterialsRheologyB', 'MaxVel').reshape(-1, 1) 118 118 field_names = ['importancefactors'] 119 119 field_tolerances = [1e-10] 120 field_values =[md.results.dakota.importancefactors]120 field_values = [md.results.dakota.importancefactors]
Note:
See TracChangeset
for help on using the changeset viewer.