Ignore:
Timestamp:
Sep 12, 2023, 11:41:22 AM (16 months ago)
Author:
jbclement
Message:

Mars PCM:
The variable 'timeperi' (defined in "planete_h.F90" and computed in "iniorbit.F") is renamed into 'lsperi' and thus slightly changed to be coherent to the solar longitude of perihelion in radian. It can now be used out of the box by other subroutines/programs like the PEM.
JBC

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

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/orbit_param_criterion_mod.F90

    r3039 r3040  
    2222#endif
    2323#ifndef CPP_STD
    24     use planete_h,   only: e_elips, obliquit, timeperi
     24    use planete_h,   only: e_elips, obliquit, lsperi
    2525#else
    26     use planete_mod, only: e_elips, obliquit, timeperi
     26    use planete_mod, only: e_elips, obliquit, lsperi
    2727#endif
    2828  use time_evol_mod,  only: year_bp_ini, var_obl, var_ecc, var_lsp, convert_years
     
    5757! 0. Initializations
    5858! **********************************************************************
    59 Year = year_bp_ini + i_myear        ! We compute the current year
    60 Lsp = modulo(-timeperi*180./pi,360.) ! We convert in degree
     59Year = year_bp_ini + i_myear ! We compute the current year
     60Lsp = lsperi*180./pi        ! We convert in degree
    6161
    6262call ini_lask_param_mod ! Allocation of variables
  • trunk/LMDZ.COMMON/libf/evolution/recomp_orb_param_mod.F90

    r3039 r3040  
    1515#ifndef CPP_STD     
    1616    use comconst_mod, only: pi
    17     use planete_h,    only: e_elips, obliquit, timeperi, periheli, aphelie, p_elips, peri_day, year_day
     17    use planete_h,    only: e_elips, obliquit, lsperi, periheli, aphelie, p_elips, peri_day, year_day
    1818#else
    19     use planete_mod,  only: e_elips, obliquit, timeperi, periastr, apoastr, p_elips, peri_day, year_day
     19    use planete_mod,  only: e_elips, obliquit, lsperi, periastr, apoastr, p_elips, peri_day, year_day
    2020    use comcstfi_mod, only: pi
    2121#endif
     
    5656#endif
    5757
    58 Year = year_bp_ini + i_myear        ! We compute the current year
    59 Lsp = modulo(-timeperi*180./pi,360.) ! We convert in degree
     58Year = year_bp_ini + i_myear ! We compute the current year
     59Lsp = lsperi*180./pi        ! We convert in degree
    6060
    6161write(*,*) 'recomp_orb_param, Old year =', Year - year_iter
     
    100100enddo
    101101halfaxe = 227.94
    102 timeperi = Lsp*pi/180.
     102Lsp = Lsp*pi/180.
    103103periheli = halfaxe*(1 - e_elips)
    104104aphelie =  halfaxe*(1 + e_elips)
     
    107107
    108108#ifndef CPP_STD 
    109     call call_dayperi(timeperi,e_elips,peri_day,year_day)
     109    call call_dayperi(Lsp,e_elips,peri_day,year_day)
    110110#endif
    111111
Note: See TracChangeset for help on using the changeset viewer.