Droplet Lagrangian Transient One-dimensional Reacting Code Implementation of both liquid and gas phase governing equations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
926B

  1. #ifndef PRINT_DEF
  2. #define PRINT_DEF
  3. #include <string.h> //for strings
  4. #include <stdio.h> //for printf,scanf
  5. #include <stdlib.h> //for atoi, atof
  6. #include <string>
  7. #include <cstring>
  8. #include <iostream>
  9. #include <stdexcept>
  10. #endif
  11. #ifndef PARSE_DEF
  12. #define PARSE_DEF
  13. #define MAXBUFLEN 200
  14. void getFromString (const char* buf, int* n);
  15. void getFromString (const char* buf, size_t* n);
  16. void getFromString (const char* buf, double* n);
  17. void getFromString (const char* buf, char* n);
  18. int parseString(FILE* input, const char* keyword, const size_t bufLen, char* n);
  19. template<typename T>
  20. int parseNumber(FILE* input, const char* keyword, const size_t bufLen, T* n);
  21. template<typename T>
  22. int parseArray(FILE* input, const char* keyword, const size_t bufLen,
  23. const size_t arrLen, T y[]);
  24. int parseDrop(FILE* input, const char* keyword,char dropSpec[][10],double dropMole[],const size_t bufLen);
  25. #include "parse.hpp"
  26. #endif