Changeset 3366 for trunk/LMDZ.COMMON


Ignore:
Timestamp:
Jun 11, 2024, 3:12:31 PM (5 months ago)
Author:
llange
Message:

Mars PEM
Fixing bug in the initial computation of ice tendencies (a negative tendancies was computed when a glacier was disapearing at the end of the second year of the PCM).
Fixing a bug in the update of the tendencies of CO2 to ensure mass conservation
LL

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

Legend:

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

    r3365 r3366  
    349349Some features might not work very well yet since not every stituation has not been tested.
    350350
    351 == 10/06/2024 == JBC
    352 - The PEM can now stop itself cleanly before the SLURM time limit for the job is reached and it continues the simulation with a new cycle.
    353 - Update of "jobPEM.slurm" in the deftank to guarantee enough memory space to run the job.
    354 - Few minor cleanings.
    355 
    356 == 10/06/2024 == JBC
    357 Correction of an error in "lib_launchPEM.sh" due to a miscalculated condition + Improvement of the relaunch which now cleans the unnecessary files.
     351== 11/06/2024 == LL
     352Fixing bug in the initial computation of ice tendencies (a negative tendancies was computed when a glacier was disapearing at the end of the second year of the PCM).
     353Fixing a bug in the update of the tendencies of CO2 to ensure mass conservation
     354
     355~               
  • trunk/LMDZ.COMMON/libf/evolution/compute_tend_mod.F90

    r3149 r3366  
    1313!=======================================================================
    1414!
    15 ! Compute the tendencies of the evolution of water ice over the years
     15! Compute the initial tendencies of the evolution ice based on the PCM data
    1616!
    1717!=======================================================================
     
    3333where (abs(tendencies_ice) < 1.e-10) tendencies_ice = 0.
    3434
     35! If the minimum over the last year is 0 then we have no perennial ice
     36where (abs(min_ice(:,:,2)) < 1.e-10) tendencies_ice = 0.
    3537END SUBROUTINE compute_tend
    3638
  • trunk/LMDZ.COMMON/libf/evolution/evol_ice_mod.F90

    r3319 r3366  
    2929!   local:
    3030!   ------
    31 
     31real, dimension(ngrid,nslope) ::                co2_ice_tmp  ! Evolution of perennial ice over one year
    3232!=======================================================================
    3333! Evolution of CO2 ice for each physical point
    3434write(*,*) 'Evolution of co2 ice'
    35 co2_ice = co2_ice + tend_co2_ice*dt_pem
    36 where (co2_ice < 0.)
    37     co2_ice = 0.
    38     tend_co2_ice = 0.
     35co2_ice_tmp = co2_ice + tend_co2_ice*dt_pem
     36where (co2_ice_tmp < 0.)
     37    co2_ice_tmp = 0.
     38    tend_co2_ice = -co2_ice/dt_pem
    3939end where
    40 
     40co2_ice = co2_ice_tmp
    4141END SUBROUTINE evol_co2_ice
    4242
Note: See TracChangeset for help on using the changeset viewer.