XANSYS Message: 24 [Go back to message list]
[bookmark on del.icio.us]
No rating yet
Rate item:

Subject: *vwrite command, integer format character that works on a HP and SUN machine
Author: Joe Rasche
Date: 1998-12-15 14:24:00

Question: On the *vwrite command, what format character should be used to
write
out an integer. ANSYS 5.4 version running on HP and SUN.

Background:
The documentation clearly states that the "*" and "I" characters do not work
for
the *vwrite command. This is not totally true. The "I" format statement
character does work on HP machines. On Sun machines, it does not.

I'm hoping that there is a secret command of some sort that I can put into the
*vwrite format statement line that will allow Integers to be printed out. I do
not want to put in F10.0 or something like that. There should be an integer
format statement that will work on all machines.

Does anyone know of a format statement that will allow me to directly output an
integer on the SUN machines.

If this has been covered before I apologize for taking your time.

An example of the "I" format character. This works for HP but not SUN. Test
it
out and see.

fini
/prep7
*get,mxnode,node,,num,max
*get,ndcount,node,,count
*get,minnode,node,,num,min
*dim,nddata,array,ndcount,4,1
*do,i,1,ndcount
nddata(i,1)=minnode
nddata(i,2)=nx(minnode)
nddata(i,3)=ny(minnode)
nddata(i,4)=nz(minnode)
minnode=ndnext(minnode)
*enddo
*cfopen,glist
*vwrite,nddata(1,1),nddata(1,2),nddata(1,3),nddata(1,4)
(' node = ',I8,1X,F10.5,1X,F10.5,1X,F10.5)
*cfclose,glist
*list,glist


Posts possibly associated with message #24AuthorDateScore
24*vwrite command, integer format character that works on a HP and SUN machineJoe Rasche1998/12/15 
26Re: *vwrite command, integer format character that works on a HP and SUN machineJohn Swanson1998/12/15 
27Re: *vwrite command, integer format character that works on a HP and SUN machineDave Lindeman1998/12/15 
34Re: *vwrite command, integer format character that works on a HP and SUN machineJames Kosloski1998/12/15