add sample code m3d

This commit is contained in:
2021-07-28 07:54:12 +08:00
parent d645456208
commit 5b65eab987
36 changed files with 597430 additions and 0 deletions

21
m3d/test/makefile Executable file
View File

@@ -0,0 +1,21 @@
CXX := g++
CXXFLAGS := -Xpreprocessor -fopenmp -O2 -lomp
M3DINCLUDE := -I../src
INCS:= $(wildcard ../src/*.h)
SRCS:= $(wildcard ../src/*.cpp)
OBJS:= $(patsubst %.cpp, %.o, $(SRCS))
# How to compile C++
%.o : %.cpp
$(CXX) $(CXXFLAGS) $(M3DINCLUDE) -c $< -o $@
#--------------------------------------------------------------
m3d: $(OBJS) $(INCS) test_m3d.o
$(CXX) $(CXXFLAGS) -o m3d test_m3d.o $(OBJS)
clean:
@rm -rf *.o *~ $(OBJS) *.vtk m3d