YAC 3.18.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_def_comps.F90
Go to the documentation of this file.
1! Copyright (c) 2024 The YAC Authors
2!
3! SPDX-License-Identifier: BSD-3-Clause
4
8
9#include "test_macros.inc"
10
12
13 use utest
14 use yac
15 implicit none
16
17 integer :: comp_ids(2)
18
19 character(len=YAC_MAX_CHARLEN) :: comp_names(2)
20
21 logical :: result
22
23 call start_test("def_comps")
24
25 call yac_finit ( )
26
27 comp_names(1) = 'ICON-ocean'
28 comp_names(2) = 'ICON-atmosphere'
29 call yac_fdef_comps ( comp_names, 2, comp_ids )
30
31 print *, ' def_comps returned comp_ids ', comp_ids
32
33 result = all( comp_ids(:) /= -99 )
34
35 call test ( result )
36
37 call yac_ffinalize ( );
38
39 call stop_test
40
41 call exit_tests
42
43end program test_def_comps
Fortran interface for the coupler termination.
Definition utest.F90:5
subroutine, public start_test(name)
Definition utest.F90:20
subroutine, public stop_test()
Definition utest.F90:27
subroutine, public exit_tests()
Definition utest.F90:81
program test_def_comps