- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I have encountered a strange problem when doing FEM calculation recently, i.e., different results obtainedeach time withcompletely the same data inputted. Although the difference is rather subtle at initial, but with large number of iteration included in my calculation, it becomes a obvious problem. This problem arose when problem is compilered in Release version with full optimization (my compiler is CVF6.6) and when problem size is bigger than 5500 dofs. If program compilered in Debug version or problem size is small, no problem. Could anybody give me any suggestion on whta kind of this problem is? Is it a software or hardware problem? If a software problem is suggested,is thereany method to find out it?
Thank you very much.
링크가 복사됨
3 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
This is almost always due to use of an uninitialized variable.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
A few advice how to fix it without deeper understanding:
1) Switch on Project/Settings/Fortran/Optimizations/Variables default to automatic
2) Switch on .../Compilation diagnostics/Uninitialized variables
Rebuild & fix any warnings about uninitialized variables.
This option is not a panacea, though, as it can miss many (mis)usages, especially ones related with arrays. If it does not solve the problem, put up your sleeves and explicitly zero-out all the arrays around (if they're in common blocks, use BLOCK DATAs).
Good luck,
Jugoslav