231using std::ostringstream;
237#define access _access
248long const CLOCK_T_MIN = LONG_MIN;
249double const CLOCK_T_RANGE =
static_cast<double>(LONG_MAX) -
static_cast<double>(CLOCK_T_MIN);
251string const PLATFORM =
"Alpha/MS Visual C++";
253string const PLATFORM =
"Intel x86/MS Visual C++";
255string const PLATFORM =
"Power PC/MS Visual C++";
256#elif defined _M_MRX000
257string const PLATFORM =
"MIPS/MS Visual C++";
259string const PLATFORM =
"Other/MS Visual C++";
266#error CPU not defined
270string const PLATFORM =
"Intel x86/GNU C++";
272unsigned long const CLOCK_T_MIN = 0;
273double const CLOCK_T_RANGE =
static_cast<double>(ULONG_MAX);
277string const PLATFORM =
"IBM RS-6000/GNU C++";
279long const CLOCK_T_MIN = LONG_MIN;
280double const CLOCK_T_RANGE =
static_cast<double>(LONG_MAX) -
static_cast<double>(CLOCK_T_MIN);
281#elif defined ultrasparc
283string const PLATFORM =
"Sun UltraSPARC/GNU C++";
285long const CLOCK_T_MIN = LONG_MIN;
286double const CLOCK_T_RANGE =
static_cast<double>(LONG_MAX) -
static_cast<double>(CLOCK_T_MIN);
289string const PLATFORM =
"Other/GNU C++";
291long const CLOCK_T_MIN = LONG_MIN;
292double const CLOCK_T_RANGE =
static_cast<double>(LONG_MAX) -
static_cast<double>(CLOCK_T_MIN);
301#define WEXITSTATUS(x) ((x)&0xff)
306string const PLATFORM =
"HP-UX aC++";
308unsigned long const CLOCK_T_MIN = 0;
311double const CLOCK_T_RANGE = 4294967295UL;
313double const CLOCK_T_RANGE =
static_cast<double>(ULONG_MAX);
677unsigned long const MASK = 0xfffffffful;
680double const PI = 3.141592653589793238462643;
709string const PROGRAM_NAME =
"Coastal Modelling Environment (CoastalME) version 1.3.4 (11 Mar 2025)";
713string const COPYRIGHT =
"(C) 2025 Andres Payo and David Favis-Mortlock";
714string const LINE =
"-------------------------------------------------------------------------------";
715string const DISCLAIMER1 =
"This program is distributed in the hope that it will be useful, but WITHOUT ANY";
716string const DISCLAIMER2 =
"WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A";
717string const DISCLAIMER3 =
"PARTICULAR PURPOSE. See the GNU General Public License for more details. You";
718string const DISCLAIMER4 =
"should have received a copy of the GNU General Public License along with this";
719string const DISCLAIMER5 =
"program; if not, contact the Free Software Foundation, Inc., 675 Mass Ave,";
722string const ABOUT =
"simulates the long-term behaviour of a coast. This initial version considers only simple soft cliff cross-shore effects";
723string const THANKS =
"Many thanks to:\n\tTom Ashby\n\tManuel Cobos Budia\n\tWilf Chun\n\tMark Dickson\n\tJim W. Hall\n\tMartin D. Hurst\n\tMatthew Ives\n\tRobert J. Nicholls\n\tIan Townend\n\tMike J.A. Walkden";
726string const USAGE =
"Usage: cme [OPTION]...";
727string const USAGE1 =
" --gdal List GDAL drivers";
728string const USAGE2 =
" --about Information about this program";
729string const USAGE3 =
" --help Display this text";
730string const USAGE4 =
" --home=DIRECTORY Specify the location of the .ini file etc.";
731string const USAGE5 =
" --datafile=FILE Specify the location and name of the main datafile";
756string const ADD_LAYERS =
" - Adding sediment layers to raster grid";
775string const ERR =
"*** ERROR ";
782 "<-----ELAPSED----><-SEA-><----POTENTIAL---><----------ACTUAL-----------><----POTENTIAL----><------------ACTUAL------------><-----------ACTUAL-----------><-SEDIMENT-><--CLIFF COLLAPSE--><SUSP>";
785 " TIME DEPTH PLATFORM EROSION PLATFORM EROSION BEACH EROSION BEACH EROSION BEACH DEPOSITION INPUT EVENT EROSION DEPOSITION SED";
788 "Time Hours Years Avg % Sea All Erod % Sea All Erod <-sea avg-> % Sea All Erod % Sea All Erodng <-sea avg-> % Sea All Deposit <-sea-> <-coast avg><--sea->";
790 "Step Area Sea Area Area Sea Area F S C Area Sea Area Area Sea Area F S C Area Sea Area S C F S C F S C S C F";
792 " Avg Avg Avg Avg Avg Avg Avg Avg Avg";
795 "PER-ITERATION RESULTS =========================================================================================================================================================================";
797 "END OF SIMULATION: HYDROLOGY ==================================================================================================================================================================";
799 "END OF SIMULATION: SEDIMENT MOVEMENT ==========================================================================================================================================================";
801 "END OF SIMULATION: PERFORMANCE ================================================================================================================================================================";
1125 return ((a > b) ? a : b);
1131 T max = (a < b) ? b : a;
1132 return ((max < c) ? c : max);
1138 return ((a < b) ? a : b);
1144 return (a < b ? (a < c ? a : c) : (b < c ? b : c));
1151 return ((a < 0) ? -a : a);
1158 return ((a >= b) && (a <= c));
1161template <
typename T>
1180#pragma GCC diagnostic push
1181#pragma GCC diagnostic ignored "-Wfloat-equal"
1182 if ((0 == d1) && (
tAbs(d2) < dEpsilon))
1185 else if ((0 == d2) && (
tAbs(d1) < dEpsilon))
1189 return ((
tAbs(d1 - d2) < (dEpsilon *
tAbs(d1))) ?
true :
false);
1190#pragma GCC diagnostic pop
1193#ifndef DOXYGEN_SHOULD_SKIP_THIS
1195double dRound(
double const);
1203 FillToWidth(
char f,
int w) : chFill(f), nWidth(w)
1209ostream &
operator<<(ostream&,
const FillToWidth&);
1211string strDbl(
double const,
int const);
1212string strDblRight(
double const,
int const,
int const,
bool const =
true);
1214string strCentre(
const char*,
int const);
1215string strCentre(
const string&,
int const);
1216string strRight(
const string&,
int const);
1217string strRight(
const char*,
int const);
1218string strLeft(
const string&,
int const);
1219string strLeft(
const char*,
int const);
1220string strRightPerCent(
double const,
double const,
int const,
int const,
bool const =
true);
int const LF_SUBCAT_DRIFT_BEACH
int const NO_NONZERO_THICKNESS_LAYERS
int const RASTER_PLOT_POLYGON
string const VECTOR_FLOOD_SWL_SETUP_SURGE_LINE_CODE
string const TIME_SERIES_CLIFF_COLLAPSE_DEPOSITION_CODE
string const READING_UNCONS_SAND_SEDIMENT_FILE
string const TIME_SERIES_SUSPENDED_SEDIMENT_CODE
string const RASTER_PLOT_POLYGON_UPDRIFT_OR_DOWNDRIFT_TITLE
string const RASTER_PLOT_CLIFF_COLLAPSE_EROSION_COARSE_TITLE
string const VECTOR_PLOT_BREAKING_WAVE_HEIGHT_TITLE
string const RASTER_POTENTIAL_PLATFORM_EROSION_MASK_CODE
int const MAX_LEN_SHADOW_LINE_TO_IGNORE
string const RASTER_SEA_DEPTH_NAME
int const WAVE_MODEL_COVE
int const RTN_ERR_READING_SEDIMENT_INPUT_EVENT
string const RASTER_PLOT_WAVE_FLOOD_LINE_TITLE
int const RTN_ERR_CLIFFNOTCH
string const VECTOR_PLOT_INVALID_NORMALS_TITLE
string const VECTOR_FLOOD_SWL_SETUP_SURGE_RUNUP_LINE_NAME
string const VECTOR_PLOT_NORMALS_TITLE
string const RASTER_CLIFF_COLLAPSE_EROSION_FINE_CODE
bool const USE_DEEP_WATER_FOR_SHADOW_LINE
string const TIME_SERIES_PLATFORM_EROSION_CODE
int const VECTOR_PLOT_STORM_SURGE
string const RASTER_PLOT_CLIFF_COLLAPSE_EROSION_SAND_TITLE
int const RTN_ERR_NO_TOP_LAYER
string const RASTER_PLOT_COAST_TITLE
string const RASTER_SHADOW_DOWNDRIFT_ZONE_NAME
string const RASTER_POTENTIAL_BEACH_EROSION_NAME
string const RASTER_PLOT_POLYGON_TITLE
string const ACTIVE_ZONE_FILENAME
string const RASTER_COARSE_CONS_CODE
string const RASTER_BEACH_MASK_NAME
string const RASTER_TOTAL_CLIFF_COLLAPSE_DEPOSITION_SAND_NAME
string const WAVE_HEIGHT_Y_FILENAME
string const VECTOR_POLYGON_NODE_CODE
string const RASTER_USUAL_OUTPUT_CODE
string const RASTER_DEEP_WATER_WAVE_ORIENTATION_CODE
int const VECTOR_PLOT_BREAKING_WAVE_HEIGHT
int const VECTOR_PLOT_POLYGON_NODES
int const SAVGOL_POLYNOMIAL_MAX_ORDER
int const RTN_ERR_GRIDTOLINE
string const RASTER_POLYGON_UPDRIFT_OR_DOWNDRIFT_NAME
string const RASTER_DEEP_WATER_WAVE_HEIGHT_CODE
int const RTN_ERR_TIMEUNITS
int const RASTER_PLOT_LOCAL_SLOPE_OF_CONSOLIDATED_SEDIMENT
int const RASTER_PLOT_TOTAL_ACTUAL_BEACH_EROSION
int const RTN_ERR_NO_SEAWARD_END_OF_PROFILE_2
string const TIME_SERIES_FLOOD_SETUP_SURGE_RUNUP_CODE
string const VECTOR_ALL_OUTPUT_CODE
string const VECTOR_FLOOD_SWL_SETUP_SURGE_RUNUP_LINE_CODE
string const READING_VECTOR_FILES
string const RASTER_PLOT_BEACH_DEPOSITION_TITLE
int const RASTER_PLOT_BEACH_DEPOSITION
int const FLOOD_LOCATION_POINT_GEOMETRY
string const RASTER_TOTAL_CLIFF_COLLAPSE_DEPOSITION_SAND_CODE
int const RASTER_PLOT_SUSPENDED_SEDIMENT
string const RASTER_FINE_CONS_NAME
int const VECTOR_PLOT_NORMALS
int const MIN_INLAND_OFFSET_FOR_BEACH_EROSION_ESTIMATION
int const LF_SUBCAT_CLIFF_ON_COASTLINE
string const VECTOR_WAVE_ANGLE_AND_HEIGHT_NAME
string const RASTER_PLOT_DEEP_WATER_WAVE_ORIENTATION_TITLE
string const READING_CONS_FINE_SEDIMENT_FILE
string const VECTOR_PLOT_CLIFF_NOTCH_SIZE_TITLE
string const RASTER_PLOT_FINE_CONSOLIDATED_SEDIMENT_TITLE
string const RASTER_SLICE_NAME
int const RTN_ERR_NOCOAST
int const RTN_ERR_DEMFILE
string const READING_BASEMENT
int const RASTER_PLOT_FINE_UNCONSOLIDATED_SEDIMENT
int const ELEV_ABOVE_SEDIMENT_TOP
string const RASTER_TOP_NAME
string const VECTOR_PLOT_FLOOD_SWL_SETUP_SURGE_RUNUP_LINE_TITLE
int const SEDIMENT_INPUT_EVENT_LOCATION_MAX_LAYER
string const RASTER_ACTIVE_ZONE_CODE
string const RASTER_CLIFF_COLLAPSE_EROSION_COARSE_CODE
string const RASTER_BEACH_DEPOSITION_NAME
int const RTN_ERR_COAST_CANT_FIND_EDGE_CELL
string const RASTER_PLOT_AVG_SEA_DEPTH_TITLE
string const VECTOR_POLYGON_BOUNDARY_NAME
int const RTN_ERR_CSHORE_FILE_INPUT
int const LF_CAT_SEDIMENT_INPUT
string const VECTOR_PLOT_DOWNDRIFT_BOUNDARY_TITLE
int const SAND_CONS_RASTER
string const RASTER_SAND_CONS_CODE
string const PER_ITER_HEAD
string const TIME_SERIES_FLOOD_SETUP_SURGE_CODE
string const RASTER_BEACH_PROTECTION_NAME
bool bIsBetween(T a, T b, T c)
int const RTN_ERR_MEMALLOC
int const SEDIMENT_INPUT_EVENT_LOCATION_VEC
string const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_DEPOSIT_COARSE_TITLE
int const RTN_ERR_SCAPE_SHAPE_FUNCTION_FILE
int const UNCONS_SEDIMENT_EQUATION_KAMPHUIS
string const RASTER_PLOT_BEACH_MASK_TITLE
int const DIRECTION_DOWNCOAST
int const LF_SUBCAT_SEDIMENT_INPUT_CONSOLIDATED
int const RASTER_PLOT_INUNDATION_MASK
int const RTN_ERR_WAVESTATION_LOCATION
string const RASTER_PLOT_AVG_WAVE_ORIENTATION_TITLE
string const RASTER_PLOT_SETUP_SURGE_FLOOD_MASK_TITLE
int const RASTER_PLOT_SEDIMENT_TOP_ELEVATION_ELEV
string const RASTER_SAND_UNCONS_NAME
string const RASTER_PLOT_ACTUAL_BEACH_EROSION_TITLE
string const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_EROSION_FINE_TITLE
int const LF_CAT_SEDIMENT_INPUT_SUBMERGED
int const RASTER_PLOT_ACTUAL_BEACH_EROSION
int const RTN_ERR_LOGFILE
string const RASTER_COAST_NORMAL_CODE
string const RASTER_PLOT_POLYGON_GAIN_OR_LOSS_TITLE
bool const CREATE_SHADOW_ZONE_IF_HITS_GRID_EDGE
string const VECTOR_PLOT_MEAN_WAVE_ENERGY_TITLE
string const RASTER_INUNDATION_MASK_NAME
string const RASTER_PLOT_DEEP_WATER_WAVE_HEIGHT_TITLE
string const RASTER_AVG_SUSP_SED_CODE
string const RASTER_PLOT_WAVE_ORIENTATION_TITLE
string const RASTER_PLOT_BASEMENT_ELEVATION_TITLE
string const TIME_SERIES_STILL_WATER_LEVEL_NAME
int const MAX_SEAWARD_OFFSET_FOR_CLIFF_TALUS
string const VECTOR_BREAKING_WAVE_HEIGHT_NAME
string const RASTER_PLOT_INTERVENTION_CLASS_TITLE
string const RASTER_COAST_CODE
string const RASTER_PLOT_COARSE_UNCONSOLIDATED_SEDIMENT_TITLE
int const RTN_ERR_SHADOW_ZONE_FLOOD_START_POINT
string const RASTER_SEDIMENT_INPUT_EVENT_CODE
string const VECTOR_WAVE_ENERGY_SINCE_COLLAPSE_CODE
string const RASTER_WAVE_ORIENTATION_CODE
int const RTN_ERR_EDGE_OF_GRID
int const LOG_FILE_LOW_DETAIL
string const VECTOR_RUN_UP_CODE
string const VECTOR_PLOT_POLYGON_NODES_TITLE
string const VECTOR_PLOT_RUN_UP_TITLE
string const RASTER_WAVE_PERIOD_NAME
string const READING_CONS_SAND_SEDIMENT_FILE
int const RASTER_PLOT_POTENTIAL_PLATFORM_EROSION_MASK
string const RASTER_PLOT_AVG_WAVE_HEIGHT_TITLE
string const RASTER_PLOT_TOTAL_POTENTIAL_PLATFORM_EROSION_TITLE
int const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_DEPOSIT_COARSE
int const RTN_ERR_GRIDCREATE
int const RTN_ERR_RASTER_GIS_OUT_FORMAT
double const CSHORE_FRICTION_FACTOR
string const TIME_SERIES_BEACH_EROSION_NAME
int const RTN_ERR_LANDFORM_TO_GRID
string const RASTER_ALL_OUTPUT_CODE
string const RASTER_CLIFF_COLLAPSE_EROSION_SAND_CODE
int const RASTER_PLOT_SAND_CONSOLIDATED_SEDIMENT
string const VECTOR_PLOT_FLOOD_LINE_TITLE
int const RASTER_PLOT_AVG_WAVE_HEIGHT
string const VECTOR_FLOOD_SWL_SETUP_LINE_NAME
int const RTN_ERR_RASTER_FILE_WRITE
string const RASTER_CLIFF_COLLAPSE_EROSION_SAND_NAME
string const RASTER_POLYGON_UPDRIFT_OR_DOWNDRIFT_CODE
int const MAX_NUM_PREV_ORIENTATION_VALUES
string const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_DEPOSIT_SAND_TITLE
string const PER_ITER_HEAD4
string const RASTER_SEDIMENT_TOP_NAME
string const RASTER_WAVE_FLOOD_LINE_CODE
string const RASTER_FINE_UNCONS_NAME
string const INITIALIZING_NOTICE
string const RASTER_COAST_NAME
int const IO_INTERVENTION_STRUCT
double const DEPTH_OVER_DB_INCREMENT
int const WAVE_MODEL_CSHORE
string const RASTER_COARSE_UNCONS_CODE
int const RASTER_PLOT_FINE_CONSOLIDATED_SEDIMENT
int const RTN_ERR_BADPARAM
string const RASTER_CLIFF_COLLAPSE_EROSION_FINE_NAME
string const READING_RASTER_FILES
char const PATH_SEPARATOR
int const RTN_ERR_SHADOW_ZONE_FLOOD_FILL_NOGRID
int const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_DEPOSIT_SAND
int const VECTOR_PLOT_DOWNDRIFT_BOUNDARY
string const VECTOR_INVALID_NORMALS_CODE
string const RASTER_SEDIMENT_INPUT_EVENT_NAME
string const RASTER_BASEMENT_ELEVATION_CODE
string const RASTER_CLIFF_COLLAPSE_DEPOSITION_SAND_NAME
int const RASTER_PLOT_ACTIVE_ZONE
int const RTN_ERR_PROFILEWRITE
string const RASTER_WAVE_HEIGHT_CODE
string const RASTER_CLIFF_COLLAPSE_DEPOSITION_COARSE_CODE
string const RASTER_SHADOW_DOWNDRIFT_ZONE_CODE
string const PER_ITER_HEAD2
string const RASTER_INTERVENTION_CLASS_CODE
int const VECTOR_PLOT_COAST_CURVATURE
int const CAPE_POINT_MIN_SPACING
string const RASTER_ACTIVE_ZONE_NAME
string const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_EROSION_SAND_TITLE
int const LOG_FILE_MIDDLE_DETAIL
string const VECTOR_PLOT_WAVE_SETUP_TITLE
string const TIME_SERIES_FLOOD_SETUP_SURGE_RUNUP_NAME
string const RASTER_INTERVENTION_HEIGHT_NAME
string const RASTER_POTENTIAL_PLATFORM_EROSION_CODE
string const RASTER_PLOT_LANDFORM_TITLE
int const RTN_ERR_WAVE_INTERPOLATION_LOOKUP
int const IO_INTERVENTION_NONE
string const VECTOR_COAST_NAME
string const RASTER_POTENTIAL_BEACH_EROSION_CODE
string const READING_CONS_COARSE_SEDIMENT_FILE
int const LF_SUBCAT_SEDIMENT_INPUT_UNCONSOLIDATED
string const VECTOR_SHADOW_BOUNDARY_NAME
string const READING_TIDE_DATA_FILE
string const RASTER_SHADOW_ZONE_NAME
int const RASTER_PLOT_DEEP_WATER_WAVE_PERIOD
int const RTN_ERR_RASTER_FILE_READ
string const RASTER_COARSE_CONS_NAME
string const VECTOR_MEAN_WAVE_ENERGY_CODE
string const RASTER_TOTAL_CLIFF_COLLAPSE_EROSION_SAND_NAME
string const VECTOR_STORM_SURGE_CODE
string const RASTER_PLOT_WAVE_HEIGHT_TITLE
double const D50_SAND_DEFAULT
int const RASTER_PLOT_CLIFF_COLLAPSE_DEPOSIT_SAND
int const RASTER_PLOT_COAST
string const RASTER_ACTUAL_BEACH_EROSION_NAME
string const VECTOR_PLOT_AVG_WAVE_ANGLE_AND_HEIGHT_TITLE
string const RASTER_PLOT_TOTAL_POTENTIAL_BEACH_EROSION_TITLE
string const RASTER_TOTAL_CLIFF_COLLAPSE_EROSION_COARSE_CODE
string const READING_SCAPE_SHAPE_FUNCTION_FILE
int const RTN_ERR_CSHORE_ERROR
string const RASTER_SETUP_SURGE_RUNUP_FLOOD_MASK_NAME
string const TIME_SERIES_BEACH_DEPOSITION_NAME
string const READING_INTERVENTION_CLASS_FILE
string const VECTOR_PLOT_COAST_CURVATURE_TITLE
string const RASTER_PLOT_POTENTIAL_BEACH_EROSION_TITLE
bool bFPIsEqual(const T d1, const T d2, const T dEpsilon)
int const VECTOR_PLOT_RUN_UP
int const VEC_FIELD_DATA_INT
string const RASTER_AVG_WAVE_ORIENTATION_NAME
string const RASTER_TOTAL_BEACH_DEPOSITION_NAME
string const VECTOR_USUAL_OUTPUT_CODE
int const RASTER_PLOT_POLYGON_UPDRIFT_OR_DOWNDRIFT
int const RTN_ERR_PROFILESPACING
string const READING_UNCONS_COARSE_SEDIMENT_FILE
int const VECTOR_PLOT_INVALID_NORMALS
double const WALKDEN_HALL_PARAM_2
int const MAX_NUM_SHADOW_ZONES
int const VEC_FIELD_DATA_ANY
string const RASTER_DEEP_WATER_WAVE_PERIOD_NAME
string const RASTER_PLOT_SETUP_SURGE_RUNUP_FLOOD_MASK_TITLE
string const ENDHYDROLOGYHEAD
string const RASTER_TOTAL_CLIFF_COLLAPSE_DEPOSITION_COARSE_NAME
int const RASTER_PLOT_POLYGON_GAIN_OR_LOSS
string const RASTER_PLOT_SAND_CONSOLIDATED_SEDIMENT_TITLE
string const RASTER_WAVE_PERIOD_CODE
string const FLOOD_LOCATION_ID
double const STRAIGHT_COAST_MAX_DETAILED_CURVATURE
string const VECTOR_STORM_SURGE_NAME
int const RASTER_PLOT_DEEP_WATER_WAVE_ORIENTATION
string const READING_DEEP_WATER_WAVE_FILE
int const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_EROSION_COARSE
int const GRID_EDGE_CLOSED
int const RTN_ERR_BOUNDING_BOX
string const TIME_SERIES_CLIFF_COLLAPSE_NET_CODE
int const GRID_EDGE_RECIRCULATE
int const RTN_ERR_OPEN_DEEP_WATER_WAVE_DATA
string const RASTER_PLOT_ACTUAL_PLATFORM_EROSION_TITLE
int const RASTER_PLOT_COARSE_UNCONSOLIDATED_SEDIMENT
int const FLOOD_LOCATION_VEC
int const DEEP_WATER_WAVE_STATIONS_VEC
int const RTN_ERR_RUNDATA
string const RASTER_PLOT_CLIFF_COLLAPSE_DEPOSIT_COARSE_TITLE
int const RASTER_PLOT_AVG_WAVE_ORIENTATION
string const RASTER_PLOT_TOTAL_BEACH_DEPOSITION_TITLE
int const RTN_ERR_SEDIMENT_INPUT_EVENT_LOCATION
string const RASTER_TOTAL_ACTUAL_BEACH_EROSION_CODE
string const INITIALIZING
string const VECTOR_NORMALS_CODE
string const RASTER_SLICE_CODE
int const CLOCK_CHECK_ITERATION
string const RASTER_BEACH_DEPOSITION_CODE
string const FINAL_OUTPUT
string const RASTER_SHADOW_ZONE_CODE
int const RASTER_PLOT_WAVE_ORIENTATION
string const DEEP_WATER_WAVE_STATION_ID
string const RASTER_SUSP_SED_NAME
string const RASTER_TOTAL_BEACH_DEPOSITION_CODE
double const MASS_BALANCE_TOLERANCE
string const VECTOR_AVG_WAVE_ANGLE_AND_HEIGHT_NAME
string const ENDSEDIMENTHEAD
string const RASTER_LOCAL_SLOPE_NAME
int const RASTER_PLOT_BEACH_MASK
string const RASTER_AVG_SEA_DEPTH_NAME
int const RASTER_PLOT_WAVE_FLOOD_LINE
int const RTN_ERR_FLOOD_LOCATION
int const RASTER_PLOT_SEDIMENT_INPUT
int const RASTER_PLOT_POTENTIAL_BEACH_EROSION
string const VECTOR_FLOOD_SWL_SETUP_SURGE_LINE_NAME
double const CLIFF_COLLAPSE_HEIGHT_INCREMENT
string const VECTOR_RUN_UP_NAME
int const RTN_ERR_NO_SEAWARD_END_OF_PROFILE_1
string const TIME_SERIES_BEACH_CHANGE_NET_NAME
int const RTN_ERR_PROFILE_END_INSUFFICIENT_DEPTH
int const MAX_CLIFF_TALUS_LENGTH
int const RTN_ERR_NO_ADJACENT_POLYGON
string const RASTER_PLOT_SEDIMENT_TOP_ELEVATION_ELEV_TITLE
int const RASTER_PLOT_AVG_SUSPENDED_SEDIMENT
string const RASTER_AVG_WAVE_HEIGHT_NAME
int const LOG_FILE_HIGH_DETAIL
int const VECTOR_PLOT_COAST
int const VECTOR_PLOT_FLOOD_LINE
string const VECTOR_DEEP_WATER_WAVE_ANGLE_AND_HEIGHT_CODE
int const LF_SUBCAT_INTERVENTION_NON_STRUCT
double const D50_COARSE_DEFAULT
string const RASTER_PLOT_BEACH_PROTECTION_TITLE
int const RASTER_PLOT_TOTAL_POTENTIAL_PLATFORM_EROSION
string const RASTER_PLOT_POTENTIAL_PLATFORM_EROSION_MASK_TITLE
string const READING_LANDFORM_FILE
int const LF_SUBCAT_DRIFT_TALUS
string const VECTOR_FLOOD_LINE_NAME
string const RASTER_WAVE_FLOOD_LINE_NAME
double const INVERSE_DEPTH_OVER_DB_INCREMENT
int const LF_SUBCAT_CLIFF_INLAND
int const RTN_ERR_READING_CSHORE_FILE_OUTPUT
string const RASTER_BEACH_PROTECTION_CODE
string const RASTER_TOTAL_POTENTIAL_PLATFORM_EROSION_CODE
string const RASTER_POTENTIAL_PLATFORM_EROSION_NAME
double const CSHORE_SURGE_LEVEL
int const INTERVENTION_CLASS_RASTER
string const RASTER_ACTUAL_PLATFORM_EROSION_NAME
string const VECTOR_CLIFF_NOTCH_SIZE_NAME
int const RTN_ERR_CLIFF_NOT_IN_POLYGON
int const PROFILE_CHECK_DIST_FROM_COAST
string const VECTOR_PLOT_COAST_TITLE
int const DEEP_WATER_WAVE_STATIONS_POINT_GEOMETRY
int const VEC_FIELD_DATA_OTHER
string const TIME_SERIES_CLIFF_COLLAPSE_EROSION_CODE
int const VECTOR_PLOT_CLIFF_NOTCH_SIZE
string const RASTER_COARSE_UNCONS_NAME
string const PROGRAM_NAME
int const RASTER_PLOT_INTERVENTION_CLASS
int const RTN_ERR_VECTOR_FILE_READ
string const RASTER_BEACH_MASK_CODE
string const VECTOR_WAVE_ENERGY_SINCE_COLLAPSE_NAME
int const RTN_ERR_NOSEACELLS
int const RTN_ERR_VECTOR_GIS_OUT_FORMAT
string const VECTOR_PLOT_FLOOD_SWL_SETUP_LINE_TITLE
string const RASTER_AVG_WAVE_HEIGHT_CODE
double const MIN_LENGTH_OF_SHADOW_ZONE_LINE
int const VEC_GEOMETRY_POLYGON
int const VECTOR_PLOT_WAVE_ENERGY_SINCE_COLLAPSE
string const READING_INTERVENTION_HEIGHT_FILE
string const TIME_SERIES_FLOOD_SETUP_SURGE_NAME
string const RASTER_SETUP_SURGE_FLOOD_MASK_CODE
string const TIME_SERIES_BEACH_EROSION_CODE
int const RASTER_PLOT_BEACH_PROTECTION
int const RASTER_PLOT_AVG_SEA_DEPTH
int const VECTOR_PLOT_WAVE_ANGLE_AND_HEIGHT
string const RASTER_PLOT_NORMAL_TITLE
string const RASTER_TOTAL_POTENTIAL_BEACH_EROSION_CODE
int const SMOOTH_SAVITZKY_GOLAY
double const STRAIGHT_COAST_MAX_SMOOTH_CURVATURE
int const COAST_LENGTH_MIN_X_PROF_SPACE
string const VECTOR_DEEP_WATER_WAVE_ANGLE_AND_HEIGHT_NAME
string const PER_ITER_HEAD3
int const SEDIMENT_INPUT_EVENT_LOCATION_LINE_GEOMETRY
double const SEDIMENT_ELEV_TOLERANCE
int const RASTER_PLOT_CLIFF_COLLAPSE_DEPOSIT_COARSE
int const RASTER_PLOT_OVERALL_TOP_ELEVATION
string const RASTER_PLOT_SHADOW_ZONE_TITLE
string const RASTER_AVG_SEA_DEPTH_CODE
int const RASTER_PLOT_TOTAL_BEACH_DEPOSITION
string const RASTER_SETUP_SURGE_FLOOD_MASK_NAME
string const VECTOR_PLOT_SHADOW_BOUNDARY_TITLE
int const RTN_ERR_NO_PROFILES_2
int const CLIFF_COLLAPSE_LENGTH_INCREMENT
string const RASTER_INTERVENTION_CLASS_NAME
int const FLOOD_FILL_START_OFFSET
int const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_EROSION_FINE
int const PROFILE_CHECK_ALONG_COAST_MULTIPLIER
string const RASTER_WAVE_ORIENTATION_NAME
int const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_EROSION_SAND
string const SEDIMENT_INPUT_EVENT_LOCATION_ID
int const SMOOTH_RUNNING_MEAN
int const RTN_ERR_PROFILE_ENDPOINT_IS_INLAND
string const RASTER_DEEP_WATER_WAVE_ORIENTATION_NAME
int const RTN_ERR_NO_SEAWARD_END_OF_PROFILE_4
string const RASTER_SAND_UNCONS_CODE
string const RUN_END_NOTICE
string const RASTER_POTENTIAL_PLATFORM_EROSION_MASK_NAME
int const RASTER_PLOT_CLIFF_COLLAPSE_EROSION_FINE
string const TIME_SERIES_PLATFORM_EROSION_NAME
string const RASTER_PLOT_AVG_SUSPENDED_SEDIMENT_TITLE
int const RTN_ERR_BAD_MULTILINE
string const READING_SED_INPUT_EVENT_FILE
int const RASTER_PLOT_ACTUAL_PLATFORM_EROSION
string const READING_FILE_LOCATIONS
int const VECTOR_PLOT_POLYGON_BOUNDARY
int const VEC_GEOMETRY_LINE
string const RASTER_PLOT_INTERVENTION_HEIGHT_TITLE
int const VECTOR_PLOT_MEAN_WAVE_ENERGY
string const RASTER_WAVE_HEIGHT_NAME
string const VECTOR_PLOT_POLYGON_BOUNDARY_TITLE
int const RTN_ERR_TEXT_FILE_WRITE
string const VECTOR_CLIFF_NOTCH_SIZE_CODE
bool const SAVE_CSHORE_OUTPUT
string const RASTER_SETUP_SURGE_RUNUP_FLOOD_MASK_CODE
bool const ACCEPT_SHORT_PROFILES
string const RASTER_PLOT_SEA_DEPTH_TITLE
string const RASTER_PLOT_TOTAL_ACTUAL_PLATFORM_EROSION_TITLE
string const RASTER_LANDFORM_CODE
int const RTN_ERR_VECTOR_FILE_WRITE
string const TIME_SERIES_CLIFF_COLLAPSE_NET_NAME
string const RASTER_TOTAL_ACTUAL_PLATFORM_EROSION_CODE
string const RASTER_PLOT_SEDIMENT_INPUT_EVENT_TITLE
int const RASTER_PLOT_INTERVENTION_HEIGHT
int const RTN_ERR_READING_DEEP_WATER_WAVE_DATA
string const RASTER_ACTUAL_PLATFORM_EROSION_CODE
int const SAND_UNCONS_RASTER
string const VECTOR_BREAKING_WAVE_HEIGHT_CODE
int const RASTER_PLOT_TOTAL_POTENTIAL_BEACH_EROSION
string const TIME_SERIES_CLIFF_COLLAPSE_EROSION_NAME
int const IO_INTERVENTION_NON_STRUCT
int const RTN_ERR_NO_PROFILES_1
string const RASTER_TOTAL_POTENTIAL_BEACH_EROSION_NAME
unsigned long const SEDIMENT_INPUT_EVENT_ERROR
int const VEC_FIELD_DATA_REAL
int const RTN_ERR_TIDEDATAFILE
int const RASTER_PLOT_SAND_UNCONSOLIDATED_SEDIMENT
string const RASTER_PLOT_FINE_UNCONSOLIDATED_SEDIMENT_TITLE
string const RASTER_SAND_CONS_NAME
int const MIN_PROFILE_SIZE
string const RASTER_PLOT_DEEP_WATER_WAVE_PERIOD_TITLE
int const VEC_GEOMETRY_POINT
int const RASTER_PLOT_POTENTIAL_PLATFORM_EROSION
int const MIN_PARALLEL_PROFILE_SIZE
string const RASTER_BASEMENT_ELEVATION_NAME
int const FINE_UNCONS_RASTER
string const RASTER_PLOT_INUNDATION_MASK_TITLE
string const RASTER_SUSP_SED_CODE
int const RTN_ERR_CANNOT_INSERT_POINT
string const RASTER_PLOT_POTENTIAL_PLATFORM_EROSION_TITLE
int const DIRECTION_UPCOAST
string const VECTOR_SHADOW_BOUNDARY_CODE
int const COARSE_UNCONS_RASTER
string const VECTOR_COAST_CURVATURE_CODE
int const LF_SUBCAT_DRIFT_MIXED
double const D50_FINE_DEFAULT
string const TIME_SERIES_SEA_AREA_NAME
int const RASTER_PLOT_WAVE_HEIGHT
string const VECTOR_ALL_RIVER_FLOOD_OUTPUT_CODE
string const VECTOR_COAST_CURVATURE_NAME
int const RTN_ERR_CLIFFDEPOSIT
int const RTN_ERR_UNKNOWN
int const RASTER_PLOT_SHADOW_ZONE
double const MAX_LAND_LENGTH_OF_SHADOW_ZONE_LINE
int const VECTOR_PLOT_AVG_WAVE_ANGLE_AND_HEIGHT
string strDblToStr(const T &t)
int const RASTER_PLOT_DEEP_WATER_WAVE_HEIGHT
int const LF_CAT_SEDIMENT_INPUT_NOT_SUBMERGED
string const RASTER_COAST_NORMAL_NAME
string const PER_ITER_HEAD5
string const READING_SUSPENDED_SEDIMENT_FILE
string const RASTER_CLIFF_COLLAPSE_DEPOSITION_SAND_CODE
int const RTN_ERR_CANNOT_ASSIGN_COASTAL_LANDFORM
int const VECTOR_PLOT_DEEP_WATER_WAVE_ANGLE_AND_HEIGHT
string const READING_FLOOD_LOCATION
string const RASTER_PLOT_TOTAL_CLIFF_COLLAPSE_EROSION_COARSE_TITLE
string const RASTER_SEA_DEPTH_CODE
string const RASTER_PLOT_SHADOW_DOWNDRIFT_ZONE_TITLE
int const RTN_ERR_OUTFILE
string const VECTOR_INVALID_NORMALS_NAME
string const ALLOCATE_MEMORY
string const RASTER_LOCAL_SLOPE_CODE
string const RASTER_CLIFF_COLLAPSE_EROSION_COARSE_NAME
string const READING_RUN_DATA
string const TIME_SERIES_SUSPENDED_SEDIMENT_NAME
int const RASTER_PLOT_COARSE_CONSOLIDATED_SEDIMENT
int const RTN_ERR_NO_SOLUTION_FOR_ENDPOINT
int const ELEV_IN_BASEMENT
string const RASTER_LANDFORM_NAME
int const RASTER_PLOT_TOTAL_ACTUAL_PLATFORM_EROSION
string const TIME_SERIES_CLIFF_COLLAPSE_DEPOSITION_NAME
string const RASTER_FINE_CONS_CODE
int const SUSP_SED_RASTER
int const SEDIMENT_INPUT_EVENT_LOCATION_POINT_GEOMETRY
int const VECTOR_PLOT_WAVE_SETUP
string const PROGRAM_NAME_SHORT
string const VECTOR_POLYGON_BOUNDARY_CODE
string const WAVE_ENERGY_FLUX
string const RASTER_FINE_UNCONS_CODE
int const FINE_CONS_RASTER
int const COARSE_CONS_RASTER
string const TIME_SERIES_STILL_WATER_LEVEL_CODE
int const LF_SUBCAT_DRIFT_DUNES
int const RASTER_PLOT_SETUP_SURGE_RUNUP_FLOOD_MASK
int const COAST_LENGTH_MAX
int const RASTER_PLOT_BASEMENT_ELEVATION
double const BEACH_PROTECTION_HB_RATIO
int const CSHOREARRAYOUTSIZE
The size of the arrays output by CShore. If you change this, then you must also set the same value on...
string const VECTOR_PLOT_WAVE_ENERGY_SINCE_COLLAPSE_TITLE
int const MIN_PROFILE_SPACING
string const RASTER_SEDIMENT_TOP_CODE
int const RASTER_PLOT_LANDFORM
string const EROSION_POTENTIAL_LOOKUP_FILE
double const WALKDEN_HALL_PARAM_1
string const VECTOR_WAVE_ANGLE_AND_HEIGHT_CODE
int const VEC_GEOMETRY_OTHER
string const RASTER_PLOT_SUSPENDED_SEDIMENT_TITLE
string const VECTOR_PLOT_STORM_SURGE_TITLE
string const RASTER_PLOT_CLIFF_COLLAPSE_EROSION_FINE_TITLE
int const RTN_ERR_BAD_INDEX
string const RASTER_TOTAL_ACTUAL_PLATFORM_EROSION_NAME
int const UNCONS_SEDIMENT_EQUATION_CERC
string const RASTER_POLYGON_NAME
string const RASTER_POLYGON_GAIN_OR_LOSS_CODE
int const RTN_ERR_PROFILE_ENDPOINT_AT_GRID_EDGE
int const RTN_ERR_TRACING_COAST
int const DEEP_WATER_WAVE_STATIONS_MAX_LAYER
int const RASTER_PLOT_CLIFF_COLLAPSE_EROSION_COARSE
int const FLOOD_LOCATION_MAX_LAYER
string const RASTER_TOTAL_CLIFF_COLLAPSE_EROSION_SAND_CODE
int const RTN_ERR_SEDIMENT_INPUT_EVENT
string const RASTER_TOTAL_CLIFF_COLLAPSE_EROSION_FINE_NAME
int const RTN_ERR_CSHORE_EMPTY_PROFILE
string const VECTOR_POLYGON_NODE_NAME
string const VECTOR_AVG_WAVE_ANGLE_AND_HEIGHT_CODE
string const TIME_SERIES_BEACH_CHANGE_NET_CODE
int const VEC_FIELD_DATA_STRING
string const RASTER_INTERVENTION_HEIGHT_CODE
string const WAVE_HEIGHT_X_FILENAME
string const VECTOR_FLOOD_LINE_CODE
string const TIME_SERIES_BEACH_DEPOSITION_CODE
string const VECTOR_DOWNDRIFT_BOUNDARY_NAME
string const READING_UNCONS_FINE_SEDIMENT_FILE
int const LANDFORM_RASTER
string const VECTOR_FLOOD_SWL_SETUP_LINE_CODE
int const RASTER_PLOT_SHADOW_DOWNDRIFT_ZONE
string const PER_ITER_HEAD1
string const RASTER_PLOT_SAND_UNCONSOLIDATED_SEDIMENT_TITLE
int const LF_CAT_HINTERLAND
string const VECTOR_NORMALS_NAME
string const VECTOR_WAVE_SETUP_NAME
string const START_NOTICE
string const VECTOR_WAVE_SETUP_CODE
string const RASTER_POLYGON_CODE
string const RASTER_ACTUAL_BEACH_EROSION_CODE
int const RASTER_PLOT_SLICE
string const RASTER_TOTAL_POTENTIAL_PLATFORM_EROSION_NAME
string const RASTER_AVG_SUSP_SED_NAME
string const RASTER_DEEP_WATER_WAVE_HEIGHT_NAME
string const RASTER_INUNDATION_MASK_CODE
string const RASTER_PLOT_OVERALL_TOP_ELEVATION_TITLE
int const RTN_ERR_NO_SEAWARD_END_OF_PROFILE_3
int const LF_SUBCAT_INTERVENTION_STRUCT
string const VECTOR_COAST_CODE
string const RASTER_TOTAL_CLIFF_COLLAPSE_EROSION_FINE_CODE
int const INTERVENTION_HEIGHT_RASTER
string const RASTER_PLOT_ACTIVE_ZONE_TITLE
int const VECTOR_PLOT_SHADOW_BOUNDARY
string const RASTER_PLOT_LOCAL_SLOPE_OF_CONSOLIDATED_SEDIMENT_TITLE
string const VECTOR_PLOT_WAVE_ANGLE_AND_HEIGHT_TITLE
string const VECTOR_PLOT_FLOOD_SWL_SETUP_SURGE_LINE_TITLE
string const RASTER_AVG_WAVE_ORIENTATION_CODE
string const RASTER_TOTAL_CLIFF_COLLAPSE_EROSION_COARSE_NAME
string const RASTER_PLOT_CLIFF_COLLAPSE_DEPOSIT_SAND_TITLE
string const SCAPE_SHAPE_FUNCTION_FILE
string const TIME_SERIES_SEA_AREA_CODE
string const RASTER_POLYGON_GAIN_OR_LOSS_NAME
string const RASTER_PLOT_TOTAL_ACTUAL_BEACH_EROSION_TITLE
int const RTN_ERR_LINETOGRID
string const RASTER_DEEP_WATER_WAVE_PERIOD_CODE
string const RASTER_TOTAL_ACTUAL_BEACH_EROSION_NAME
string const GDAL_DRIVERS
int const RASTER_PLOT_CLIFF_COLLAPSE_EROSION_SAND
string const RASTER_TOTAL_CLIFF_COLLAPSE_DEPOSITION_COARSE_CODE
string const RASTER_PLOT_SLICE_TITLE
int const RASTER_PLOT_SEA_DEPTH
string const ERROR_NOTICE
string const MASS_BALANCE_ERROR
string const RASTER_CLIFF_COLLAPSE_DEPOSITION_COARSE_NAME
string const RASTER_PLOT_COARSE_CONSOLIDATED_SEDIMENT_TITLE
int const RTN_ERR_NO_CELL_UNDER_COASTLINE
int const LF_CAT_INTERVENTION
string const RASTER_TOP_CODE
string const CSHORE_INFILE
string const VECTOR_PLOT_DEEP_WATER_WAVE_ANGLE_AND_HEIGHT_TITLE
string const VECTOR_MEAN_WAVE_ENERGY_NAME
int const RASTER_PLOT_SETUP_SURGE_FLOOD_MASK
int const RASTER_PLOT_NORMAL
int const RTN_ERR_TIMESERIES_FILE_WRITE
string const VECTOR_DOWNDRIFT_BOUNDARY_CODE
Contains CSimulation definitions.
double dRound(double const d)
Correctly rounds doubles.
bool bIsStringValidInt(string &str)
Checks to see if a string can be read as a valid integer, from https://stackoverflow....
int nRound(double const d)
Version of the above that returns an int.
string strLeft(const string &strIn, int const nWidth)
Left-aligns string within a field of given width, pads with blank spaces to enforce alignment....
string strDblRight(double const dX, int const nDigits, int const nWidth, bool const bShowDash)
Converts double to string with specified number of decimal places, within a field of given width,...
string strRightPerCent(double const d1, double const d2, int const nWidth, int const nDigits, bool const bShowDash)
Calculates a percentage from two numbers then, if the result is non-zero, right-aligns the result as ...
string strDbl(double const dX, int const nDigits)
Converts double to string with specified number of places after the decimal. From https://stackoverfl...
string strCentre(const char *pchIn, int const nWidth)
Centre-aligns char array within a field of given width, pads with blank spaces to enforce alignment....
ostream & operator<<(ostream &ostr, const FillToWidth &args)
Operator that inserts a given fill character, to a given width, into an output stream....
string strRight(const string &strIn, int const nWidth)
Right-aligns string within a field of given width, pads with blank spaces to enforce alignment....
bool bIsStringValidDouble(string &str)
Checks to see if a string can be read as a valid double number. Does not find trailing (i....
string strIntRight(int const nX, int const nWidth)
Converts int to string within a field of given width, pads with blank spaces to enforce alignment....