CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
do_beach_sediment_movement.cpp File Reference

Does between-polygon actual (supply-limited) redistribution of transported beach sediment. More...

#include <assert.h>
#include <cmath>
#include <cfloat>
#include <iostream>
#include <string>
#include <algorithm>
#include "cme.h"
#include "simulation.h"
#include "coast.h"

Go to the source code of this file.

Functions

bool bPolygonAndAdjCompare (const vector< int > &nVLeft, const vector< int > &nVRight)
 Function used to sort polygons before doing the polygon-to-polygon source-target pattern. For both LH and RH arguments, the first value is the polygon coast ID, the second value is the down- or up-coast direction, and subsequent numbers are adjacent polygon coastIDs in that direction. If the first argument must be ordered before the second, return true.
 

Detailed Description

Does between-polygon actual (supply-limited) redistribution of transported beach sediment.

TODO 001 A more detailed description of these routines.

Author
David Favis-Mortlock
Andres Payo
Date
2025

Definition in file do_beach_sediment_movement.cpp.

Function Documentation

◆ bPolygonAndAdjCompare()

bool bPolygonAndAdjCompare ( const vector< int > & nVLeft,
const vector< int > & nVRight )

Function used to sort polygons before doing the polygon-to-polygon source-target pattern. For both LH and RH arguments, the first value is the polygon coast ID, the second value is the down- or up-coast direction, and subsequent numbers are adjacent polygon coastIDs in that direction. If the first argument must be ordered before the second, return true.

Definition at line 47 of file do_beach_sediment_movement.cpp.

Referenced by CSimulation::nDoAllActualBeachErosionAndDeposition().