ICON Community Interface 0.4.0
Loading...
Searching...
No Matches
descrdata.py
Go to the documentation of this file.
1# @authors 11/2023 :: ICON Community Interface <comin@icon-model.org>
2#
3# SPDX-License-Identifier: BSD-3-Clause
4#
5# Please see the file LICENSE in the root of the source tree for this code.
6# Where software is supplied by third parties, it is indicated in the
7# headers of the routines.
8
9import comin
10import re
11
12
13# As the CI checks the output for changes we remove the memory addresses
14def dump(s):
15 print(re.sub("at 0x[0-9a-f]*>", "at BEEEEEEP>", str(s)))
16
17
18comin.print_info(comin.current_get_plugin_info())
19
21print(f"{dir(domain)=}")
22dump(f"{dir(domain.cells)=}")
23dump(f"{domain.cells.clon=}")
24dump(f"{ {name: getattr(domain, name) for name in dir(domain)}=}")
25
27dump(f"{ {name: getattr(glob, name) for name in dir(glob)}=}")
28
29print(f"{comin.descrdata_get_simulation_interval()=}")
30print(f"{comin.descrdata_get_cell_indices(42, 1, 3, 2, 3, 4)=}")
31print(f"{comin.descrdata_get_cell_npromz(1)=}")
32print(f"{comin.descrdata_get_edge_npromz(1)=}")
33print(f"{comin.descrdata_get_vert_npromz(1)=}")
34print(f"{comin.descrdata_index_lookup_glb2loc_cell(1,42)=}")
35print(f"{comin.setup_get_version()=}")
36
37print(f"{comin.parallel_get_host_mpi_rank()=}")
38
39
40@comin.register_callback(comin.EP_ATM_PHYSICS_BEFORE)
41def phy():
42 print(f"{comin.current_get_domain_id()=}")
43 print(f"{comin.current_get_datetime()=}")
current_get_plugin_info()
returns object describing the current plugin
Definition comin.py:146
descrdata_get_domain(jg)
returns descriptive data for a given domain, arguments: jg
Definition comin.py:167
descrdata_get_global()
returns global descriptive data object
Definition comin.py:172