Droplet Lagrangian Transient One-dimensional Reacting Code Implementation of both liquid and gas phase governing equations.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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