Program to build adaptive mesh (triangles in 2D and tetrahedron in 3D) for Finite Element Method in Fortran

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Program to build adaptive mesh (triangles in 2D and tetrahedron in 3D) for Finite Element Method in Fortran



I'm writting a Fotran code of Finite Elements Method and I need some program to generate adaptive meshes inside my program (that is: without read/write input/output files). This meshes are to calculate aposteriori errors.



I tried to use triangle software, but is wrote in C, and I had problems calling from fortran (creating an interface...).



Preferably, I'm looking for something in Fortran90 or higher, but if is wrote in Fortran 77 I thing that I could use to.





Asking for Fortran code recommendations may be viewed as off topic, but if you ask about your specific problems with interfacing with the C that may be seen more favourably.
– francescalus
Aug 24 '17 at 17:09





Thanks @francescalus for comment. But I mentioned that C mesh generator program just for explain that I'm looking for something similar but in Fortran.
– user106306
Aug 24 '17 at 18:01





Are people still writing FEA code in FORTRAN? Amazing. I would have expected a more modern language and greater leverage of multiple cores and parallelism.
– duffymo
Aug 27 '17 at 15:03






I thing that you are taking about some older Fortran version, because Fortran still rocks on scientific computing, in its modern version of course. It has all new toys of other languajes, and is really faster.
– user106306
Aug 30 '17 at 23:29




1 Answer
1



it has nothing to do with the language. Just call the excutagble file in your program.





In this case is not possible because the input of the C program is a (big and complicated) structure, so you must to define that structure in Fortran (the main program), send as input in the C program, and then recovery the output structure in the Fortran code. The main problem is that there is an array with unknown length that is output of the C program, and until now that is not allowed in Fortran.
– user106306
Aug 20 at 20:28






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS