Droplet Lagrangian Transient One-dimensional Reacting Code Implementation of both liquid and gas phase governing equations.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

48 lines
965B

  1. #compiler =icpc
  2. EXE =gridTest
  3. compiler =g++
  4. GSL_INCLUDES =-I/usr/include/gsl
  5. GSL_LIBS =-L/usr/lib -lgsl -lgslcblas
  6. RM=rm -f
  7. compiler?=g++
  8. ifeq ($(compiler),g++)
  9. CPPFLAGS= -Wall -O3
  10. CPP=g++
  11. endif
  12. ifeq ($(compiler),icpc)
  13. CPPFLAGS= -Wall -O3 -gxx-name=/usr/bin/g++-7 -std=c++11
  14. CPP=icpc
  15. endif
  16. OBJS = parse.o gridRoutines.o main.o
  17. all: $(EXE)
  18. # pull in dependency info for *existing* .o files
  19. -include $(OBJS:.o=.d)
  20. parse.o: parse.cpp parse.h parse.hpp
  21. $(CPP) $(CPPFLAGS) -c parse.cpp -o parse.o
  22. $(CPP) -MM parse.cpp > parse.d
  23. gridRoutines.o: gridRoutines.cpp gridRoutines.h parse.h
  24. $(CPP) $(CPPFLAGS) -c gridRoutines.cpp -o gridRoutines.o
  25. $(CPP) -MM gridRoutines.cpp > gridRoutines.d
  26. main.o: main.cpp gridRoutines.cpp gridRoutines.h parse.h
  27. $(CPP) $(CPPFLAGS) -c main.cpp -o main.o
  28. $(CPP) -MM main.cpp > main.d
  29. $(EXE): $(OBJS)
  30. $(CPP) $(CPPFLAGS) $(GSL_INCLUDES) $(OBJS) -o $(EXE) $(GSL_LIBS)
  31. .PHONY: clean
  32. clean:
  33. rm -f $(EXE) $(OBJS) *.d