187 vector<string> expandedFiles;
191 string fileSpecLower = fileSpec;
192 std::transform(fileSpecLower.begin(), fileSpecLower.end(),
193 fileSpecLower.begin(), ::tolower);
195 if (fileSpecLower ==
"all")
198 expandedFiles.insert(expandedFiles.end(),
199 {
"suspended_sediment",
200 "avg_suspended_sediment",
207 "sediment_top_elevation",
213 "potential_platform_erosion",
214 "actual_platform_erosion",
215 "total_potential_platform_erosion",
216 "total_actual_platform_erosion",
217 "potential_beach_erosion",
218 "actual_beach_erosion",
219 "total_potential_beach_erosion",
220 "total_actual_beach_erosion",
222 "total_beach_deposition",
224 "local_cons_sediment_slope",
229 "avg_wave_orientation",
231 "basement_elevation",
236 "total_cliff_collapse",
237 "cliff_collapse_deposition",
238 "total_cliff_collapse_deposition",
240 "potential_platform_erosion_mask",
244 "deep_water_wave_angle",
245 "deep_water_wave_height",
246 "deep_water_wave_period",
247 "polygon_uncons_sediment_up_or_down_drift",
248 "polygon_uncons_sediment_gain_or_loss"});
250 else if (fileSpecLower ==
"usual")
253 expandedFiles.insert(expandedFiles.end(),
254 {
"suspended_sediment",
255 "avg_suspended_sediment",
262 "sediment_top_elevation",
267 "potential_platform_erosion",
268 "actual_platform_erosion",
269 "total_potential_platform_erosion",
270 "total_actual_platform_erosion",
271 "potential_beach_erosion",
272 "actual_beach_erosion",
273 "total_potential_beach_erosion",
274 "total_actual_beach_erosion",
276 "total_beach_deposition",
278 "local_cons_sediment_slope",
281 "avg_wave_orientation",
283 "basement_elevation",
286 "total_cliff_collapse",
287 "cliff_collapse_deposition",
288 "total_cliff_collapse_deposition",
291 "polygon_uncons_sediment_up_or_down_drift",
292 "polygon_uncons_sediment_gain_or_loss",
302 else if (fileSpecLower ==
"cmetools")
305 expandedFiles.insert(expandedFiles.end(),
315 "total_actual_platform_erosion",
316 "total_actual_beach_erosion",
317 "total_beach_deposition",
319 "basement_elevation",
322 "total_cliff_collapse",
323 "cliff_collapse_deposition",
324 "total_cliff_collapse_deposition",
329 else if (fileSpecLower ==
"" or fileSpecLower ==
"none")
331 return expandedFiles;
336 expandedFiles.push_back(fileSpec);
340 return expandedFiles;
349 vector<string> expandedFiles;
353 string fileSpecLower = fileSpec;
354 std::transform(fileSpecLower.begin(), fileSpecLower.end(),
355 fileSpecLower.begin(), ::tolower);
357 if (fileSpecLower ==
"all")
360 expandedFiles.insert(expandedFiles.end(), {
"coast",
"cliff_edge",
"wave_angle",
"normals",
"invalid_normals",
"avg_wave_angle",
"wave_energy",
"mean_wave_energy",
"breaking_wave_height",
"coast_curvature",
"polygon_node",
"polygon",
"cliff_notch",
"shadow_boundary",
"downdrift_boundary",
"deep_water_wave_angle",
"wave_setup",
"storm_surge",
"run_up",
"flood_line"});
362 else if (fileSpecLower ==
"usual")
365 expandedFiles.insert(
367 {
"coast",
"cliff_edge",
"wave_angle",
"normals",
"invalid_normals",
368 "avg_wave_angle",
"wave_energy",
"mean_wave_energy",
369 "breaking_wave_height",
"polygon",
"cliff_notch",
370 "shadow_boundary",
"downdrift_boundary",
"deep_water_wave_angle"});
372 else if (fileSpecLower ==
"" or fileSpecLower ==
"none")
374 return expandedFiles;
379 expandedFiles.push_back(fileSpec);
383 return expandedFiles;
392 vector<string> expandedFiles;
396 string fileSpecLower = fileSpec;
397 std::transform(fileSpecLower.begin(), fileSpecLower.end(),
398 fileSpecLower.begin(), ::tolower);
400 if (fileSpecLower ==
"all")
403 expandedFiles.insert(expandedFiles.end(), {
"wave_setup",
"wave_runup",
"beach_change_net",
"beach_deposition",
"beach_erosion",
"cliff_collapse_deposition",
"cliff_collapse_erosion",
"cliff_collapse_net",
"platform_erosion",
"sea_area",
"suspended",
"water_level"});
405 else if (fileSpecLower ==
"" or fileSpecLower ==
"none")
407 return expandedFiles;
412 expandedFiles.push_back(fileSpec);
416 return expandedFiles;
424 vector<string> expandedFiles;
428 string fileSpecLower = fileSpec;
429 std::transform(fileSpecLower.begin(), fileSpecLower.end(),
430 fileSpecLower.begin(), ::tolower);
432 if (fileSpecLower ==
"all")
435 expandedFiles.insert(expandedFiles.end(), {});
437 else if (fileSpecLower ==
"" or fileSpecLower ==
"none")
439 return expandedFiles;
444 expandedFiles.push_back(fileSpec);
448 return expandedFiles;
455 std::transform(my_text.begin(), my_text.end(), my_text.begin(), ::tolower);
double m_dCoarseMedianSize
string m_strSedimentInputLocation
string GetOmitGridEdges() const
double m_dSedimentDensity
double m_dPlatformErosionResistance
bool m_bCoastPlatformErosion
double m_dSeawaterDensity
bool m_bCSVPerTimestepResults
int m_nBeachTransportAtEdges
double m_dCliffSlopeLimit
double m_dDeepWaterWaveHeight
vector< string > GetTimeSeriesFiles() const
Get time series files with keyword expansion support.
vector< string > GetFloodFiles() const
Get time series files with keyword expansion support.
vector< string > m_vecConsCoarseFiles
string m_strSuspendedSedFile
CConfiguration()
Constructor.
string m_strStartDateTime
double m_dInitialWaterLevel
double m_dGravitationalAcceleration
bool m_bSaveParallelProfiles
int m_nCoastlineSmoothingWindow
vector< string > m_vecUnconsSandFiles
int m_nWavePropagationModel
string m_strInterventionClassFile
vector< string > m_vecTimeSeriesFiles
double m_dDeepWaterWaveOrientation
int m_nBeachErosionEquation
string m_strOmitGridEdges
bool m_bBeachSedimentTransport
vector< string > m_vecRasterFiles
string m_strWaveStationDataFile
string m_strBasementDEMFile
~CConfiguration()
Destructor.
double m_dBeachSedimentPorosity
vector< string > m_vecConsSandFiles
string m_strSedimentInputType
vector< string > m_vecVectorFiles
string m_strFloodCoastline
int m_nCliffEdgePolynomialOrder
vector< string > m_vecUnconsFineFiles
bool m_bOutputErosionPotential
string m_strFloodInputLocation
vector< double > m_vecSliceElevations
int m_nProfileSmoothingWindow
vector< int > m_vecProfileNumbers
vector< string > m_vecSaveTimes
int m_nCliffEdgeSmoothingWindow
double m_dCoarseErosivity
double m_dBreakingWaveRatio
string m_strWaveHeightTimeSeries
bool m_bHasFinalWaterLevel
double m_dCliffDepositionA
int m_nCoastlineSmoothing
vector< unsigned long > m_vecProfileTimesteps
vector< string > GetRasterFiles() const
Get raster files with keyword expansion support.
double m_dStartDepthRatio
void InitializeDefaults()
Initialize all parameters with default values.
string m_strFloodLocations
string m_strSaveDigitsMode
double m_dCliffErosionResistance
double m_dMaxBeachElevation
vector< string > GetVectorFiles() const
Get vector files with keyword expansion support.
string m_strSedimentInputDetails
int m_nCliffEdgeSmoothing
vector< string > m_vecConsFineFiles
bool m_bUseSystemTimeForSeed
vector< string > m_vecUnconsCoarseFiles
string m_strInterventionHeightFile
This file contains global definitions for CoastalME.
Unified configuration class for CoastalME simulation parameters.