PyMPDATA_examples.Shipway_and_Hill_2012.arakawa_c

 1import numpy as np
 2
 3
 4class arakawa_c:
 5    @staticmethod
 6    def z_scalar_coord(grid):
 7        zZ = np.linspace(1 / 2, grid[0] - 1 / 2, grid[0])
 8        return zZ
 9
10    @staticmethod
11    def z_vector_coord(grid):
12        zZ = np.linspace(0, grid[0], grid[0] + 1)
13        return zZ
class arakawa_c:
 5class arakawa_c:
 6    @staticmethod
 7    def z_scalar_coord(grid):
 8        zZ = np.linspace(1 / 2, grid[0] - 1 / 2, grid[0])
 9        return zZ
10
11    @staticmethod
12    def z_vector_coord(grid):
13        zZ = np.linspace(0, grid[0], grid[0] + 1)
14        return zZ
@staticmethod
def z_scalar_coord(grid):
6    @staticmethod
7    def z_scalar_coord(grid):
8        zZ = np.linspace(1 / 2, grid[0] - 1 / 2, grid[0])
9        return zZ
@staticmethod
def z_vector_coord(grid):
11    @staticmethod
12    def z_vector_coord(grid):
13        zZ = np.linspace(0, grid[0], grid[0] + 1)
14        return zZ