Changeset 25708


Ignore:
Timestamp:
10/22/20 11:13:23 (4 years ago)
Author:
jdquinn
Message:

BUG: Addressing of TransientSolution results structure.

File:
1 edited

Legend:

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

    r25307 r25708  
    6565
    6666nlayers = np.size(md.results.TransientSolution[0].SmbT, 1)
    67 for i in range(1, np.size(md.results.TransientSolution, 0)):
     67for i in range(1, len(md.results.TransientSolution)):
    6868    nlayers = np.minimum(np.size(md.results.TransientSolution[i].SmbT, 1), nlayers)
    6969
     
    7474field_values = [
    7575    nlayers,
    76     md.results.TransientSolution[-1].SmbDz[0, 0:nlayers].reshape(1, -1),
    77     md.results.TransientSolution[-1].SmbT[0, 0:nlayers].reshape(1, -1),
    78     md.results.TransientSolution[-1].SmbD[0, 0:nlayers].reshape(1, -1),
    79     md.results.TransientSolution[-1].SmbRe[0, 0:nlayers].reshape(1, -1),
    80     md.results.TransientSolution[-1].SmbGdn[0, 0:nlayers].reshape(1, -1),
    81     md.results.TransientSolution[-1].SmbGsp[0, 0:nlayers].reshape(1, -1),
    82     md.results.TransientSolution[-1].SmbA[0, 0:nlayers].reshape(1, -1),
     76    md.results.TransientSolution[-1].SmbDz[0, 0:nlayers],
     77    md.results.TransientSolution[-1].SmbT[0, 0:nlayers],
     78    md.results.TransientSolution[-1].SmbD[0, 0:nlayers],
     79    md.results.TransientSolution[-1].SmbRe[0, 0:nlayers],
     80    md.results.TransientSolution[-1].SmbGdn[0, 0:nlayers],
     81    md.results.TransientSolution[-1].SmbGsp[0, 0:nlayers],
     82    md.results.TransientSolution[-1].SmbA[0, 0:nlayers],
    8383    md.results.TransientSolution[-1].SmbEC[0],
    8484    md.results.TransientSolution[-1].SmbMassBalance[0],
Note: See TracChangeset for help on using the changeset viewer.