source: LMDZ6/trunk/tools/Max_diff_nc_with_lib/NR_util/iminloc.f90

Last change on this file was 1907, checked in by lguez, 11 years ago

Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:

$ svn propget copyright libf/phylmd/physiq.F90
Name of program: LMDZ
Creation date: 1984
Version: LMDZ5
License: CeCILL version 2
Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
See the license file in the root directory

Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 535 bytes
Line 
1module iminloc_m
2
3  ! Useless in Fortran 95.
4
5  implicit none
6
7  interface iminloc
8     module procedure iminloc_r, iminloc_d
9  end interface
10
11  private iminloc_r, iminloc_d
12
13contains
14
15  pure INTEGER FUNCTION iminloc_r(arr)
16    REAL, INTENT(IN) :: arr(:)
17    iminloc_r=minloc(arr, dim=1)
18  END FUNCTION iminloc_r
19
20  !******************************************************
21
22  pure INTEGER FUNCTION iminloc_d(arr)
23    DOUBLE PRECISION, INTENT(IN) :: arr(:)
24    iminloc_d=minloc(arr, dim=1)
25  END FUNCTION iminloc_d
26
27end module iminloc_m
Note: See TracBrowser for help on using the repository browser.