Closed davidbenncsiro closed 3 years ago
@CyprienBosserelle this zip file contains:
The modified file has a .dep rather than .txt suffix.
@davidbenncsiro,
I fixed most of your problems on branch AddUEUmean 730f747.
you can now call the bathy file *.txt
as if it is a *.dep
. Your crash was that the bathy was positive up whereas XBGPU takes positive down bathymetry. I added a new parameter that allow you to switch to posdown within XBGPU so you don't have to redo the file.
in you case I used:
depfile = ./bathy/bathy-new.dep;
posdown = 0;
and the model worked...
If the bathymetry file is not read, the only indication in XBG_log.txt is that "Reading dep file" is missing.
For example, if the bathymetry file has a ".txt" file suffix, we see:
whereas if the same file is given a ".dep" suffix, we have:
See https://github.com/CyprienBosserelle/xbeach_gpu/blob/master/Wave_gpu.cu#L1764
In the block of code pointed to above, either any file suffix could be assumed to be .dep or .bot or an error message could be output and the application could exit.