Reference Guide  2.5.0
__init__.py
1 # -----------------------------------------------------------------------------
2 # BSD 3-Clause License
3 #
4 # Copyright (c) 2020-2024, Science and Technology Facilities Council.
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions are met:
9 #
10 # * Redistributions of source code must retain the above copyright notice, this
11 # list of conditions and the following disclaimer.
12 #
13 # * Redistributions in binary form must reproduce the above copyright notice,
14 # this list of conditions and the following disclaimer in the documentation
15 # and/or other materials provided with the distribution.
16 #
17 # * Neither the name of the copyright holder nor the names of its
18 # contributors may be used to endorse or promote products derived from
19 # this software without specific prior written permission.
20 #
21 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 # POSSIBILITY OF SUCH DAMAGE.
33 # -----------------------------------------------------------------------------
34 # Author J. Henrichs, Bureau of Meteorology
35 # Modified: I. Kavcic, L. Turner and O. Brunt, Met Office
36 # R. W. Ford and A. R. Porter, STFC Daresbury Lab
37 
38 '''Module for the LFRic domain.
39 '''
40 
41 # The order here is not alphabetical, but important because
42 # there are various dependencies between the modules (e.g.
43 # KernCallAccArgList imports KernCallArgList, ArgOrdering
44 # imports LFRicArgDescriptor, ...).
45 from psyclone.domain.lfric.function_space import FunctionSpace
46 from psyclone.domain.lfric.lfric_arg_descriptor import LFRicArgDescriptor
47 from psyclone.domain.lfric.lfric_constants import LFRicConstants
48 from psyclone.domain.lfric.arg_ordering import ArgOrdering
49 from psyclone.domain.lfric.kern_call_arg_list import KernCallArgList
50 from psyclone.domain.lfric.kern_call_acc_arg_list import KernCallAccArgList
52  KernCallInvokeArgList
53 from psyclone.domain.lfric.kernel_interface import KernelInterface
55  LFRicExtractDriverCreator
56 from psyclone.domain.lfric.lfric_symbol_table import LFRicSymbolTable
57 from psyclone.domain.lfric.lfric_types import LFRicTypes
58 from psyclone.domain.lfric.kern_stub_arg_list import KernStubArgList
59 from psyclone.domain.lfric.lfric_invoke import LFRicInvoke
61  MetadataToArgumentsRules
63  ArgIndexToMetadataIndex
64 from psyclone.domain.lfric.lfric_kern import LFRicKern
65 from psyclone.domain.lfric.lfric_loop import LFRicLoop
66 from psyclone.domain.lfric.lfric_kern_call_factory import LFRicKernCallFactory
67 from psyclone.domain.lfric.lfric_collection import LFRicCollection
68 from psyclone.domain.lfric.lfric_fields import LFRicFields
69 from psyclone.domain.lfric.lfric_run_time_checks import LFRicRunTimeChecks
70 from psyclone.domain.lfric.lfric_invokes import LFRicInvokes
71 from psyclone.domain.lfric.lfric_scalar_args import LFRicScalarArgs
72 from psyclone.domain.lfric.lfric_loop_bounds import LFRicLoopBounds
73 from psyclone.domain.lfric.lfric_kern_metadata import LFRicKernMetadata
74 from psyclone.domain.lfric.lfric_invoke_schedule import LFRicInvokeSchedule
75 from psyclone.domain.lfric.lfric_dofmaps import LFRicDofmaps
76 from psyclone.domain.lfric.lfric_stencils import LFRicStencils
77 
78 
79 __all__ = [
80  'ArgOrdering',
81  'FunctionSpace',
82  'KernCallAccArgList',
83  'KernCallArgList',
84  'KernelInterface',
85  'KernStubArgList',
86  'LFRicArgDescriptor',
87  'LFRicCollection',
88  'LFRicConstants',
89  'LFRicDofmaps',
90  'LFRicExtractDriverCreator',
91  'LFRicFields',
92  'LFRicInvoke',
93  'LFRicInvokes',
94  'LFRicInvokeSchedule',
95  'LFRicKern',
96  'LFRicKernCallFactory',
97  'LFRicKernMetadata',
98  'LFRicLoop',
99  'LFRicLoopBounds',
100  'LFRicRunTimeChecks',
101  'LFRicScalarArgs',
102  'LFRicStencils',
103  'LFRicSymbolTable']