- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I seem to have a rather strange problem. I have a UMAT subroutine written for ABAQUS.
When i try to compile this user subroutine with the Intel fortran compiler (version 8.1), the compiler just hangs. It does not give me any kind of an error - does not even give me any warnings. After a long analysis, i narrowed this problem to some write statements. There is nothing wrong with this write statements. However, it seems that I am limited to the number of write statements that I can have. I conclude this from the fact that by commenting out certain write statements, I can put in some new write statements and vice versa. I use these write statements for debugging purposes. Most of these write statements are within loops - for eg.
do i=1,3
write(6,'(3f12.5)')(A(I,J),J=1,3)
enddo
The user routine compiles correctly when i comment out the write statements. It also compiles correctly on the gnu (g77) compiler (with the write statements)
My question now is
1. Is there a limit on the number of write statements one can have in a routine? If so, is there a way of increasing this number?
2. Is there any other way of putting these write statements so that I could use it for debugging purposes?
Hope I have explained the problem clearly.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply. I did run it without optimization (was -O0) and the subroutine compiled fine. But I am still unable to understand the problem. Can one safely conclude it is a compiler bug? (I am not well versed with the working of compilers)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I agree with Steve in that you should think about upgrading.
The older IVF used to have problems with literal strings. In particular with strings spanning continuation lines and strings containing "". The problems would be squirrelly (hard to catch) as you make changes to the codein attempts to locate the problem the problem location moves.
Since V9.1 I have not seen such problems (we are on 10.something now).
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page