Try c++17

This commit is contained in:
Christian
2018-11-19 14:47:28 +01:00
parent abf2d2eddf
commit 147ba3fe0c
2 changed files with 4 additions and 5 deletions
-1
View File
@@ -35,7 +35,6 @@ double Interaction::getSigmaEla_m2() {
void Interaction::doElaScat (ranlib::Uniform<double> *rngUni) {
// Here theta and phi are COM - Angles.... prob not correct :( For m1 << m2 fine.
double theta = getRandomTheta(rngUni);
double phi = rngUni->random() * 2 * pi;
doKinElaScat(theta, phi);
+4 -4
View File
@@ -1,6 +1,6 @@
include $(HOMEBASE)/src/makeinclude/include.mak
CXXFLAGS = $(X_OFLAGS) -I.. $(X_INC)
CXXFLAGS = $(X_OFLAGS) -I.. $(X_INC)
LDFLAGS = $(X_LIB)
@@ -10,11 +10,11 @@ TARGETS = mcelectron
all: $(TARGETS)
mcelectron: main.o katrin.o simulation.o particle.o interaction.o tests.o
$(CXX) -o $@ $^ $(LDFLAGS) $(LOADLIBES)
mcelectron: main.o katrin.o simulation.o particle.o interaction.o tests.o constants.o
$(CXX) -std=c++17 -o $@ $^ $(LDFLAGS) $(LOADLIBES)
%.o : %.cpp
$(CXX) -Wno-write-strings -c $< $(CXXFLAGS) -o $@
$(CXX) -std=c++17 -Wno-write-strings -c $< $(CXXFLAGS) -o $@
clean:
rm *.o mcelectron