When I was doing something very similar, we were using Linux desktops running Gnome so it was natural to write a GUI in GTK. On the GUI side, what would be easiest depends on your environment. ini files, so you could write a routine in C and call it from Fortran via the ISO_C_BINDING module in F2003. Doing text stuff in Fortran is a bit of a nightmare, but there are decent C APIs for reading (for example). I would recommend coming up with some sort of simple, ASCII configuration file format which could be written out by a GUI, and then read back in by the Fortran backend. You don't mention whether it's feasible to modify the Fortran programme, but let's say it is. But I'll try to offer a bit of advice anyway. This is a very broad question and might be closed soon for being opinion-based. So the questions are: what programming language is the best suited for such GUI development(C++ Qt, python TkInter ?) (I'm not very familiar with other languages except Fortran so language complexity may be cruicial, but I can learn language if it would be beneficial in my case), and what is the best way to establish interconnection between GUI and Fortran computational module (maybe there is some common data format for this, like css, with Fortran parser)? Any recommendations and comments are appreciated. Cross-platform GUI should take computational problem setup parameters and produce set of files which later will be read by computational module. As I intend to use computing module on clusters it is preferable to retain computing module as a program rather than library. So I decided to divide program into two parts: GUI and computing module. But as program grows it becomes very difficult to maintain. It is highly optimized and parallelized via MPI to perform cluster computing. I have Fortran 95 program for numerical analysis.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |