New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TODO unification of "identical" files in mesher and solver #22
Comments
maybe it would make sense to unfify all the finite element stuff with the kerner, where I rewrote all the routines and tested them rigorously... |
Unifying with kerner/mesher sounds like a good idea, but storing What do you mean by rigorous testing? Most routines come from Numerical On 17/10/2014 14:35, Martin van Driel wrote:
Tarje <>--<>--<>--<>--<>--<> |
splib only computes the gll/glj points and the derivative matrices G0, G1, G2 as far as I can see. That is a total of less then 100 numbers, so it can be easily stored in the mesh and saves duplication of 700 lines of code. With rigorous testing I mean a test driven approach like we have in the kerner where the mapping is tested in very general way (non-public link): https://github.com/sstaehler/kerner/blob/master/test_finite_elem_mapping.f90 that testing revealed several bugs in the mapping that is used in the solver and mesher and it was easier to rewrite from scratch than fixing it. Partly because there where several subtle implicit assumptions: ds/dxi = 0 at the axis (not true in the current meshes for the inner core) and partly because the math could be simplified a lot. By now it is only half of the number of lines of code, although including the inverse mapping as well. We did not yet merge it back, because it uses different user interfaces. |
OK, sounds good, as long as we don't get into storing literally On 17/10/2014 15:07, Martin van Driel wrote:
Tarje <>--<>--<>--<>--<>--<> |
Another question at this point would obviously be to store the Mesh in a netcdf container, where individual variables could be accessed directly for checking. This might also (together with a XDMF file) replace the vtk output of the mesher. Writing and reading the variables from the netcdf file would be simplified by the wrappers I made for the kerner. Saves you all the trouble of handling dimensions and variable ids. Am 17. Oktober 2014 16:12:15 MESZ, schrieb tnissen notifications@github.com:
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. |
Thought about this, too. Would enable visualization on exactly the same data as used in the computation. Also coud be a single file and hence speed up file ouput by the mesher (which at the moment is the most time consuming when going to 10k cores). I could not decide yet whether this should then enable collective reading in the solver, which might be useful if we consider going beyond 10k cores. That would require some restructuring though, while for non-collective reading it is fine to just produce one group for each rank and essentially keep the current structure. |
The text was updated successfully, but these errors were encountered: