seims.h File Reference

The SEIMS related definitions and utilities header. More...

#include "data_raster.hpp"

Go to the source code of this file.

Macros

#define IntRaster   ccgl::data_raster::clsRasterData<int>
 Integer-typed raster.
 
#define FloatRaster   ccgl::data_raster::clsRasterData<FLTPT, int>
 Float-typed raster with int-typed mask, specific for legacy SEIMS code.
 

Enumerations

enum  LayeringMethod {
  UP_DOWN ,
  DOWN_UP
}
 Grid layering method for routing and parallel computing. More...
 
enum  FlowDirMethod {
  D8 ,
  Dinf ,
  MFDmd
}
 Flow direction method for flow routing. More...
 
enum  GroupMethod {
  KMETIS = 0 ,
  PMETIS = 1
}
 Group method for parallel task scheduling. More...
 
enum  ScheduleMethod {
  SPATIAL = 0 ,
  TEMPOROSPATIAL = 1
}
 Parallel task scheduling strategy at subbasin level by MPI. More...
 

Variables

const int CCWDeltaRow [9] = { 0, 0, -1, -1, -1, 0, 1, 1, 1 }
 Delta Row (Y-axis) according to FlowDirCCW.
 
const int CCWDeltaCol [9] = { 0, 1, 1, 0, -1, -1, -1, 0, 1 }
 Delta Col (X-axis) according to FlowDirCCW.
 
const FLTPT _pi = 3.14159265358979323846
 Common used const. More...
 
const FLTPT _1div3 = 0.3333333333333333
 
const FLTPT _2div3 = 0.6666666666666666
 
const FLTPT _8div3 = 2.6666666666666665
 
const FLTPT SQ2 = 1.4142135623730951
 sqrt(2.0)
 
const FLTPT deg2rad = 0.017453292519943295
 PI / 180.
 
const FLTPT rad2deg = 57.29577951308232
 
const FLTPT MIN_FLUX = 1e-12
 PI * 2 / 365;. More...
 
const int MAX_ITERS_KW = 10
 maximum iterate number in kinematic wave method
 
const FLTPT MIN_SLOPE = 1e-4
 minimum slope (tan value)
 

Detailed Description

The SEIMS related definitions and utilities header.

Changelog:

  • 1. 2017-03-22 - lj - Initial implementation.
  • 2. 2021-04-06 - lj - Add Flow direction method enum.
Author
Liang-Jun Zhu
Date
2017-3-22

Variable Documentation

◆ _1div3

const FLTPT _1div3 = 0.3333333333333333
  1. / 3.

◆ _2div3

const FLTPT _2div3 = 0.6666666666666666
  1. / 3.

◆ _8div3

const FLTPT _8div3 = 2.6666666666666665
  1. / 3.

◆ _pi

const FLTPT _pi = 3.14159265358979323846

Common used const.

PI

◆ MIN_FLUX

const FLTPT MIN_FLUX = 1e-12

PI * 2 / 365;.

minimum flux (m3/s) in kinematic wave

◆ rad2deg

const FLTPT rad2deg = 57.29577951308232
  1. / PI