Porting working 2D-seq and 2D-mpi with MG

This commit is contained in:
2024-07-09 17:34:23 +02:00
parent d5053b96ea
commit ae6303b519
19 changed files with 488 additions and 32 deletions

View File

@@ -43,4 +43,5 @@ itermax 500 # maximal number of pressure iteration in one time step
eps 0.00001 # stopping tolerance for pressure iteration
omg 1.8 # relaxation parameter for SOR iteration
gamma 0.9 # upwind differencing factor gamma
levels 5 # Multigrid levels
#===============================================================================

View File

@@ -1,12 +1,12 @@
# Supported: GCC, CLANG, ICC
TAG ?= CLANG
TAG ?= ICC
ENABLE_OPENMP ?= false
# Supported: sor, rb, mg
SOLVER ?= rb
SOLVER ?= mg
# Run in debug settings
DEBUG ?= false
#Feature options
OPTIONS += -DARRAY_ALIGNMENT=64
#OPTIONS += -DVERBOSE
OPTIONS += -DVERBOSE
#OPTIONS += -DDEBUG

View File

@@ -26,8 +26,8 @@ p_init 0.0 # initial value for pressure
xlength 1.0 # domain size in x-direction
ylength 1.0 # domain size in y-direction
imax 128 # number of interior cells in x-direction
jmax 128 # number of interior cells in y-direction
imax 800 # number of interior cells in x-direction
jmax 800 # number of interior cells in y-direction
# Time Data:
# ---------

View File

@@ -56,7 +56,7 @@ int main(int argc, char** argv)
nt++;
#ifdef VERBOSE
printf("TIME %f , TIMESTEP %f\n", t, solver.dt);
printf("TIME %f , TIMESTEP %f\n", t, d.dt);
#else
printProgress(t);
#endif