Ignore:
Timestamp:
Mar 17, 2026, 4:22:44 PM (12 days ago)
Author:
jbclement
Message:

PEM:

  • Move ice table variables from "ice_table" to the main program.
  • Merge "job_id_mod" and "job_timelimit_mod" into "job" which is relocated to the PEM folder.
  • Rename local variables in procedures to avoid masking variables in parent scope.
  • Few cleanings to delete remaining PEM-external "include" and "use".

JBC

File:
1 edited

Legend:

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

    r4110 r4138  
    301301integer(di)            :: i
    302302real(dp)               :: m
    303 real(dp), dimension(n) :: cp, dp
     303real(dp), dimension(n) :: c_p, d_p
    304304
    305305! CODE
     
    323323
    324324! Initialization
    325 cp(1) = c(1)/b(1)
    326 dp(1) = d(1)/b(1)
     325c_p(1) = c(1)/b(1)
     326d_p(1) = d(1)/b(1)
    327327
    328328! Forward sweep
    329329do i = 2,n - 1
    330     m = b(i) - a(i - 1)*cp(i - 1)
    331     cp(i) = c(i)/m
    332     dp(i) = (d(i) - a(i - 1)*dp(i - 1))/m
    333 end do
    334 m = b(n) - a(n - 1)*cp(n - 1)
    335 dp(n) = (d(n) - a(n - 1)*dp(n - 1))/m
     330    m = b(i) - a(i - 1)*c_p(i - 1)
     331    c_p(i) = c(i)/m
     332    d_p(i) = (d(i) - a(i - 1)*d_p(i - 1))/m
     333end do
     334m = b(n) - a(n - 1)*c_p(n - 1)
     335d_p(n) = (d(n) - a(n - 1)*d_p(n - 1))/m
    336336
    337337! Backward substitution
    338 x(n) = dp(n)
     338x(n) = d_p(n)
    339339do i = n - 1,1,-1
    340     x(i) = dp(i) - cp(i)*x(i + 1)
     340    x(i) = d_p(i) - c_p(i)*x(i + 1)
    341341end do
    342342
Note: See TracChangeset for help on using the changeset viewer.