Thread View: comp.graphics.explorer
2 messages
2 total messages
Started by Jim Haxby
Fri, 22 Jan 1993 22:05
how to print out **dims
Author: Jim Haxby
Date: Fri, 22 Jan 1993 22:05
Date: Fri, 22 Jan 1993 22:05
21 lines
969 bytes
969 bytes
How can I print out the dimension info of a 2d-lattice
I call the cxLatDescGet function:
long d_nDims;
long **d_nDim;
long d_hasData;
long d_nDataVar;
cxPrimType d_primType;
long d_hasCoord;
long d_nCoordVar;
cxCoordType d_coordType;
cxLatDescGet(lattice_2d, &d_nDims, d_nDim, &d_hasData, &d_nDataVar,
&d_primType, &d_hasCoord, &d_nCoordVar, &d_coordType);
I have been trying various ways to print out the 'd_nDim' content and
have been geeting segmentation fault all the time.
Thanks.
Re: how to print out **dims
Author: Dave Shreiner
Date: Fri, 22 Jan 1993 22:40
Date: Fri, 22 Jan 1993 22:40
29 lines
1447 bytes
1447 bytes
In article <1993Jan22.220527.14043@alw.nih.gov>, lnspet@forest.nia.nih.gov (Jim Haxby) writes: > How can I print out the dimension info of a 2d-lattice > > I call the cxLatDescGet function: > > long d_nDims; > long **d_nDim; ---------------^ This is the problem. The function wants a '**' on the receiving end. What you really want is long *d_nDim; > cxLatDescGet(lattice_2d, &d_nDims, d_nDim, &d_hasData, &d_nDataVar, > &d_primType, &d_hasCoord, &d_nCoordVar, &d_coordType); and change this call to be like cxLatDescGet(lattice_2d, &d_nDims, &d_nDim, ... ); Thanx, Dave --------------------------------------------------------------------------- Dave Shreiner <shreiner@sgi.com> Silicon Graphics, Inc. (415) 390 - 5063 "There's never time to say all the things we need to say" - Fates Warning
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads