grid.tex 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. \begin{figure}
  2. \centering
  3. \includegraphics[width=14cm]{Pics/PUMA_alternate_grid.png}
  4. \caption[]{PUMA T21 horizontal grid sorted by index}
  5. \label{pumat21igrid}
  6. \end{figure}
  7. PUMA uses internally (other than the Planet Simulator and PUMA version 15) an alternating Gaussian grid.
  8. This feature is unimportant for users, who don't change source code - the output file
  9. will still contain the usual Gaussian grid with the latitude index running from the most Northern latitude
  10. to the most Southern one. But for those, who fiddle around with the code or want to implement additional
  11. arrays it is important to understand the internal structure.
  12. The alternating grid was introduced for two reasons:
  13. 1) The number of values for Legendre polynomials could be reduced by a factor of two, because
  14. pairs of Northern and Southern latitudes with the same absolute value can be processed
  15. simultaneously. This is especially useful for very high resolution runs.
  16. E.g. a PUMA T1365 needs now ca. 45 GByte memory.
  17. 2) The Legendre transformation was recoded to use symmetric and antisymmetric Fourier
  18. coefficients for these latitude pairs resulting in strict conservation of symmetry
  19. and antisymmetry properties.
  20. Figure \ref{pumat21igrid} shows how the elements of a horizontal grid
  21. are stored in computer memory. The restrictions for parallel execution
  22. using alternating grids are:
  23. Because a latitude pair must not be separated to different processes,
  24. the maximum number of processes is half of the number of latitudes.
  25. Also it not possible to use an odd number of processes.
  26. Figure \ref{pumat21lgrid} shows a horizontal grid sorted from North to South
  27. and its corresponding latitude indices.
  28. The subroutines ALT2REG and REG2ALT (in legsym.f90) may be used to convert from
  29. alternating to regular Gaussian grid and vice versa.
  30. \begin{figure}
  31. \centering
  32. \includegraphics[width=14cm]{Pics/PUMA_alternate_grid_geogr.png}
  33. \caption[]{PUMA T21 horizontal grid sorted from North to South}
  34. \label{pumat21lgrid}
  35. \end{figure}