Try c++17
This commit is contained in:
@@ -35,7 +35,6 @@ double Interaction::getSigmaEla_m2() {
|
|||||||
|
|
||||||
void Interaction::doElaScat (ranlib::Uniform<double> *rngUni) {
|
void Interaction::doElaScat (ranlib::Uniform<double> *rngUni) {
|
||||||
// Here theta and phi are COM - Angles.... prob not correct :( For m1 << m2 fine.
|
// Here theta and phi are COM - Angles.... prob not correct :( For m1 << m2 fine.
|
||||||
|
|
||||||
double theta = getRandomTheta(rngUni);
|
double theta = getRandomTheta(rngUni);
|
||||||
double phi = rngUni->random() * 2 * pi;
|
double phi = rngUni->random() * 2 * pi;
|
||||||
doKinElaScat(theta, phi);
|
doKinElaScat(theta, phi);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
include $(HOMEBASE)/src/makeinclude/include.mak
|
include $(HOMEBASE)/src/makeinclude/include.mak
|
||||||
|
|
||||||
CXXFLAGS = $(X_OFLAGS) -I.. $(X_INC)
|
CXXFLAGS = $(X_OFLAGS) -I.. $(X_INC)
|
||||||
|
|
||||||
LDFLAGS = $(X_LIB)
|
LDFLAGS = $(X_LIB)
|
||||||
|
|
||||||
@@ -10,11 +10,11 @@ TARGETS = mcelectron
|
|||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
mcelectron: main.o katrin.o simulation.o particle.o interaction.o tests.o
|
mcelectron: main.o katrin.o simulation.o particle.o interaction.o tests.o constants.o
|
||||||
$(CXX) -o $@ $^ $(LDFLAGS) $(LOADLIBES)
|
$(CXX) -std=c++17 -o $@ $^ $(LDFLAGS) $(LOADLIBES)
|
||||||
|
|
||||||
%.o : %.cpp
|
%.o : %.cpp
|
||||||
$(CXX) -Wno-write-strings -c $< $(CXXFLAGS) -o $@
|
$(CXX) -std=c++17 -Wno-write-strings -c $< $(CXXFLAGS) -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm *.o mcelectron
|
rm *.o mcelectron
|
||||||
|
|||||||
Reference in New Issue
Block a user