/[lmdze]/trunk/dyn3d/Inter_barxy/ord_coordm.f90
ViewVC logotype

Annotation of /trunk/dyn3d/Inter_barxy/ord_coordm.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (hide annotations)
Thu Jun 13 14:40:06 2019 UTC (5 years ago) by guez
File size: 709 byte(s)
Change all `.f` suffixes to `.f90`. (The opposite was done in revision
82.)  Because of change of philosopy in GNUmakefile: we already had a
rewritten rule for `.f`, so it does not make the makefile longer to
replace it by a rule for `.f90`. And it spares us options of
makedepf90 and of the compiler. Also we prepare the way for a simpler
`CMakeLists.txt`.

1 guez 98 module ord_coordm_m
2    
3     implicit none
4    
5     contains
6    
7    
8     !***********************************
9    
10     function ord_coordm(xi)
11    
12     ! From dyn3d/ord_coordm.F, version 1.1.1.1 2004/05/19 12:53:06
13     ! Author : P. Le Van
14    
15     ! This procedure converts to degrees, if necessary, and inverts the
16     ! order.
17    
18     use nr_util, only: pi
19    
20    
21     REAL, intent(in):: xi(:) ! angle, in rad or degrees
22     REAL ord_coordm(size(xi)) ! angle, in degrees
23    
24     !-----------------------------
25    
26     IF (xi(1) < 6.5) THEN
27     ! "xi" is in rad
28     ord_coordm(:) = xi(size(xi):1:-1) * 180. / pi
29     else
30     ! "xi" is in degrees
31     ord_coordm(:) = xi(size(xi):1:-1)
32     ENDIF
33    
34     END function ord_coordm
35    
36     end module ord_coordm_m

  ViewVC Help
Powered by ViewVC 1.1.21