Closed iulian787 closed 2 months ago
the new test I performed showed that the map is the same, if just one cell connectivity is permuted. Areas computed are slightly different for both? source and target, even though one cell was modified in source. Still, we are closing the issue
We are trying to make all computations robust enough so that if we run on different number of processes, or on a different layout, we need to obtain the same results; so we need a precision more than offered by "machine epsilon", we need to have the so-called bit-for-bit robustness This is in general hard to achieve, when there are many operations involved, multiplications, additions; Basically, in a computer setting, additions and multiplications are not always commutative.
Before we go to serial-parallel difference in results, we would like to understand more about intersection, and mapping, and where the differences might come from
In this example, we compute a bilinear map between a CS mesh and a polygonal mesh on a sphere, for 2 source meshes, that differ only by the order in which first element nodes are described. Instead of 9, 189, 69, 1, the first cell connectivity is 1, 9, 189, 69. This is the same mesh, no ? But we do get 2 different maps in the end :(
I am attaching the script I am running, I will try attaching the files too
The differences we see now in the map files are these:
So we just changed one cell, gave a circular permuted order, and the area of some cells is different. Which just shows that the areas computed by TR are different between the 2 cells: 1, 9, 189, 69, has a diferent area compared to 9, 189, 69, 1
S values in maps are the same, just the areas are different