-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a working code e structured code for profiling
- Loading branch information
1 parent
eb82245
commit c5a6452
Showing
17 changed files
with
3,004 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# Solution files | ||
plot* | ||
restart.in | ||
residual.in |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
FC = gfortran | ||
EXE = run | ||
|
||
OP_COMP = -O3 -fopenmp | ||
OP_LINK = -O3 -fopenmp | ||
|
||
SRC = main.f90 \ | ||
constant.f90 \ | ||
declaration.f90 \ | ||
grid.f90 \ | ||
misc.f90 \ | ||
boundary.f90 \ | ||
weno.f90 \ | ||
flux.f90 \ | ||
odesolver.f90 | ||
|
||
OBJ = main.o \ | ||
constant.o \ | ||
declaration.o \ | ||
grid.o \ | ||
misc.o \ | ||
boundary.o \ | ||
weno.o \ | ||
flux.o \ | ||
odesolver.o | ||
|
||
all: $(EXE) | ||
|
||
compile: $(OBJ) | ||
|
||
$(EXE): $(OBJ) | ||
$(FC) -o $(EXE) $(OBJ) $(OP_LINK) | ||
|
||
# $(EXE): $(OBJ) | ||
# $(FC) $(OP_LINK) -o $(EXE) $(OBJ) | ||
|
||
$(OBJ): | ||
$(FC) $(OP_COMP) -c $(SRC_DIR)$(@:.o=.f90) -o $@ | ||
|
||
# %.o %.mod: %.f90 | ||
# $(FC) -c $(OP_COMP) $< | ||
|
||
.PHONY = clean | ||
|
||
clean: | ||
rm $(OBJ) *.mod | ||
|
||
cleaner: | ||
$(clean) | ||
rm $(EXE) | ||
rm *.dat | ||
|
||
constant.o: constant.f90 | ||
|
||
declaration.o: declaration.f90 constant.o | ||
|
||
grid.o: grid.f90 constant.o declaration.o | ||
|
||
misc.o: misc.f90 constant.o declaration.o | ||
|
||
boundary.o: boundary.f90 constant.o declaration.o | ||
|
||
weno.o: weno.f90 constant.o | ||
|
||
flux.o: flux.f90 constant.o declaration.o misc.o weno.o | ||
|
||
odesolver.o: odesolver.f90 constant.o declaration.o | ||
# odesolver.o: odesolver.f90 constant.o declaration.o | ||
|
||
# # viscous.o: viscous.f90 constant.o declaration.o | ||
|
||
# # gradient.o: gradient.f90 constant.o declaration.o | ||
|
||
# # flux.o: flux.f90 constant.o declaration.o | ||
|
||
# # residual.o: residual.f90 constant.o declaration.o flux.o | ||
|
||
# # wenonew.o: wenonew.f90 constant.o declaration.o flux.o | ||
|
||
# # odesolver.o: odesolver.f90 constant.o declaration.o | ||
|
||
# # main.o: main.f90 constant.o declaration.o grid.o misc.o \ | ||
# # viscous.o gradient.o residual.o wenonew.o odesolver.o | ||
|
||
main.o: main.f90 constant.o declaration.o grid.o misc.o \ | ||
boundary.o flux.o odesolver.o |
Oops, something went wrong.