YAC 3.13.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_core Namespace Reference

Functions

 _main ()
 

Variables

 comm = MPI.COMM_WORLD
 
 rank = comm.rank
 
 level
 
 WARNING
 
 format
 
 grid_dir = sys.argv[1]
 
 reg_grid
 
 coords = reg_grid.add_coordinates(yac_location.YAC_LOC_CORNER)
 
 src_field = InterpField(coords)
 
 icon_grid
 
 icon_cell_field
 
 interp_stack
 
 weights
 
 on_existing
 
 interpolate = weights.get_interpolation(collection_selection=[1, 4, 2])
 
 src_size = src_field.basic_grid.get_data_size(yac_location.YAC_LOC_CORNER)
 
 src = np.stack([i*np.ones(src_size, dtype=np.float64) for i in range(5)], axis=0)
 
 tgt = interpolate(src)
 
 local_is_io
 
 io_ranks
 

Function Documentation

◆ _main()

test_core._main ( )
protected

Definition at line 84 of file test_core.py.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ comm

test_core.comm = MPI.COMM_WORLD

Definition at line 14 of file test_core.py.

◆ coords

test_core.coords = reg_grid.add_coordinates(yac_location.YAC_LOC_CORNER)

Definition at line 54 of file test_core.py.

◆ format

test_core.format

Definition at line 34 of file test_core.py.

◆ grid_dir

test_core.grid_dir = sys.argv[1]

Definition at line 37 of file test_core.py.

◆ icon_cell_field

test_core.icon_cell_field

Definition at line 57 of file test_core.py.

◆ icon_grid

test_core.icon_grid

Definition at line 57 of file test_core.py.

◆ interp_stack

test_core.interp_stack
Initial value:
1= InterpolationStack.from_list([("nnn", {"n": 3, "max_search_distance": 2.}),
2 ("fixed", {"value": 42.0})])

Definition at line 60 of file test_core.py.

◆ interpolate

test_core.interpolate = weights.get_interpolation(collection_selection=[1, 4, 2])

Definition at line 69 of file test_core.py.

◆ io_ranks

test_core.io_ranks

Definition at line 79 of file test_core.py.

◆ level

test_core.level

Definition at line 34 of file test_core.py.

◆ local_is_io

test_core.local_is_io

Definition at line 79 of file test_core.py.

◆ on_existing

test_core.on_existing

Definition at line 67 of file test_core.py.

◆ rank

int test_core.rank = comm.rank

Definition at line 15 of file test_core.py.

◆ reg_grid

test_core.reg_grid
Initial value:
1= BasicGrid.reg_2d_new("reg_grid",
2 np.linspace(-2, 2, 20),
3 np.linspace(-1.5, 1.5, 20))

Definition at line 39 of file test_core.py.

◆ src

test_core.src = np.stack([i*np.ones(src_size, dtype=np.float64) for i in range(5)], axis=0)

Definition at line 72 of file test_core.py.

◆ src_field

test_core.src_field = InterpField(coords)

Definition at line 55 of file test_core.py.

◆ src_size

test_core.src_size = src_field.basic_grid.get_data_size(yac_location.YAC_LOC_CORNER)

Definition at line 71 of file test_core.py.

◆ tgt

test_core.tgt = interpolate(src)

Definition at line 74 of file test_core.py.

◆ WARNING

test_core.WARNING

Definition at line 34 of file test_core.py.

◆ weights

test_core.weights
Initial value:
1= compute_weights(interp_stack,
2 src_field,
3 icon_cell_field)

Definition at line 63 of file test_core.py.