Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
copy.h
Go to the documentation of this file.
1
9#ifndef OAKFIELD_COPY_H
10#define OAKFIELD_COPY_H
11
13
14#include <stdbool.h>
15#include <stddef.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21struct SimContext;
22
32
48 size_t *out_index);
49
60SimResult sim_copy_config(struct SimContext *context, size_t operator_index,
61 SimCopyOperatorConfig *out_config);
62
77SimResult sim_copy_update(struct SimContext *context, size_t operator_index,
78 const SimCopyOperatorConfig *config);
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif /* OAKFIELD_COPY_H */
SimResult sim_copy_update(struct SimContext *context, size_t operator_index, const SimCopyOperatorConfig *config)
Replace the configuration of a registered copy operator.
SimResult sim_add_copy_operator(struct SimContext *context, const SimCopyOperatorConfig *config, size_t *out_index)
Register a field copy utility operator.
SimResult sim_copy_config(struct SimContext *context, size_t operator_index, SimCopyOperatorConfig *out_config)
Copy the current configuration from a registered copy operator.
SimResult
Return codes shared by libsimcore modules.
Definition field.h:29
Declarative complex-first operator splitting (substep expansion at plan time).
Simulation runtime state.
Definition sim_context.h:70
Configuration for copying one compatible field into another.
Definition copy.h:26
bool accumulate
Definition copy.h:29
bool scale_by_dt
Definition copy.h:30
size_t input_field
Definition copy.h:27
size_t output_field
Definition copy.h:28