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

Subject: Re: *vwrite command, integer format character that works on a HP and SUN machine
Author: James Kosloski
Date: 1998-12-15 16:46:00

A: One way to eliminate the decimal point is to use the FORTRAN descriptor TL
(tab left) and put a space where the decimal point was. For example:

*vwrite,dat(1)
(f10.0,tl1,' ')

This works on a SUN machine, I have not tried it on other platforms

James J. Kosloski
ANSYS Technical Support
(860) 557-3461
Engineering Bldg, 3rd fl. Col. E-2

> From: jz9hn2@a...[SMTP:jz9hn2@a...]
> Sent: Tuesday, December 15, 1998 2:24PM
> To: xansys@o...
> Subject: [xansys] *vwrite command, integer format character that works on a
HP and SUN machine

> From: jz9hn2@a... ( Joseph A Rasche 230-3796 3892)

> 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 #34AuthorDateScore
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