From a013d0af9bf0e61a4f10601ae8bd34a83ecb4f75 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 13 Aug 2014 14:15:43 +0000 Subject: [PATCH] rename folder The main code and the underlying data structures are too different to bother building a 2D and a 3D simulation from the same code base. --- {lb => d2q9}/Makefile | 2 +- {lb => d2q9}/esrc/d2q9.c | 2 +- lb/esrc/lb.h => d2q9/esrc/d2q9.h | 0 lb/esrc/lb_2d.c => d2q9/esrc/main.c | 2 +- {lb => d2q9}/hsrc/data.c | 0 {lb => d2q9}/hsrc/main.c | 2 +- {lb => d2q9}/shared.h | 0 7 files changed, 4 insertions(+), 4 deletions(-) rename {lb => d2q9}/Makefile (99%) rename {lb => d2q9}/esrc/d2q9.c (99%) rename lb/esrc/lb.h => d2q9/esrc/d2q9.h (100%) rename lb/esrc/lb_2d.c => d2q9/esrc/main.c (99%) rename {lb => d2q9}/hsrc/data.c (100%) rename {lb => d2q9}/hsrc/main.c (98%) rename {lb => d2q9}/shared.h (100%) diff --git a/lb/Makefile b/d2q9/Makefile similarity index 99% rename from lb/Makefile rename to d2q9/Makefile index c18c0d6..e4a6bb8 100644 --- a/lb/Makefile +++ b/d2q9/Makefile @@ -18,7 +18,7 @@ HAPP = $(DEST)/ep_main HOBJS = $(HDEST)/main.o $(HDEST)/data.o # epiphany applications -EAPPS = $(DEST)/lb_2d.srec +EAPPS = $(DEST)/main.srec ECOMMON = $(EDEST)/d2q9.o # folders diff --git a/lb/esrc/d2q9.c b/d2q9/esrc/d2q9.c similarity index 99% rename from lb/esrc/d2q9.c rename to d2q9/esrc/d2q9.c index 7a9d0b5..9b3b94a 100644 --- a/lb/esrc/d2q9.c +++ b/d2q9/esrc/d2q9.c @@ -2,7 +2,7 @@ #include #include "../shared.h" -#include "lb.h" +#include "d2q9.h" /* velocities */ static const int d2q9_v[9][2] = { { 0, 0}, diff --git a/lb/esrc/lb.h b/d2q9/esrc/d2q9.h similarity index 100% rename from lb/esrc/lb.h rename to d2q9/esrc/d2q9.h diff --git a/lb/esrc/lb_2d.c b/d2q9/esrc/main.c similarity index 99% rename from lb/esrc/lb_2d.c rename to d2q9/esrc/main.c index c254298..fbd21cc 100644 --- a/lb/esrc/lb_2d.c +++ b/d2q9/esrc/main.c @@ -6,7 +6,7 @@ #include #include -#include "lb.h" +#include "d2q9.h" /* shared memory overlay */ volatile shm_t shm SECTION(".shared_dram"); diff --git a/lb/hsrc/data.c b/d2q9/hsrc/data.c similarity index 100% rename from lb/hsrc/data.c rename to d2q9/hsrc/data.c diff --git a/lb/hsrc/main.c b/d2q9/hsrc/main.c similarity index 98% rename from lb/hsrc/main.c rename to d2q9/hsrc/main.c index ca244a4..48ec00a 100644 --- a/lb/hsrc/main.c +++ b/d2q9/hsrc/main.c @@ -25,7 +25,7 @@ static uint32_t pollflag; int main() { - char *filename = "bin/lb_2d.srec"; + char *filename = "bin/main.srec"; /* remove old results */ int dummy = system("rm -f ./tmp/i*.ppm ./tmp/anim.gif populations.dat timers.dat"); diff --git a/lb/shared.h b/d2q9/shared.h similarity index 100% rename from lb/shared.h rename to d2q9/shared.h -- 2.30.2