[891] | 1 | #include "xios_fortran_prefix.hpp" |
---|
| 2 | |
---|
| 3 | MODULE IREDUCE_AXIS_TO_SCALAR |
---|
| 4 | USE, INTRINSIC :: ISO_C_BINDING |
---|
| 5 | USE REDUCE_AXIS_TO_SCALAR_INTERFACE |
---|
[2620] | 6 | USE LOGICAL_BOOL_CONVERSION |
---|
[891] | 7 | |
---|
| 8 | TYPE txios(reduce_axis_to_scalar) |
---|
| 9 | INTEGER(kind = C_INTPTR_T) :: daddr |
---|
| 10 | END TYPE txios(reduce_axis_to_scalar) |
---|
| 11 | |
---|
| 12 | CONTAINS ! Fonctions disponibles pour les utilisateurs. |
---|
| 13 | |
---|
| 14 | SUBROUTINE xios(get_reduce_axis_to_scalar_handle)(idt,ret) |
---|
| 15 | IMPLICIT NONE |
---|
| 16 | CHARACTER(len = *), INTENT(IN) :: idt |
---|
| 17 | TYPE(txios(reduce_axis_to_scalar)) , INTENT(OUT):: ret |
---|
| 18 | CALL cxios_reduce_axis_to_scalar_handle_create(ret%daddr, idt, len(idt)) |
---|
| 19 | END SUBROUTINE xios(get_reduce_axis_to_scalar_handle) |
---|
| 20 | |
---|
| 21 | LOGICAL FUNCTION xios(is_valid_reduce_axis_to_scalar)(idt) |
---|
| 22 | IMPLICIT NONE |
---|
| 23 | CHARACTER(len = *) , INTENT(IN) :: idt |
---|
| 24 | LOGICAL (kind = 1) :: val |
---|
| 25 | |
---|
| 26 | CALL cxios_reduce_axis_to_scalar_valid_id(val, idt, len(idt)) |
---|
[2620] | 27 | CALL xios_bool_to_logical_0d(val) |
---|
[891] | 28 | xios(is_valid_reduce_axis_to_scalar) = val |
---|
| 29 | |
---|
| 30 | END FUNCTION xios(is_valid_reduce_axis_to_scalar) |
---|
| 31 | |
---|
| 32 | END MODULE IREDUCE_AXIS_TO_SCALAR |
---|