Droplet Lagrangian Transient One-dimensional Reacting Code Implementation of both liquid and gas phase governing equations.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

48 rindas
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