summaryrefslogtreecommitdiff
path: root/c++/examples/cavity_2d.cpp
blob: 0f54f1c388796f490c1bad7fc6ab22681456410c (plain)
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
26
27
28
29
30
31
32
33
#include "../descriptor.h"

#include <forstio/codec/data.h>

namespace schema {
using namespace kel::lbm::schema;

/**
 * Basic distribution function
 * Base type
 * D
 * Q
 * Scalar factor
 * D factor
 * Q factor
 */
using DfCellType = CellType<Float32, 2, 5, 0, 0, 1>;

using CellInfoType = CellType<UInt8, 2, 5, 1, 0, 0>;

using CellData = CellData<
	Member<DfCellType, "dfs">,
	Member<CellInfoType, "info">
>;
}

int main(){
	using namespace kel::lbm;

	saw::data<schema::CellData, saw::encode::Native> lattice{512, 512};

	return 0;
}