YAC 3.12.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 1560 of file yac.pyx.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 1564 of file yac.pyx.

Member Function Documentation

◆ action()

yac.Field.action ( self)
See also
yac_cget_action

Definition at line 1858 of file yac.pyx.

Here is the call graph for this function:

◆ collection_size()

yac.Field.collection_size ( self)
See also
yac_cget_collection_size_from_field_id

Definition at line 1837 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 1816 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 1569 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 1851 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_

Definition at line 1762 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

Definition at line 1628 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 1659 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

Definition at line 1672 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 1866 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 1937 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 1809 of file yac.pyx.

◆ name()

yac.Field.name ( self)
See also
yac_cget_field_name_from_field_id

Definition at line 1802 of file yac.pyx.

◆ put()

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

Definition at line 1718 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 1744 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 1823 of file yac.pyx.

◆ size()

yac.Field.size ( self)

The size of the corresponding points object.

Definition at line 1844 of file yac.pyx.

Here is the caller graph for this function:

◆ test()

yac.Field.test ( self)
See also
yac_ctest

Definition at line 1598 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 1830 of file yac.pyx.

Here is the caller graph for this function:

◆ update()

yac.Field.update ( self)
See also
yac_cupdate

Definition at line 1753 of file yac.pyx.

Here is the call graph for this function:

◆ wait()

yac.Field.wait ( self)
See also
yac_cwait

Definition at line 1609 of file yac.pyx.

◆ wait_coro()

yac.Field.wait_coro ( self)

Coroutine.

Blocks until the communication is completed.

Definition at line 1620 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 1566 of file yac.pyx.

◆ collection_size

yac.Field.collection_size

Definition at line 1730 of file yac.pyx.

◆ field_id

yac.Field.field_id

Definition at line 1565 of file yac.pyx.

◆ size

yac.Field.size

Definition at line 1730 of file yac.pyx.


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