main.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /****************************************************************************
  2. *
  3. * MODULE: r.terraflow
  4. *
  5. * COPYRIGHT (C) 2007 Laura Toma
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. *****************************************************************************/
  18. #ifndef _main_h
  19. #define _main_h
  20. typedef struct {
  21. char* elev_grid; /* name of input elevation grid */
  22. char* filled_grid; /* name of output filled elevation grid */
  23. char* dir_grid; /* name of direction grid */
  24. char* stats; /* stats file */
  25. int d8; /* 1 if d8 flow model, 0 otherwise */
  26. int mem; /* main memory, in MB */
  27. int verbose; /* 1 if verbose, 0 otherwise */
  28. } user_options;
  29. #endif