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;
}
|