FlexELA
Loading...
Searching...
No Matches
ELA.h
Go to the documentation of this file.
1#ifndef ELA_H
2#define ELA_H
3
5#undef ELA_USE_MPI
6#cmakedefine ELA_USE_MPI
9#ifdef ELA_USE_MPI
10#include <mpi.h>
11#endif
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
25#ifdef ELA_USE_MPI
47void ELA_Init(const int* N, const int* pad, const int& numELA, MPI_Comm cart_comm);
48#else
49void ELA_Init(const int* N, const int* pad, const int& numELA);
50#endif
51
59
81void ELA_InitLabels(const double* vof, const int& num, const int* labels);
82
95int ELA_GetLabel(const int& i, const int& j, const int& k, const int& n);
96
107
113void ELA_CreateCheckpoint(const char* filename);
114
122void ELA_LoadCheckpoint(const char* filename);
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif
void ELA_DeInit()
Cleanup ELA.
int ELA_GetLabel(const int &i, const int &j, const int &k, const int &n)
Get the first label at (i, j, k) for ELA instance n.
int ELA_ContainsNaNs()
Check if any values are NaN.
void ELA_Init(const int *N, const int *pad, const int &numELA, MPI_Comm cart_comm)
Initialize the ELA library.
void ELA_InitLabels(const double *vof, const int &num, const int *labels)
Initialize the source vector field (, Eq. 17)
void ELA_LoadCheckpoint(const char *filename)
Load a checkpoint.
void ELA_CreateCheckpoint(const char *filename)
Create a checkpoint file.