YAC 3.18.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_init_final.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 use mpi
16 implicit none
17
18 character(len=YAC_MAX_CHARLEN) :: comp_name
19
20 integer :: comp_id
21 integer :: npes, mype
22 integer :: ierror
23 integer :: local_communicator
24
25 call start_test("yac_finit and yac_ffinalize")
26
27 call yac_finit ( )
28
29 comp_name = 'ICON-ocean'
30 call yac_fdef_comp ( comp_name, comp_id )
31
32 call yac_fget_comp_comm ( comp_id, local_communicator )
33
34 call mpi_comm_size ( local_communicator, npes, ierror )
35 call mpi_comm_rank ( local_communicator, mype, ierror )
36 print *, mype, ':', ' we are running on ', npes, ' processors.'
37
38 call yac_ffinalize ( )
39
40 call stop_test
41
42 call exit_tests
43
44end program test_init_finalize
45
Fortran interface for the coupler termination.
Fortran interface for getting back a local MPI communicator.
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_init_finalize