Changeset 3790 for trunk


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

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3789 r3790  
    695695== 03/06/2025 == JBC
    696696Few corrections for the layering algorithm, in particular when a dust lag layer is created.
     697
     698== 03/06/2025 == JBC
     699Correction 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
  • trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh

    r3666 r3790  
    333333        cleanfiles starts/restartpem .nc $(($iPEM - 1))
    334334        rm -f startpem.nc
     335        if [ -f "starts/startpem.nc" ]; then
     336            cp starts/startpem.nc .
     337        fi
    335338        if [ $irelaunch -eq $(($nPCM_ini - 1)) ]; then
    336339            cp diags/data2reshape${irelaunch}.nc data2reshape_Y1.nc
  • trunk/LMDZ.COMMON/libf/evolution/deftank/visu_evol_layering.py

    r3777 r3790  
    106106        'dust':      'h_dust',
    107107        'pore':      'h_pore',
    108         'pore_ice':  'icepore_volfrac'
     108        'pore_ice':  'poreice_volfrac'
    109109    }
    110110    var_info = {prop: set() for prop in property_markers}
  • 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.