YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_coroutines.py File Reference

Go to the source code of this file.

Namespaces

namespace  test_coroutines
 

Functions

 test_coroutines.recv_loop (field, delay=False)
 
 test_coroutines.send_loop (field)
 

Variables

 test_coroutines.yac_instance = yac.YAC()
 
 test_coroutines.comp1
 
 test_coroutines.comp2
 
 test_coroutines.grid1 = yac.Reg2dGrid("grid1", [-1, 0, 1], [-1, 0, 1])
 
 test_coroutines.points1 = grid1.def_points(yac.Location.CELL, [-0.5, 0.5], [-0.5, 0.5])
 
 test_coroutines.grid2 = yac.Reg2dGrid("grid2", [-1, 0, 1], [-1, 0, 1])
 
 test_coroutines.points2 = grid2.def_points(yac.Location.CELL, [-0.5, 0.5], [-0.5, 0.5])
 
 test_coroutines.field1 = yac.Field.create("field1", comp1, points1, 1, "1", yac.TimeUnit.HOUR)
 
 test_coroutines.field2 = yac.Field.create("field2", comp2, points2, 1, "1", yac.TimeUnit.HOUR)
 
 test_coroutines.field3 = yac.Field.create("field3", comp2, points2, 1, "2", yac.TimeUnit.HOUR)
 
 test_coroutines.interp = yac.InterpolationStack()
 

Detailed Description

Test
A test using coroutines with asyncio

Definition in file test_coroutines.py.