YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
yac.Field Class Reference

Store the field_id. More...

Collaboration diagram for yac.Field:
Collaboration graph

Public Member Functions

 __init__ (self, field_id, size=None)
 
 create (cls, str field_name, Component comp, points, collection_size, str timestep, TimeUnit timeunit, masks=None)
 
 test (self)
 
 wait (self)
 
 wait_coro (self)
 Coroutine.
 
 get (self, buf=None, asyn=False)
 
 get_coro (self, buf=None)
 Coroutine.
 
 get_raw (self, buf, frac_mask=None, asyn=False)
 
 put (self, buf, frac_mask=None)
 
 put_coro (self, buf, frac_mask=None)
 Coroutine.
 
 update (self)
 
 exchange (cls, send_field, recv_field, send_buf, recv_buf=None, send_frac_mask=None)
 
 name (self)
 
 grid_name (self)
 
 component_name (self)
 
 role (self)
 
 timestep (self)
 
 collection_size (self)
 
 size (self)
 The size of the corresponding points object.
 
 datetime (self)
 
 action (self)
 
 get_raw_interp_weights_data (self)
 
 get_raw_interp_weights_data_csr (self)
 

Data Fields

 field_id
 
 collection_size
 
 size
 

Protected Attributes

 _size
 

Detailed Description

Store the field_id.

Definition at line 1763 of file yac.pyx.

Constructor & Destructor Documentation

◆ __init__()

yac.Field.__init__ ( self,
field_id,
size = None )

Definition at line 1767 of file yac.pyx.

Member Function Documentation

◆ action()

yac.Field.action ( self)
See also
yac_cget_action

Can be checked before calling get/get_raw to determine whether the next call will actually receive data. If it is Action.NONE or Action.OUT_OF_BOUND, get/get_raw will return None instead of data and update can be called instead.

Definition at line 2093 of file yac.pyx.

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

◆ collection_size()

yac.Field.collection_size ( self)
See also
yac_cget_collection_size_from_field_id

Definition at line 2071 of file yac.pyx.

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

◆ component_name()

yac.Field.component_name ( self)
See also
yac_cget_component_name_from_field_id

Definition at line 2048 of file yac.pyx.

◆ create()

yac.Field.create ( cls,
str field_name,
Component comp,
points,
collection_size,
str timestep,
TimeUnit timeunit,
masks = None )
See also
yac_cdef_field

Definition at line 1772 of file yac.pyx.

Here is the call graph for this function:

◆ datetime()

yac.Field.datetime ( self)
See also
yac_cget_field_datetime

Definition at line 2085 of file yac.pyx.

Here is the call graph for this function:

◆ exchange()

yac.Field.exchange ( cls,
send_field,
recv_field,
send_buf,
recv_buf = None,
send_frac_mask = None )
See also
yac_cexchange_frac_
Returns
a tuple (data, send_info, recv_info). If no data is to be received on the recv side (i.e. recv_info is Action.NONE or Action.OUT_OF_BOUND), the send side is handled via put, update is called on the recv side and data is None.

Definition at line 1981 of file yac.pyx.

Here is the call graph for this function:

◆ get()

yac.Field.get ( self,
buf = None,
asyn = False )
See also
yac_cget_ and variants
Parameters
[out]bufreceive buffer, if None a numpy array of correct size is allocated
[in]asynif True the call returns immediately and must be completed with test or wait
Returns
a tuple (data, action). If no data is to be received (i.e. action is Action.NONE or Action.OUT_OF_BOUND), update is called instead and data is None.

Definition at line 1831 of file yac.pyx.

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

◆ get_coro()

yac.Field.get_coro ( self,
buf = None )

Coroutine.

Executes a get operation.

See also
yac_cget_async_
Parameters
[out]bufreceive buffer, if None a numpy array of correct size is allocated

Definition at line 1869 of file yac.pyx.

Here is the call graph for this function:

◆ get_raw()

yac.Field.get_raw ( self,
buf,
frac_mask = None,
asyn = False )
See also
yac_cget_raw_ and variants
Parameters
[in,out]bufreceive buffer, if None a numpy array of correct size is allocated
[in,out]frac_maskreceive buffer for frac_mask, if None a numpy array of correct size is allocated
[in]asynif True the call returns immediately and must be completed with test or wait
Returns
a tuple (data, frac_mask, action). If no data is to be received (i.e. action is Action.NONE or Action.OUT_OF_BOUND), update is called instead and data and frac_mask are None.

Definition at line 1882 of file yac.pyx.

Here is the call graph for this function:

◆ get_raw_interp_weights_data()

yac.Field.get_raw_interp_weights_data ( self)
See also
yac_cget_raw_interp_weights_data

Returns a dictionary with the corresponding values

Definition at line 2106 of file yac.pyx.

◆ get_raw_interp_weights_data_csr()

yac.Field.get_raw_interp_weights_data_csr ( self)
See also
yac_cget_raw_interp_weights_data

Returns a dictionary with the corresponding values

Definition at line 2177 of file yac.pyx.

Here is the call graph for this function:

◆ grid_name()

yac.Field.grid_name ( self)
See also
yac_cget_grid_name_from_field_id

Definition at line 2040 of file yac.pyx.

◆ name()

yac.Field.name ( self)
See also
yac_cget_field_name_from_field_id

Definition at line 2032 of file yac.pyx.

◆ put()

yac.Field.put ( self,
buf,
frac_mask = None )
See also
yac_cput_

Definition at line 1937 of file yac.pyx.

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

◆ put_coro()

yac.Field.put_coro ( self,
buf,
frac_mask = None )

Coroutine.

Executes a put operation.

See also
yac_cput_

Definition at line 1963 of file yac.pyx.

Here is the call graph for this function:

◆ role()

yac.Field.role ( self)
See also
yac_cget_role_from_field_id

Definition at line 2056 of file yac.pyx.

◆ size()

yac.Field.size ( self)

The size of the corresponding points object.

Definition at line 2078 of file yac.pyx.

Here is the caller graph for this function:

◆ test()

yac.Field.test ( self)
See also
yac_ctest

Definition at line 1801 of file yac.pyx.

Here is the caller graph for this function:

◆ timestep()

yac.Field.timestep ( self)
See also
yac_cget_timestep_from_field_id

Definition at line 2063 of file yac.pyx.

Here is the caller graph for this function:

◆ update()

yac.Field.update ( self)
See also
yac_cupdate

Definition at line 1972 of file yac.pyx.

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

◆ wait()

yac.Field.wait ( self)
See also
yac_cwait

Definition at line 1812 of file yac.pyx.

◆ wait_coro()

yac.Field.wait_coro ( self)

Coroutine.

Blocks until the communication is completed.

Definition at line 1823 of file yac.pyx.

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

Field Documentation

◆ _size

yac.Field._size
protected

Definition at line 1769 of file yac.pyx.

◆ collection_size

yac.Field.collection_size

Definition at line 1949 of file yac.pyx.

◆ field_id

yac.Field.field_id

Definition at line 1768 of file yac.pyx.

◆ size

yac.Field.size

Definition at line 1949 of file yac.pyx.


The documentation for this class was generated from the following file: