I still have problems ...
To provide a simple example I have run the Wesel example, running with only one layer. I have added dwaq output, reset the following
OPTION FOR THE TREATMENT OF TIDAL FLATS : 2
NON-HYDROSTATIC VERSION : NO
NUMBER OF HORIZONTAL LEVELS = 1
Everything else looks OK for a mass conserved solution. But please point out any I have missed. Cas file attached
Running my python script (attached) reads in the generated dwaq files (volume, fluxes, and connection info) shows large mass discrepancies.
Needed to ensure that for boundary fluxes the -ve ifrom indices were handled properly. Also the volumes and fluxes are synced properly, namely that the change from vol1(t1) to vol2(t2) is linked to flux(t1) values. I find this Delft sync requirement very strange choice - since the fluxes are not complete till t2, they dont exist at t1.
Despite the relatively simple test case, and that the tel4del mass check output saying that the mass balance is around 10e-12, the script is showing discrepancies above 5% at a number of points. The bulk of the mass balance is better than 0.1% mismatch. The first iteration has the worst results for some reason - bad initialisation.
Attached a results mass check output. I dont think that these results are good or expected. It suggests possibly that the tofrom connection info is wrong.
Any comments? I am happy to accept a script coding error but think i have covered everything. And it relates to the other problems I have been seeing.
One other problem found but not related, if I run the mpi version of telemac3d with ncsize=0 or 1, the dwaq outfiles havent been stripped of their telemac headers! I had to run with the non-mpi version to generate these output files.