oasis package¶
Submodules¶
oasis.oasis module¶
Copyright 2017 ARC Centre of Excellence for Climate Systems Science
author: Scott Wales <scott.wales@unimelb.edu.au>
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-
class
oasis.oasis.Oasis(name, coupled=True)[source]¶ Bases:
objectAn Oasis coupled model connection
May be used as a context manager to automatically terminate the coupling:
with Oasis('atmos') as o: o.register(partition) o.register(grid) o.register(variable) variable.put(t, data) variable.get(t, data)
oasis.partition module¶
Copyright 2017 ARC Centre of Excellence for Climate Systems Science
author: Scott Wales <scott.wales@unimelb.edu.au>
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-
class
oasis.partition.Apple(name, global_size, local_size, offset)[source]¶ Bases:
oasis.partition.Partition
-
class
oasis.partition.Serial(name, global_size)[source]¶ Bases:
oasis.partition.Partition
oasis.variable module¶
Copyright 2017 ARC Centre of Excellence for Climate Systems Science
author: Scott Wales <scott.wales@unimelb.edu.au>
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-
class
oasis.variable.Variable(name, partition, shape, type, inout)[source]¶ Bases:
objectOasis’ view of a model variable
Should be registered with the Oasis singleton before calling Oasis.enddef()