- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can not understand the error in the following code:
CODE
1 WRITE(6,*) 'REQUEST ERROR IN USDFLD FOR ELEMENT NUMBER ',
2 NOEL,'INTEGRATION POINT NUMBER ',NPT
I obtain the following error messages, but do not fully under it:
ERROR MESSAGE
cyclic_fatigue_B_Reduced.for(65) : Error: Syntax error, found IDENTIFIER 'WRITE' when expecting one of:
1 WRITE(6,*) 'REQUEST ERROR IN USDFLD FOR ELEMENT NUMBER ',
--------^
cyclic_fatigue_B_Reduced.for(65) : Error: Syntax error, found CHARACTER_CONSTANT 'REQUEST ERROR IN USDFLD FOR ELEMENT NUMBER ' when expecting one of: => = . ( %
1 WRITE(6,*) 'REQUEST ERROR IN USDFLD FOR ELEMENT NUMBER ',
-------------------^
cyclic_fatigue_B_Reduced.for(66) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: :: , : )
2 NOEL,'INTEGRATION POINT NUMBER ',NPT
------------------------------------------------^
Any input would be much appreciated. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday's discussion) so itcontinues the first line. But that is already complete.
Remove that "1" and it will probably work.
Regards,
Arjen
Link Copied
- « Previous
-
- 1
- 2
- Next »
- 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 have written some quick code to check my writting to file code works and this seems to work ok (see code below). This writes to a.txt file the value ofx. Therefore,I guess this means that the problem has to lie with the abaqus end?
[fxfortran]c PROGRAM WriteFile c REAL x INTEGER :: FILE = 110 c PRINT*, 'ENTER VALUE OF X' READ*, x c 120 FORMAT (F12.6) OPEN (UNIT=FILE, FILE='FILE1.txt', STATUS='REPLACE') WRITE (FILE, 120) x CLOSE (UNIT=FILE) c END[/fxfortran]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There may be something else going on which is not immediately obvious from your description.
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have attached the file to this post. I look forward to any input or comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nothing is explicitly declared so the implicit typing rules apply, does the calling routine pass the correct type andkind for each actual argument?
Iassume E11isin the include file otherwise if it is a local variable it is redundant.
If this is the actual code there are a lot of unused dummy arguments - but heyI see that a lot:-)
Otherwise the problem must lie elsewhere.
Les

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »