mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-22 15:33:29 -06:00
Add simple type for describing boundary conditions for the flow
equation.
This commit is contained in:
parent
371fd66ced
commit
5e3dc1daea
20
flow_bc.h
Normal file
20
flow_bc.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef FLOW_BC_H_INCLUDED
|
||||
#define FLOW_BC_H_INCLUDED
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
enum flowbc_type { UNSET, PRESSURE, FLUX };
|
||||
|
||||
typedef struct {
|
||||
enum flowbc_type *type;
|
||||
double *bcval;
|
||||
} flowbc_t;
|
||||
|
||||
|
||||
flowbc_t *
|
||||
allocate_flowbc(size_t nf);
|
||||
|
||||
void
|
||||
deallocate_flowbc(flowbc_t *fbc);
|
||||
|
||||
#endif /* FLOW_BC_H_INCLUDED */
|
Loading…
Reference in New Issue
Block a user