Skip to content

Commit

Permalink
after fortran class
Browse files Browse the repository at this point in the history
  • Loading branch information
wme7 committed Jul 29, 2013
1 parent c49775a commit 42470eb
Show file tree
Hide file tree
Showing 24 changed files with 3,226 additions and 21 deletions.
53 changes: 53 additions & 0 deletions myf90/ESBGK/Stu_DG2D/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
FC=gfortran
FC_FLAGS=-O3
FC_LIBS=-lstdc++
# -lcudart -lcublas
#FC_LD_LIB=/usr/local/cuda-5.0/lib64
#FC_INCL=/usr/local/cuda-5.0/include

CC=g++
CC_FLAGS=-O3
CC_LIBS=
CC_LD_LIB=
CC_INCL=


#CU_CC=nvcc
#CU_FLAGS=-arch compute_20
#CU_LIBS=-lcublas


TARGET=stuDG_F90
SOURCE=stuDG.f90


$(TARGET): $(SOURCE) lgl_interp.o mesh_tools_2d_dg.o problem_setup_2d_dg.o \
lin_alg.o dg_solvers.o dg_c_solvers.o
$(FC) -o $(TARGET) $(SOURCE) $(FC_FLAGS) lgl_interp.o \
mesh_tools_2d_dg.o problem_setup_2d_dg.o lin_alg.o \
dg_solvers.o dg_c_solvers.o -L$(FC_LD_LIB) -I$(FC_INCL) $(FC_LIBS)

lgl_interp.o: lgl_interp.f90
$(FC) -c lgl_interp.f90 $(FC_FLAGS)

mesh_tools_2d_dg.o: mesh_tools_2d_dg.f90
$(FC) -c mesh_tools_2d_dg.f90 $(FC_FLAGS)

problem_setup_2d_dg.o: problem_setup_2d_dg.f90
$(FC) -c problem_setup_2d_dg.f90 $(FC_FLAGS)

lin_alg.o: lin_alg.f90
$(FC) -c lin_alg.f90 $(FC_FLAGS)

dg_solvers.o: dg_solvers.f90
$(FC) -c dg_solvers.f90 $(FC_FLAGS)

dg_c_solvers.o: dg_c_solvers.cpp
$(CC) -c dg_c_solvers.cpp $(CC_FLAGS)

#dg_cuda_solvers.o: dg_cuda_solvers.cu
# $(CU_CC) -c dg_cuda_solvers.cu $(CU_LIBS) $(CU_FLAGS)


clean:
rm *.o *.mod $(TARGET)
4 changes: 4 additions & 0 deletions myf90/ESBGK/Stu_DG2D/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
advection-2D-DG-CUDA
====================

a simple 2D linear advection code written in F90 with C, F90 and CUDA solvers. Provided with a MATLAB interface script for problem setup.
Loading

0 comments on commit 42470eb

Please sign in to comment.