Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91526446
reader_C_wrapper.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 11, 22:25
Size
1 KB
Mime Type
text/x-Algol68
Expires
Wed, Nov 13, 22:25 (2 d)
Engine
blob
Format
Raw Data
Handle
22278410
Attached To
rIOHELPER iohelper
reader_C_wrapper.h
View Options
#ifndef READER_C_WRAPPER
#define READER_C_WRAPPER
#define C_MODE 0
#define FORTRAN_MODE 1
#define DIM 3
#define TRIANGLE1 0
#define TRIANGLE2 1
#define TETRA1 2
#define TETRA2 3
#define POINT_SET 4
#define COMPRESSED 2
#define BASE64 1
#define TEXT 0
#define RESTART 1
typedef
struct
ReadHelper_
{
void
*
object_ptr
;
}
ReadHelper
;
extern
ReadHelper
*
getNewReaderHandle
(
int
reader_style
);
//! read to file
extern
void
Read
(
ReadHelper
*
pH
);
//! initialisation of the reader
extern
void
ReaderInit
(
ReadHelper
*
pH
);
//! give vector with coordinates
extern
void
ReaderSetPoints
(
ReadHelper
*
pH
,
const
char
*
name
);
//! give vector to connectivity
extern
void
ReaderSetConnectivity
(
ReadHelper
*
pH
,
int
element_type
);
//! give vector to per node data
extern
void
ReaderAddNodeDataField
(
ReadHelper
*
pH
,
const
char
*
name
);
//! give vector to per element data
extern
void
ReaderAddElemDataField
(
ReadHelper
*
pH
,
const
char
*
name
);
//! set prefix directory
extern
void
ReaderSetPrefix
(
ReadHelper
*
ph
,
const
char
*
dir
);
//! set rank and world size params for parallel treatment
extern
void
ReaderSetParallelContext
(
ReadHelper
*
pH
,
const
int
me
,
const
int
wld_size
);
//! free memory
extern
void
ReaderFreeHandle
(
ReadHelper
*
pH
);
//! give vector with coordinates
extern
double
*
ReaderGetPoints
(
ReadHelper
*
pH
);
//! give vector to connectivity
extern
int
*
ReaderGetConnectivity
(
ReadHelper
*
pH
);
//! give vector to per node data
extern
double
*
ReaderGetNodeDataField
(
ReadHelper
*
pH
,
const
char
*
name
);
//! give vector to per element data
extern
double
*
ReaderGetElemDataField
(
ReadHelper
*
pH
,
const
char
*
name
);
//! give number of nodes
extern
int
ReaderGetNumberNodes
(
ReadHelper
*
pH
);
//! give number of elements
extern
int
ReaderGetNumberElements
(
ReadHelper
*
pH
);
#endif
//READERPARAVIEW_C_WRAPPER
Event Timeline
Log In to Comment