| 1 |
! (C) Copyright 2013 ECMWF. |
| 2 |
! |
| 3 |
! This software is licensed under the terms of the Apache Licence Version 2.0 |
| 4 |
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 5 |
! In applying this licence, ECMWF does not waive the privileges and immunities |
| 6 |
! granted to it by virtue of its status as an intergovernmental organisation nor |
| 7 |
! does it submit to any jurisdiction. |
| 8 |
|
| 9 |
#include "atlas/atlas_f.h" |
| 10 |
|
| 11 |
module atlas_functions_module |
| 12 |
|
| 13 |
use, intrinsic :: iso_c_binding |
| 14 |
|
| 15 |
implicit none |
| 16 |
|
| 17 |
interface |
| 18 |
|
| 19 |
pure function atlas__functions__MDPI_sinusoid( lon, lat ) bind(C,name="atlas__functi& |
| 20 |
&ons__MDPI_sinusoid") |
| 21 |
use iso_c_binding, only: c_double |
| 22 |
real(c_double) :: atlas__functions__MDPI_sinusoid |
| 23 |
real(c_double), intent(in) :: lon, lat |
| 24 |
end function |
| 25 |
|
| 26 |
pure function atlas__functions__MDPI_harmonic( lon, lat ) bind(C,name="atlas__functi& |
| 27 |
&ons__MDPI_harmonic") |
| 28 |
use iso_c_binding, only: c_double |
| 29 |
real(c_double) :: atlas__functions__MDPI_harmonic |
| 30 |
real(c_double), intent(in) :: lon, lat |
| 31 |
end function |
| 32 |
|
| 33 |
pure function atlas__functions__MDPI_vortex( lon, lat ) bind(C,name="atlas__function& |
| 34 |
&s__MDPI_vortex") |
| 35 |
use iso_c_binding, only: c_double |
| 36 |
real(c_double) :: atlas__functions__MDPI_vortex |
| 37 |
real(c_double), intent(in) :: lon, lat |
| 38 |
end function |
| 39 |
|
| 40 |
pure function atlas__functions__MDPI_gulfstream( lon, lat ) bind(C,name="atlas__func& |
| 41 |
&tions__MDPI_gulfstream") |
| 42 |
use iso_c_binding, only: c_double |
| 43 |
real(c_double) :: atlas__functions__MDPI_gulfstream |
| 44 |
real(c_double), intent(in) :: lon, lat |
| 45 |
end function |
| 46 |
|
| 47 |
end interface |
| 48 |
|
| 49 |
contains |
| 50 |
|
| 51 |
elemental function MDPI_sinusoid(lon, lat) result(val) |
| 52 |
real(c_double), intent(in) :: lon, lat |
| 53 |
real(c_double) :: val |
| 54 |
val = atlas__functions__MDPI_sinusoid(lon, lat) |
| 55 |
end function MDPI_sinusoid |
| 56 |
|
| 57 |
! ----------------------------------------------------------------------------- |
| 58 |
|
| 59 |
elemental function MDPI_harmonic(lon, lat) result(val) |
| 60 |
real(c_double), intent(in) :: lon, lat |
| 61 |
real(c_double) :: val |
| 62 |
val = atlas__functions__MDPI_harmonic(lon, lat) |
| 63 |
end function MDPI_harmonic |
| 64 |
|
| 65 |
! ----------------------------------------------------------------------------- |
| 66 |
|
| 67 |
elemental function MDPI_vortex(lon, lat) result(val) |
| 68 |
real(c_double), intent(in) :: lon, lat |
| 69 |
real(c_double) :: val |
| 70 |
val = atlas__functions__MDPI_vortex(lon, lat) |
| 71 |
end function MDPI_vortex |
| 72 |
|
| 73 |
! ----------------------------------------------------------------------------- |
| 74 |
|
| 75 |
elemental function MDPI_gulfstream(lon, lat) result(val) |
| 76 |
real(c_double), intent(in) :: lon, lat |
| 77 |
real(c_double) :: val |
| 78 |
val = atlas__functions__MDPI_gulfstream(lon, lat) |
| 79 |
end function MDPI_gulfstream |
| 80 |
|
| 81 |
! ----------------------------------------------------------------------------- |
| 82 |
|
| 83 |
end module atlas_functions_module |