Page 1 of 1

Testing compiled code.

Posted: August 26th, 2017, 9:23 am
by HWZealot
Hi,
I downloaded the code from SVN server, and compiled it using intel fortran compiler (change the FC in makefile to ifort).
The version I use is 896.
When compiling, everything seems to be okay and there was no error. After running compile.sh, I run ./testing/xrun.scr and produced results.ps in /testing folder. The running process didn't produce error.
But when I compared with Results_v854.pdf, it seems that the Trajectory is much the same, but Dispersion Simulation figure seems to be different.
I don't know if that means my program is wrongly compiled? Or is there any other way to confirm the correctness?
Thank you in advance.

Re: Testing compiled code.

Posted: August 28th, 2017, 9:26 am
by ariel.stein
Small concentration changes are expected due to differences in the compilers and processors.
Can you please share with us your results.ps file?

Re: Testing compiled code.

Posted: August 29th, 2017, 8:17 am
by HWZealot
Thanks for replying.
Here are the 010 result from two versions of ./xrun.scr. (the whole results are too big to upload as attachment).
One is using Intel FORTRAN compiler 17.0, the other one is using pgfortran 16.10c.
Most result are like this one, with very little different.

Re: Testing compiled code.

Posted: August 29th, 2017, 8:19 am
by HWZealot
Follow up.
But a few results, for example 510, are very different and even not appear on the sample result pdf.

Re: Testing compiled code.

Posted: August 29th, 2017, 8:23 am
by HWZealot
Also,here is the 012 result.

By the way, because I'm new to SVN revision control, is the whole hysplit program in the ./trunk folder?
Thank you.

Re: Testing compiled code.

Posted: August 29th, 2017, 10:12 am
by ariel.stein
That is completely normal. The different compilers produce slightly different calculations because they produce different random number generators that are used to calculate the turbulent dispersion in the model.
Also, you notice that the plotting program sometimes chooses different contours depending on the calculated values. The contours can be fixed if needed.
Bottom line, your results are perfectly acceptable.

Re: Testing compiled code.

Posted: August 30th, 2017, 1:46 am
by HWZealot
Thanks a lot for help. :)
One more question, are all the HYSPLT application in ./trunk folder? I'm not very familiar with SVN project structure, so just to make sure this.

Re: Testing compiled code.

Posted: August 30th, 2017, 3:04 pm
by ariel.stein
Yes