field.h 529 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef FIELD_H
#define FIELD_H

#include "configuration.h"
#include "mesh.h"

typedef struct
{
   const conf_t *configuration;
   const mesh_t *mesh;

   int *data;
} int_field_t;

void int_field_init(int_field_t *field, const conf_t *configuration, const mesh_t *mesh);

void int_field_free(int_field_t *field);

void int_field_set_constant(int_field_t *field, int value);

int int_field_check_value(const int_field_t *field, const box_t *domain, int expected_value);

void int_field_halo_exchange(int_field_t *field);

#endif