Now integrate() can return the full trajectory and plotted in the Python; improved readablity

This commit is contained in:
Yohai Meiron 2020-04-12 21:37:03 -04:00
parent a2219af116
commit a624814a0c
5 changed files with 144 additions and 106 deletions

14
Makefile Normal file
View file

@ -0,0 +1,14 @@
OPTIMIZATION ?= 3
CXXFLAGS += -O$(OPTIMIZATION)
LIB += -lgsl
EXECUTABLE ?= main
default:
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INC) loadtxt.cpp main.cpp -o $(EXECUTABLE) $(LIB)
lib:
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -fPIC $(INC) loadtxt.cpp main.cpp -shared -o lib$(EXECUTABLE).so $(LIB)
clean:
rm -f *.o *.so $(EXECUTABLE)