Files
BasicSolver
2D-mpi
2D-seq
src
Makefile
README.md
canal.par
config.mk
dcavity.par
include_CLANG.mk
include_GCC.mk
include_ICX.mk
residual.plot
surface.plot
vector.plot
3D-mpi
3D-seq
README.md
EnhancedSolver
PoissonSolver
.clang-format
.clang-tidy
.clangd
.gitignore
LICENSE
README.md
NuSiF-Solver/BasicSolver/2D-seq/include_CLANG.mk

20 lines
383 B
Makefile

CC = clang
GCC = cc
LINKER = $(CC)
ifeq ($(strip $(ENABLE_OPENMP)),true)
OPENMP = -fopenmp
#OPENMP = -Xpreprocessor -fopenmp #required on Macos with homebrew libomp
LIBS = # -lomp
endif
ifeq ($(strip $(DEBUG)),true)
CFLAGS = -O0 -g -std=c17
else
CFLAGS = -O3 -std=c17 $(OPENMP)
endif
VERSION = --version
LFLAGS = $(OPENMP) -lm
DEFINES = -D_GNU_SOURCE
INCLUDES =