ResultOutputSolve runtime error (patch)

Clearly defined bug reports and their fixes
Post Reply
elmerUser
Posts: 21
Joined: 26 Mar 2010, 17:57

ResultOutputSolve runtime error (patch)

Post by elmerUser »

Sorry about posting so many bugs...

The following patch was needed to prevent this error in result solver, with the attached sif. Coord appears to have 3 elements regardless of dim, so printing coord with the trailed ' 0.0' causes a runtime error
At line 2089 of file ResultOutputSolve.f90 (unit = 58, file = './paraver.0001.vtk')
Fortran runtime error: Expected REAL for item 5 in formatted transfer, got CHARACTER
(2ES16.7E3,A)
In folder:
/trunk/fem/src/

Code: Select all

--- ResultOutputSolve.f90.orig	2011-03-01 18:24:54.896096459 +0000
+++ ResultOutputSolve.f90	2011-03-01 18:25:57.055113854 +0000
@@ -2084,11 +2084,7 @@
             END IF
           END IF
 
-          IF( dim <= 2 ) THEN
-            WRITE( IOUnit,'(2ES16.7E3,A)' ) Coord,' 0.0' 
-          ELSE
-            WRITE( IOUnit,'(3ES16.7E3)' ) Coord 
-          END IF
+          WRITE( IOUnit,'(3ES16.7E3)' ) Coord 
         END DO
 
         WRITE ( IOUnit, * )

Attachments
electrostatic.sif
(3 KiB) Downloaded 365 times
raback
Site Admin
Posts: 4825
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: ResultOutputSolve runtime error (patch)

Post by raback »

Hi

Thanx for the report. The fix is in the svn.

You might also considering using the vtu output. It also takes now the following keywords

Code: Select all

Binary Output = Logical True
Single Precision = Logical True
which greatly help in reducing the size of the output.

-Peter
Post Reply