tcall BC from main - ns2dfd - 2D finite difference Navier Stokes solver for flu… | |
git clone git://src.adamsgaard.dk/ns2dfd | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit dd1cbc3067f419e3cc5263c2c892d4db0dd63a6c | |
parent c98b527b4afc40731b835e59e9fe57a431ee0dd6 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 3 Mar 2014 10:33:55 +0100 | |
call BC from main | |
Diffstat: | |
M src/Makefile | 4 ++-- | |
M src/main.c | 3 +++ | |
2 files changed, 5 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/Makefile b/src/Makefile | |
t@@ -3,10 +3,10 @@ LDLIBS=-lm | |
BIN=../ns2dfd | |
-$(BIN): main.o file_io.o utility.o | |
+$(BIN): main.o file_io.o utility.o boundary.o | |
$(CC) $(CFLAGS) $(LDLIBS) $^ -o $@ | |
-main.o: file_io.h utility.h | |
+main.o: file_io.h utility.h boundary.h | |
file_io.o: utility.h | |
clean: | |
diff --git a/src/main.c b/src/main.c | |
t@@ -5,6 +5,7 @@ | |
#include <string.h> | |
#include "file_io.h" | |
#include "utility.h" | |
+#include "boundary.h" | |
#define VERSION 0.1 | |
t@@ -88,6 +89,8 @@ int main(int argc, char** argv) | |
printf("\rt = %f/%.2f s, dt = %f s, last output: %d ", | |
t, t_end, dt, nfile-1); | |
+ set_boundary_conditions(w_left, w_right, w_top, w_bottom, P, U, V, | |
+ nx, ny); | |
t += dt; | |
n++; |