Help~~~~How to read a program as a fresh man?
Hi,I'am a fresh man of CFD.Now,I'am reading a program about Euler solver,which employs the usual form like Roe scheme and explict scheme.However,it became a huge problem that the program is TOO LARGE and COMPLEX than I learned before.SO,how to read it in an appropriate method?
Thank you very much. |
Getting into someone else program is always a bit of a nightmare - specially if the documentation is sparse. Here is what I would try:
1) Try to get an automated tool to create documentation from the file structure (doxygen for example or whatever is appropriate for the programming language used); 2) Try to load the code into a suitable IDE (netbeans for example); 3) Try to get the overall idea of the algorithm (and function) involved by starting from the main subroutine/function; 4) Use your previous experience and hang to thread of codes you recognize. Keep trying: If you look at it long and hard enough (and keep documenting as you go along), you will get to understand it. Tip: use function names (that usually relates to what the subroutine does), but beware that sometimes the function names may be misleading (i.e. the developer changed its mind and the algorithm halfway through but did not bother to change the name) Regards, Julien |
Thank you very much.What you write was very concrete and helpful.
I would try your advice . Good luck~~ |
Quote:
|
ok,thank you.
|
All times are GMT -4. The time now is 13:16. |