projects
/
LbmBenchmarkKernelsPublic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add single precision, add aa-vec-sl-soa kernel, updated doc
[LbmBenchmarkKernelsPublic.git]
/
src
/
Geometry.c
diff --git
a/src/Geometry.c
b/src/Geometry.c
index 0450c56d81fb6fea2b988bf16f7c0864b4e21f61..c7e3f204ffcf7e8d8c9bab1adf0f29899fdb895a 100644
(file)
--- a/
src/Geometry.c
+++ b/
src/Geometry.c
@@
-32,6
+32,8
@@
#include <errno.h>
#include <errno.h>
+static const char * g_geoTypeStr[] = { "box", "channel", "pipe", "blocks", "fluid" };
+
void GeoCreateByStr(const char * geometryType, int dims[3], int periodic[3], LatticeDesc * ld)
{
int type = -1;
void GeoCreateByStr(const char * geometryType, int dims[3], int periodic[3], LatticeDesc * ld)
{
int type = -1;
@@
-102,9
+104,9
@@
void GeoCreateByType(GEO_TYPES type, void * typeDetails, int dims[3], int period
Assert(type >= GEO_TYPE_MIN);
Assert(type <= GEO_TYPE_MAX);
Assert(type >= GEO_TYPE_MIN);
Assert(type <= GEO_TYPE_MAX);
- const char * geoTypeStr[] = { "box", "channel", "pipe", "blocks", "fluid" };
+
//
const char * geoTypeStr[] = { "box", "channel", "pipe", "blocks", "fluid" };
- printf("# geometry: %d x %d x %d nodes, type %d %s\n", dims[0], dims[1], dims[2], type, geoTypeStr[type]);
+
//
printf("# geometry: %d x %d x %d nodes, type %d %s\n", dims[0], dims[1], dims[2], type, geoTypeStr[type]);
ld->Dims[0] = dims[0];
ld->Dims[1] = dims[1];
ld->Dims[0] = dims[0];
ld->Dims[1] = dims[1];
@@
-113,6
+115,7
@@
void GeoCreateByType(GEO_TYPES type, void * typeDetails, int dims[3], int period
ld->PeriodicX = periodic[0];
ld->PeriodicY = periodic[1];
ld->PeriodicZ = periodic[2];
ld->PeriodicX = periodic[0];
ld->PeriodicY = periodic[1];
ld->PeriodicZ = periodic[2];
+ ld->Name = g_geoTypeStr[type];
LatticeT * lattice;
MemAlloc((void **)&lattice, sizeof(LatticeT) * dims[0] * dims[1] * dims[2]);
LatticeT * lattice;
MemAlloc((void **)&lattice, sizeof(LatticeT) * dims[0] * dims[1] * dims[2]);
This page took
0.046827 seconds
and
5
git commands to generate.