source: CPL/oasis3-mct_5.0/pyoasis/src/parameters.py @ 6328

Last change on this file since 6328 was 6328, checked in by aclsce, 17 months ago

First import of oasis3-mct_5.0 (from oasis git server, branch OASIS3-MCT_5.0)

File size: 2.0 KB
Line 
1# pyOASIS - A Python wrapper for OASIS
2# Authors: Philippe Gambron, Rupert Ford
3# Copyright (C) 2019 UKRI - STFC
4
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU Lesser General Public License as
7# published by the Free Software Foundation, either version 3 of the
8# License, or any later version.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU Lesser General Public License for more details.
14
15# A copy of the GNU Lesser General Public License, version 3, is supplied
16# with this program, in the file lgpl-3.0.txt. It is also available at
17# <https://www.gnu.org/licenses/lgpl-3.0.html>.
18
19
20from enum import Enum
21
22
23class OasisParameters(Enum):
24    """
25    Enumeration of parameters used by OASIS (values: OASIS_OUT, \
26    OASIS_IN)
27    """
28    OASIS_OK          = 0
29    OASIS_ERROR       = -10
30    OASIS_NOTDEF      = -2
31    OASIS_VAR_UNCPL   = -1
32    OASIS_OUT         = 20
33    OASIS_IN          = 21
34    OASIS_INOUT       = 2
35    OASIS_RECVD       = 3
36    OASIS_SENT        = 4
37    OASIS_LOCTRANS    = 5
38    OASIS_TOREST      = 6
39    OASIS_OUTPUT      = 7
40    OASIS_SENTOUT     = 8
41    OASIS_TORESTOUT   = 9
42    OASIS_FROMREST    = 10
43    OASIS_INPUT       = 11
44    OASIS_RECVOUT     = 12
45    OASIS_FROMRESTOUT = 13
46    OASIS_WAITGROUP   = 14
47    OK          = OASIS_OK
48    NOTDEF      = OASIS_NOTDEF
49    VAR_UNCPL   = OASIS_VAR_UNCPL
50    OUT         = OASIS_OUT
51    IN          = OASIS_IN
52    INOUT       = OASIS_INOUT
53    RECVD       = OASIS_RECVD
54    SENT        = OASIS_SENT
55    LOCTRANS    = OASIS_LOCTRANS
56    TOREST      = OASIS_TOREST
57    OUTPUT      = OASIS_OUTPUT
58    SENTOUT     = OASIS_SENTOUT
59    TORESTOUT   = OASIS_TORESTOUT
60    FROMREST    = OASIS_FROMREST
61    INPUT       = OASIS_INPUT
62    RECVOUT     = OASIS_RECVOUT
63    FROMRESTOUT = OASIS_FROMRESTOUT
64    WAITGROUP   = OASIS_WAITGROUP
Note: See TracBrowser for help on using the repository browser.