Ignore:
Timestamp:
Jun 3, 2025, 5:22:03 PM (3 weeks ago)
Author:
jbclement
Message:

PEM:
Correction of a small bug for the launching script when restarting the simulation from an initial PCM run + renaming of variables in the visualization scripts for the layering structure.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/visu_layering.py

    r3777 r3790  
    5555        'h_h2o': f"stratif_slope{idx_str}_h_h2oice",
    5656        'h_dust': f"stratif_slope{idx_str}_h_dust",
    57         'h_air': f"stratif_slope{idx_str}_h_pore",
    58         'volfrac': f"stratif_slope{idx_str}_icepore_volfrac",
     57        'h_pore': f"stratif_slope{idx_str}_h_pore",
     58        'poreice_volfrac': f"stratif_slope{idx_str}_poreice_volfrac",
    5959    }
    6060
     
    8282    h_h2o = data['h_h2o']
    8383    h_dust = data['h_dust']
    84     h_air = data['h_air']
    85     volfrac = data['volfrac']
     84    h_pore = data['h_pore']
     85    poreice_volfrac = data['poreice_volfrac']
    8686
    8787    layers = top.shape[1]
     
    9494        + h_h2o[0, 0, grid_index]
    9595        + h_dust[0, 0, grid_index]
    96         + h_air[0, 0, grid_index]
     96        + h_pore[0, 0, grid_index]
    9797    )
    9898    raw_height[0] = top[0, 0, grid_index] - total_thickness0
     
    104104            + h_h2o[0, i, grid_index]
    105105            + h_dust[0, i, grid_index]
    106             + h_air[0, i, grid_index]
     106            + h_pore[0, i, grid_index]
    107107        )
    108108
     
    135135        h2o = h_h2o[0, layer_idx, grid_index] / thickness
    136136        dust = h_dust[0, layer_idx, grid_index] / thickness
    137         air = h_air[0, layer_idx, grid_index] * (1.0 - volfrac[0, layer_idx, grid_index]) / thickness
    138         pore = h_air[0, layer_idx, grid_index] * volfrac[0, layer_idx, grid_index] / thickness
    139         contents[:, idx + 1] = [co2, h2o, dust, air, pore]
     137        air = h_pore[0, layer_idx, grid_index] * (1.0 - poreice_volfrac[0, layer_idx, grid_index]) / thickness
     138        poreice = h_pore[0, layer_idx, grid_index] * poreice_volfrac[0, layer_idx, grid_index] / thickness
     139        contents[:, idx + 1] = [co2, h2o, dust, air, poreice]
    140140
    141141    if num_filt > 0:
     
    276276        h_h2o = slope_data['h_h2o']
    277277        h_dust = slope_data['h_dust']
    278         h_air = slope_data['h_air']
     278        h_pore = slope_data['h_pore']
    279279        total_thickness0 = (
    280280            h_co2[0, 0, igrid_input]
    281281            + h_h2o[0, 0, igrid_input]
    282282            + h_dust[0, 0, igrid_input]
    283             + h_air[0, 0, igrid_input]
     283            + h_pore[0, 0, igrid_input]
    284284        )
    285285        raw_height[0] = top[0, 0, igrid_input] - total_thickness0
Note: See TracChangeset for help on using the changeset viewer.