blob: be86e18485317b41397d4a261cb0600fc5368bcb (
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
34
|
#pragma once
#include "common.hpp"
namespace kel {
namespace lbm {
/**
* I'm mixing up the geometry values regarding inflow etc. And a bit of logic
*/
template<typename InfoSchema>
class domain_registry final {
private:
saw::data<sch::Array<InfoSchema>> infos_;
public:
template<typename T>
saw::data<InfoSchema> get_template_id() {
static saw::data<InfoSchema> id{std::numeric_limits<typename saw::native_data_type<InfoSchema>::type>::max()};
if( id == std::numeric_limits<typename saw::native_data_type<InfoSchema>::type>::max() ){
auto err_or_id = search_or_register_id(T::name);
if(err_or_id.is_error()){
// Unsure about recovery from this
exit(-1);
}
}
}
};
void clean_grid(saw::data<Schema>& info_field){
}
}
}
|