fpakc/makefile
Jorge Gonzalez 075530e967 The electric field from a triangular element is incorrect. Issue with
directional derivative depending on the definition of first node. Trying
to solve it with searching for the right first node but it is very
difficult. A solution is required to allow triangular meshes in charged
simulations.
2020-11-26 09:04:26 +01:00

38 lines
637 B
Makefile

# compiler
FC := gfortran
TOPDIR = $(PWD)# top directory
MODDIR := $(TOPDIR)/mod# module folder
OBJDIR := $(TOPDIR)/obj# object folder
SRCDIR := $(TOPDIR)/src# source folder
JSONDIR := $(TOPDIR)/json-fortran-8.2.0/build
JSONLIB := $(JSONDIR)/lib/libjsonfortran.a
JSONINC := $(JSONDIR)/include
INCDIR :=
INCDIR += $(JSONINC)
VAR := ""
# compile flags
FCFLAGS := -fopenmp -Ofast -J $(MODDIR) -I $(INCDIR) -Wall -g
#Output file
OUTPUT = fpakc
export
all: $(OUTPUT)
$(OUTPUT): src.o
src.o:
@mkdir -p $(MODDIR)
@mkdir -p $(OBJDIR)
$(MAKE) -C src $(OUTPUT)
clean:
rm -f $(OUTPUT)
rm -f $(MODDIR)/*.mod
rm -f $(OBJDIR)/*.o