Changeset 26842


Ignore:
Timestamp:
01/31/22 17:18:22 (3 years ago)
Author:
jdquinn
Message:

CHG: Precomputed Gmsh mesh for Python SE tests written out to Pickle file; updated precomputed mesh for MATLAB; updated corresponding archives again from Linux machine

Location:
issm/trunk-jpl/test
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test2002.m

    r26809 r26842  
    33%mesh earth:
    44md=model;
    5 load ../Data/SlcTestMesh.mat;
     5
     6% %Generate and save mesh
     7% SlcMesh=gmshplanet('radius',6.371012*10^3,'resolution',700.);
     8% save('../Data/SlcTestMesh.mat','SlcMesh');
     9% md.mesh=SlcMesh;
     10
     11%Load precomputed mesh
     12load('../Data/SlcTestMesh.mat');
    613md.mesh=SlcMesh; %700 km resolution mesh
    714
  • issm/trunk-jpl/test/NightlyRun/test2002.py

    r26840 r26842  
    11#Test Name: EarthSlc
    22import numpy as np
    3 
    4 from gmshplanet import *
     3import pickle
     4#from gmshplanet import *
    55from gmtmask import *
    66from lovenumbers import *
     
    1212
    1313md = model()
    14 md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700.) # 700 km resolution mesh
     14
     15## Generate and save mesh (need to uncomment import of gmshplanet as well)
     16# md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700.) # 700 km resolution mesh
     17# with open('../Data/SlcTestMesh.pkl', 'wb') as slc_test_mesh_file:
     18#     pickle.dump(md.mesh, slc_test_mesh_file)
     19
     20# Load precomputed mesh
     21with open('../Data/SlcTestMesh.pkl', 'rb') as slc_test_mesh_file:
     22    md.mesh = pickle.load(slc_test_mesh_file)
    1523
    1624# Geometry for the bed, arbitrary thickness of 100
  • issm/trunk-jpl/test/NightlyRun/test2003.py

    r26638 r26842  
    11#Test Name: EarthSlc_rotationalFeedback
    22import numpy as np
     3import pickle
    34from socket import gethostname
    4 from gmshplanet import *
    55from gmtmask import *
    66from lovenumbers import *
     
    1212
    1313md = model()
    14 md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700.) # 700 km resolution mesh
     14
     15# Load precomputed mesh
     16with open('../Data/SlcTestMesh.pkl', 'rb') as slc_test_mesh_file:
     17    md.mesh = pickle.load(slc_test_mesh_file)
    1518
    1619# Geometry for the bed, arbitrary thickness of 100
  • issm/trunk-jpl/test/NightlyRun/test2005.py

    r26358 r26842  
    11#Test Name: EarthSlc
    22import numpy as np
    3 
    4 from gmshplanet import *
     3import pickle
    54from gmtmask import *
    65from lovenumbers import *
     
    1413# Mesh earth
    1514md = model()
    16 md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700.) #700 km resolution mesh
     15
     16# Load precomputed mesh
     17with open('../Data/SlcTestMesh.pkl', 'rb') as slc_test_mesh_file:
     18    md.mesh = pickle.load(slc_test_mesh_file)
    1719
    1820# Geometry for the bed, arbitrary thickness of 100
  • issm/trunk-jpl/test/NightlyRun/test2006.py

    r26638 r26842  
    11#Test Name: EarthSlc Dakota Sampling glaciers
    22import numpy as np
     3import pickle
    34from socket import gethostname
    45from dmeth_params_set import *
    5 from gmshplanet import *
    66from gmtmask import *
    77from lovenumbers import *
     
    1818md = model()
    1919md.cluster = generic('name', gethostname(), 'np', 5)
    20 md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700.) #700 km resolution mesh
     20
     21# Load precomputed mesh
     22with open('../Data/SlcTestMesh.pkl', 'rb') as slc_test_mesh_file:
     23    md.mesh = pickle.load(slc_test_mesh_file)
    2124
    2225# Geometry for the bed, arbitrary thickness of 100
  • issm/trunk-jpl/test/NightlyRun/test2010.py

    r26840 r26842  
    11#Test Name: MomentOfIntertia
    22import numpy as np
     3import pickle
    34from socket import gethostname
    4 from gmshplanet import *
    55from gmtmask import *
    66from lovenumbers import *
     
    1212# Mesh earth
    1313md = model()
    14 md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700.) #700 km resolution mesh
     14
     15# Load precomputed mesh
     16with open('../Data/SlcTestMesh.pkl', 'rb') as slc_test_mesh_file:
     17    md.mesh = pickle.load(slc_test_mesh_file)
    1518
    1619# Geometry for the bed, arbitrary thickness of 100
  • issm/trunk-jpl/test/NightlyRun/test2101.py

    r26358 r26842  
    11#Test Name: EarthEsa
    22#Elastostatic adjustment for an elemental ice unloading
     3import numpy as np
     4import pickle
    35from socket import gethostname
    4 
    5 import numpy as np
    6 
    7 from gmshplanet import *
    86from gmtmask import *
    97from lovenumbers import *
     
    1513#mesh earth:
    1614md = model()
    17 md.mesh = gmshplanet('radius', 6.371012 * 1e3, 'resolution', 700)
     15
     16# Load precomputed mesh
     17with open('../Data/SlcTestMesh.pkl', 'rb') as slc_test_mesh_file:
     18    md.mesh = pickle.load(slc_test_mesh_file)
    1819
    1920#define load
Note: See TracChangeset for help on using the changeset viewer.