Changeset 4004 for trunk


Ignore:
Timestamp:
Jan 14, 2026, 8:29:52 PM (10 days ago)
Author:
aslmd
Message:

planete_h module: replace a couple of deprecated functions dtan dsqrt dsin by their modern equivalent tan sqrt sin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/planete_h.F90

    r3996 r4004  
    4242  ! Compute orbit geometrical parameters
    4343  e_elips = (aphelie - periheli)/(aphelie + periheli)
    44   zx0 = -2.0*datan(dtan(0.5*lsp/degrad)*dsqrt((1. - e_elips)/(1. + e_elips)))
     44  zx0 = -2.0*atan(tan(0.5*lsp/degrad)*sqrt((1. - e_elips)/(1. + e_elips)))
    4545  if (zx0 <= 0.) zx0 = zx0 + 2.*pi
    4646
    4747  ! Compute sol at perihelion
    48   solp = year_day*(1. - (zx0 - e_elips*dsin(zx0))/(2.*pi))
     48  solp = year_day*(1. - (zx0 - e_elips*sin(zx0))/(2.*pi))
    4949
    5050  END SUBROUTINE lsp2solp
Note: See TracChangeset for help on using the changeset viewer.