dims_levels__ml137.F90 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #include "tm5.inc"
  2. !
  3. ! Levels.
  4. !
  5. module dims_levels
  6. use const_ec_v, only : lme, a_ec, b_ec
  7. use dims_grid, only : nregions_all
  8. implicit none
  9. ! --- in/out ------------------------------
  10. public
  11. ! --- const -------------------------------
  12. integer, parameter :: lm(0:nregions_all) = 137
  13. ! Only lowest layers are used for convec calculations (sub files)
  14. ! to avoid memory problems.
  15. #ifdef without_lmax_conv
  16. ! don't bother about computation time and storage ...
  17. integer,parameter :: lmax_conv = 137
  18. #else
  19. ! Quote Michiel van Weele:
  20. ! "..., convectie kan wel tot ~70 hPa (19km) gaan in de tropen."
  21. integer,parameter :: lmax_conv = 87
  22. #endif
  23. ! select ECMWF half levels;
  24. ! TM levels are number bottom-up:
  25. integer, parameter :: echlevs(0:137) = (/ &
  26. 137, 136, 135, 134, 133, 132, 131, 130, &
  27. 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, &
  28. 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, &
  29. 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, &
  30. 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, &
  31. 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, &
  32. 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, &
  33. 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, &
  34. 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, &
  35. 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, &
  36. 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, &
  37. 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, &
  38. 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, &
  39. 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 /)
  40. ! values filled in module geometry ...
  41. real :: bt(1:137+1)
  42. real :: at(1:137+1)
  43. end module dims_levels