Ignore:
Timestamp:
08/29/15 11:55:39 (10 years ago)
Author:
Eric.Larour
Message:

CHG: moved md.surfaceforcings to md.smb.
By doing so, had to rename the SMB class to SMBforcing class (it's just that, a mass_balance forcing inside
a SMB class, hence the name).
We also now have an smb_core solution, taken out of the mass transport core. Makes more sense long term.
Synced all enums according to the new changes, and operated the adjustments in all the test decks.

In addition, progressing in terms of GEMB integration into ISSM, specifically at the SMBgemb level (which
is spurring all the changes described above). Brought the class up to the level of the GEMB.m call in Alex's
code. Starting the C integration now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test337.py

    r19049 r19527  
    2525smb=numpy.hstack((smb,smb*-1.))
    2626
    27 md.surfaceforcings=SMBcomponents();
    28 md.surfaceforcings.accumulation=numpy.vstack((smb*2, [1.5,3.]));
    29 md.surfaceforcings.runoff=numpy.vstack((smb/2, [1.5,3.]));
    30 md.surfaceforcings.evaporation=numpy.vstack((smb/2, [1.5,3.]));
     27md.smb=SMBcomponents();
     28md.smb.accumulation=numpy.vstack((smb*2, [1.5,3.]));
     29md.smb.runoff=numpy.vstack((smb/2, [1.5,3.]));
     30md.smb.evaporation=numpy.vstack((smb/2, [1.5,3.]));
    3131md.transient.isthermal=False
    3232
     
    3434
    3535#Fields and tolerances to track changes
    36 field_names=['Vx1','Vy1','Vel1','Pressure1','Bed1','Surface1','Thickness1','SurfaceforcingsMassBalance1', \
    37         'Vx2','Vy2','Vel2','Pressure2','Bed2','Surface2','Thickness2','SurfaceforcingsMassBalance2', \
    38         'Vx3','Vy3','Vel3','Pressure3','Bed3','Surface3','Thickness3','SurfaceforcingsMassBalance3', \
    39         'Vx4','Vy4','Vel4','Pressure4','Bed4','Surface4','Thickness4','SurfaceforcingsMassBalance4']
     36field_names=['Vx1','Vy1','Vel1','Pressure1','Bed1','Surface1','Thickness1','SmbMassBalance1', \
     37        'Vx2','Vy2','Vel2','Pressure2','Bed2','Surface2','Thickness2','SmbMassBalance2', \
     38        'Vx3','Vy3','Vel3','Pressure3','Bed3','Surface3','Thickness3','SmbMassBalance3', \
     39        'Vx4','Vy4','Vel4','Pressure4','Bed4','Surface4','Thickness4','SmbMassBalance4']
    4040field_tolerances=[\
    4141                5e-09,1e-09,1e-09,1e-10,1e-10,1e-10,1e-10,1e-10,\
     
    5151        md.results.TransientSolution[0].Surface,\
    5252        md.results.TransientSolution[0].Thickness,\
    53         md.results.TransientSolution[0].SurfaceforcingsMassBalance,\
     53        md.results.TransientSolution[0].SmbMassBalance,\
    5454        md.results.TransientSolution[1].Vx,\
    5555        md.results.TransientSolution[1].Vy,\
     
    5959        md.results.TransientSolution[1].Surface,\
    6060        md.results.TransientSolution[1].Thickness,\
    61         md.results.TransientSolution[1].SurfaceforcingsMassBalance,\
     61        md.results.TransientSolution[1].SmbMassBalance,\
    6262        md.results.TransientSolution[2].Vx,\
    6363        md.results.TransientSolution[2].Vy,\
     
    6767        md.results.TransientSolution[2].Surface,\
    6868        md.results.TransientSolution[2].Thickness,\
    69         md.results.TransientSolution[2].SurfaceforcingsMassBalance,\
     69        md.results.TransientSolution[2].SmbMassBalance,\
    7070        md.results.TransientSolution[3].Vx,\
    7171        md.results.TransientSolution[3].Vy,\
     
    7575        md.results.TransientSolution[3].Surface,\
    7676        md.results.TransientSolution[3].Thickness,\
    77         md.results.TransientSolution[3].SurfaceforcingsMassBalance,\
     77        md.results.TransientSolution[3].SmbMassBalance,\
    7878        ]
Note: See TracChangeset for help on using the changeset viewer.