Changeset 3790 for trunk/LMDZ.COMMON/libf/evolution
- Timestamp:
- Jun 3, 2025, 5:22:03 PM (3 weeks ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3789 r3790 695 695 == 03/06/2025 == JBC 696 696 Few corrections for the layering algorithm, in particular when a dust lag layer is created. 697 698 == 03/06/2025 == JBC 699 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 -
trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
r3666 r3790 333 333 cleanfiles starts/restartpem .nc $(($iPEM - 1)) 334 334 rm -f startpem.nc 335 if [ -f "starts/startpem.nc" ]; then 336 cp starts/startpem.nc . 337 fi 335 338 if [ $irelaunch -eq $(($nPCM_ini - 1)) ]; then 336 339 cp diags/data2reshape${irelaunch}.nc data2reshape_Y1.nc -
trunk/LMDZ.COMMON/libf/evolution/deftank/visu_evol_layering.py
r3777 r3790 106 106 'dust': 'h_dust', 107 107 'pore': 'h_pore', 108 'pore_ice': ' icepore_volfrac'108 'pore_ice': 'poreice_volfrac' 109 109 } 110 110 var_info = {prop: set() for prop in property_markers} -
trunk/LMDZ.COMMON/libf/evolution/deftank/visu_layering.py
r3777 r3790 55 55 'h_h2o': f"stratif_slope{idx_str}_h_h2oice", 56 56 '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", 59 59 } 60 60 … … 82 82 h_h2o = data['h_h2o'] 83 83 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'] 86 86 87 87 layers = top.shape[1] … … 94 94 + h_h2o[0, 0, grid_index] 95 95 + h_dust[0, 0, grid_index] 96 + h_ air[0, 0, grid_index]96 + h_pore[0, 0, grid_index] 97 97 ) 98 98 raw_height[0] = top[0, 0, grid_index] - total_thickness0 … … 104 104 + h_h2o[0, i, grid_index] 105 105 + h_dust[0, i, grid_index] 106 + h_ air[0, i, grid_index]106 + h_pore[0, i, grid_index] 107 107 ) 108 108 … … 135 135 h2o = h_h2o[0, layer_idx, grid_index] / thickness 136 136 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]) / thickness138 pore = h_air[0, layer_idx, grid_index] *volfrac[0, layer_idx, grid_index] / thickness139 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] 140 140 141 141 if num_filt > 0: … … 276 276 h_h2o = slope_data['h_h2o'] 277 277 h_dust = slope_data['h_dust'] 278 h_ air = slope_data['h_air']278 h_pore = slope_data['h_pore'] 279 279 total_thickness0 = ( 280 280 h_co2[0, 0, igrid_input] 281 281 + h_h2o[0, 0, igrid_input] 282 282 + h_dust[0, 0, igrid_input] 283 + h_ air[0, 0, igrid_input]283 + h_pore[0, 0, igrid_input] 284 284 ) 285 285 raw_height[0] = top[0, 0, igrid_input] - total_thickness0
Note: See TracChangeset
for help on using the changeset viewer.