Input file
This should not have been a single commit. Now we have input files. Also, I've restructured the code and renamed modules.
This commit is contained in:
parent
0c27b98e2e
commit
50b4258c8f
22 changed files with 446 additions and 251 deletions
44
makefile
44
makefile
|
|
@ -1,15 +1,33 @@
|
|||
all:
|
||||
gfortran moduleConstantParameters.f90 -c -lopenblas -Ofast -fopenmp -Wall
|
||||
gfortran moduleReferenceValues.f90 -c -lopenblas -Ofast -fopenmp -Wall
|
||||
gfortran moduleOutput.f90 -c -lopenblas -Ofast -fopenmp -Wall
|
||||
gfortran moduleTableBC.f90 -c -lopenblas -Ofast -fopenmp -Wall
|
||||
gfortran moduleTableTtoZ.f90 -c -lopenblas -Ofast -fopenmp -Wall
|
||||
gfortran moduleTableTtoZne.f90 -c -lopenblas -Ofast -fopenmp -Wall
|
||||
gfortran vlaplex.f90 moduleConstantParameters.o moduleReferenceValues.o moduleOutput.o moduleTableBC.o moduleTableTtoZ.o moduleTableTtoZne.o -lopenblas -Ofast -fopenmp -Wall -o vlaplex
|
||||
# set folders
|
||||
TOPDIR = $(PWD)# top directory
|
||||
MODDIR := $(TOPDIR)/mod# module folder
|
||||
OBJDIR := $(TOPDIR)/obj# object folder
|
||||
SRCDIR := $(TOPDIR)/src# source folder
|
||||
|
||||
# compiler
|
||||
# gfortran:
|
||||
FC := gfortran
|
||||
|
||||
# compiler flags
|
||||
# gfortran:
|
||||
FCFLAGS := -fopenmp -Ofast -J $(MODDIR) -Wall -march=native -g
|
||||
|
||||
#Output file
|
||||
OUTPUT = vlaplex
|
||||
|
||||
export
|
||||
|
||||
all: $(OUTPUT)
|
||||
|
||||
$(OUTPUT): src.o
|
||||
|
||||
src.o:
|
||||
@mkdir -p $(MODDIR)
|
||||
@mkdir -p $(OBJDIR)
|
||||
$(MAKE) -C src $(OUTPUT)
|
||||
|
||||
clean:
|
||||
rm -f vlaplex
|
||||
rm -f *.mod
|
||||
rm -f *.smod
|
||||
rm -f *.o
|
||||
|
||||
rm -f $(OUTPUT)
|
||||
rm -f $(MODDIR)/*.mod
|
||||
rm -f $(MODDIR)/*.smod
|
||||
rm -f $(OBJDIR)/*.o
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue