Changeset 27115
- Timestamp:
- 06/29/22 03:29:22 (3 years ago)
- Location:
- issm/trunk-jpl/test/NightlyRun
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test2002.py
r26842 r27115 11 11 12 12 13 # Mesh earth 14 # 15 # NOTE: In MATLAB, we currently use cached mesh to account for differences in 16 # mesh generated under Linux versus under macOS 17 # 13 18 md = model() 14 19 15 # #Generate and save mesh (need to uncomment import of gmshplanet as well)20 # Generate and save mesh (need to uncomment import of gmshplanet as well) 16 21 # md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700.) # 700 km resolution mesh 17 22 # with open('../Data/SlcTestMesh.pkl', 'wb') as slc_test_mesh_file: … … 60 65 61 66 icemask = np.ones((md.mesh.numberofvertices, )) 62 # NOTE: Need to be careful here: when using multidimensional array elements to 67 # NOTE: Need to be careful here: when using multidimensional array elements to 63 68 # address a one-dimensional array in MATLAB, only first column is used 64 69 # -
issm/trunk-jpl/test/NightlyRun/test2006.py
r26842 r27115 18 18 md = model() 19 19 md.cluster = generic('name', gethostname(), 'np', 5) 20 md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700.) #700 km resolution mesh 20 21 21 22 # Load precomputed mesh … … 163 164 for i in range(len(locations)): 164 165 if i == 0: 165 md.outputdefinition.definitions = [ 166 nodalvalue( 167 'name', 'SNode', 168 'definitionstring', 'Outputdefinition1', 169 'model_string', 'Sealevel', 170 'node', locations[i] 171 ) 172 ] 166 md.outputdefinition.definitions = [nodalvalue('name', 'SNode', 167 'definitionstring', 'Outputdefinition1', 168 'model_string', 'Sealevel', 169 'node', locations[i])] 173 170 else: 174 171 md.outputdefinition.definitions.append( 175 nodalvalue( 176 'name', 'SNode', 177 'definitionstring', 'Outputdefinition' + str(i + 1), 178 'model_string', 'Sealevel', 179 'node', locations[i] 180 ) 181 ) 172 nodalvalue('name', 'SNode', 173 'definitionstring', 'Outputdefinition' + str(i + 1), 174 'model_string', 'Sealevel', 175 'node', locations[i])) 182 176 #}}} 183 177 184 178 # Algorithm #{{{ 185 179 md.qmu.method = dakota_method.dakota_method('nond_samp') 186 md.qmu.method = dmeth_params_set( 187 md.qmu.method, 188 'seed', 1234, 189 'samples', 10, 190 'sample_type', 'random' 191 ) 180 md.qmu.method = dmeth_params_set(md.qmu.method, 181 'seed', 1234, 182 'samples', 10, 183 'sample_type', 'random') 192 184 md.qmu.output = 1 193 185 #}}} … … 235 227 236 228 # Compare statistics with our own here 237 svalues = mds.results.StatisticsSolution[-1].SealevelSamples # all values at locations229 svalues = mds.results.StatisticsSolution[-1].SealevelSamples # all values at locations 238 230 239 231 dvalues = np.zeros((md.qmu.method.params.samples, len(locations))) -
issm/trunk-jpl/test/NightlyRun/test417.py
r25135 r27115 41 41 'mean', np.ones((npart, 1)), 42 42 'stddev', .01 * np.ones((npart, 1)), 43 'partition', partition 44 ) 43 'partition', partition) 45 44 46 45 #responses 47 md.qmu.responses.MaxVel = response_function.response_function('descriptor', 'MaxVel')48 md.qmu.responses.IceVolume = response_function.response_function('descriptor','IceVolume') 49 md.qmu.responses.MassFlux1 = response_function.response_function('descriptor', 'indexed_MassFlux_1')50 md.qmu.responses.MassFlux2 = response_function.response_function('descriptor', 'indexed_MassFlux_2')51 md.qmu.responses.MassFlux3 = response_function.response_function('descriptor', 'indexed_MassFlux_3')52 md.qmu.responses.MassFlux4 = response_function.response_function('descriptor', 'indexed_MassFlux_4')53 md.qmu.responses.MassFlux5 = response_function.response_function('descriptor', 'indexed_MassFlux_5')54 md.qmu.responses.massFlux6 = response_function.response_function('descriptor', 'indexed_MassFlux_6')55 md.qmu.responses.massFlux7 = response_function.response_function('descriptor', 'indexed_MassFlux_7')46 md.qmu.responses.MaxVel = response_function.response_function('descriptor', 'MaxVel') 47 #md.qmu.responses.IceVolume = response_function.response_function('descriptor', 'IceVolume') #commented for matlab consistency 48 md.qmu.responses.MassFlux1 = response_function.response_function('descriptor', 'indexed_MassFlux_1') 49 md.qmu.responses.MassFlux2 = response_function.response_function('descriptor', 'indexed_MassFlux_2') 50 md.qmu.responses.MassFlux3 = response_function.response_function('descriptor', 'indexed_MassFlux_3') 51 md.qmu.responses.MassFlux4 = response_function.response_function('descriptor', 'indexed_MassFlux_4') 52 md.qmu.responses.MassFlux5 = response_function.response_function('descriptor', 'indexed_MassFlux_5') 53 md.qmu.responses.massFlux6 = response_function.response_function('descriptor', 'indexed_MassFlux_6') 54 md.qmu.responses.massFlux7 = response_function.response_function('descriptor', 'indexed_MassFlux_7') 56 55 57 56 #mass flux profiles -
issm/trunk-jpl/test/NightlyRun/test440.py
r26638 r27115 30 30 31 31 #variables 32 md.qmu.variables.rho_ice = normal_uncertain.normal_uncertain( 33 'descriptor', 'MaterialsRhoIce', 34 'mean', 1, 35 'stddev', 0.01 36 ) 32 md.qmu.variables.rho_ice = normal_uncertain.normal_uncertain('descriptor', 'MaterialsRhoIce', 33 'mean', 1, 34 'stddev', 0.01) 37 35 38 36 #responses 39 md.qmu.responses.MaxVel = response_function.response_function( 40 'descriptor', 'scaled_Thickness', 41 'partition', partition 42 ) 37 md.qmu.responses.MaxVel = response_function.response_function('descriptor', 'scaled_Thickness', 38 'partition', partition) 43 39 44 40 #method -
issm/trunk-jpl/test/NightlyRun/test446.py
r27031 r27115 15 15 md.cluster = generic('name', gethostname(), 'np', 3) 16 16 md.stressbalance.requested_outputs = ['default', 'VxSurface', 'VySurface', 'VxShear', 'VyShear', 'VxBase', 'VyBase'] 17 md = SetM OLHOBC(md);17 md = SetMLHOBC(md) 18 18 md = solve(md, 'Stressbalance') 19 19
Note:
See TracChangeset
for help on using the changeset viewer.