CyprienBosserelle / BG_Flood

Numerical model for simulating shallow water hydrodynamics on the GPU using an Adaptive Mesh Refinment type grid. The model was designed with the goal of simulating inundation (River, Storm surge or tsunami). The model uses a Block Uniform Quadtree approach that runs on the GPU but the adaptive/multi-resolution/AMR is being implemented and not yet operational. The core SWE engine and adaptivity has been inspired and taken from St Venant solver from Basilisk and the CUDA GPU memory model has been inspired by the work from Vacondio _et al._2017)
GNU General Public License v3.0
34 stars 15 forks source link

No check on aoi polygon sanity #89

Open CyprienBosserelle opened 1 year ago

CyprienBosserelle commented 1 year ago

If BG_Flood doesn't find the specified AOI file or if the aoi file is empty then BG_Flood uses an empty polygon to define the domain which leads to a model with no blocks and then overflow crash. which is not right. Need to add sanity checks in that part of the code