MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / gather

Method gather

dedalus/core/system.py:134–143  ·  view source on GitHub ↗

Copy fields into system buffer.

(self)

Source from the content-addressed store, hash-verified

132 # return sys
133
134 def gather(self):
135 """Copy fields into system buffer."""
136 for field, view in zip(self.fields, self.array_views):
137 view[:] = field['c']
138 self.group_buffer[:] = self.perm * self.field_buffer
139
140 # stride = self.nfields
141 # for start, field in enumerate(self.fields):
142 # field.require_coeff_space()
143 # np.copyto(self.data[..., start::stride], field.data)
144
145 def scatter(self):
146 """Extract fields from system buffer."""

Callers 2

dump_profilesMethod · 0.45
gather_dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected