44#include <sys/resource.h>
56#include "h3dpublic_defs.h"
57#include "h3dpublic_export.h"
61#include "h3d_values.h"
72 char *comment,
int *s_comment,
int *
id,
int *mode)
74 char *cname,*cname2,*ccomment;
75 int cname_len,cname_len1,ccomment_len;
79 unsigned int elem_count = 1;
81 cname_len = *size1 + 1;
82 cname=(
char*) malloc(
sizeof(
char)*cname_len);
83 for(i=0;i<*size1;i++) cname[i] = name1[i];
88 if(name1[i] !=
' ') cpt_size = i;
90 cname[cpt_size+1]=
'\0';
92 ccomment_len = *s_comment + 1;
93 ccomment=(
char*) malloc(
sizeof(
char)*ccomment_len);
94 for(i=0;i<*s_comment;i++) ccomment[i] = comment[i];
95 ccomment[*s_comment]=
'\0';
97 char * LAYERPOOL =
new char [100];
99 char * LAYER_STRING =
new char [100];
100 LAYER_STRING[0] =
'\0';
101 char * NUVAR_STRING =
new char [100];
102 NUVAR_STRING[0] =
'\0';
103 char * IR_STRING =
new char [100];
105 char * IS_STRING =
new char [100];
107 char * IT_STRING =
new char [100];
109 char * MID_STRING =
new char [100];
111 char * RES_STRING =
new char [100];
113 char * ID_STRING =
new char [100];
115 char *MODE_STRING =
new char[100];
118 H3D_ID layer_pool_id = H3D_NULL_ID;
122 strcat_s(RES_STRING,100,cname);
124 RES_STRING = strcat(RES_STRING,cname);
128 sprintf(NUVAR_STRING,
" %d ",*nuvar);
130 strcat_s(RES_STRING,100,NUVAR_STRING);
132 RES_STRING = strcat(RES_STRING,NUVAR_STRING);
153 sprintf(
edata_type, RES_STRING, H3D_DT_DELIMITER);
159 if (strlen(ccomment) != 0)
182 delete [] LAYER_STRING;
183 delete [] NUVAR_STRING;
187 delete [] MID_STRING;
188 delete [] RES_STRING;
189 delete [] MODE_STRING;
198 char *comment,
int *s_comment,
int *
id,
int *mode)
199{
c_h3d_create_sph_scalar_datatype_ (cpt_data, name1, size1, info, name2, size2, nuvar, comment, s_comment,
id, mode);}
202 char *comment,
int *s_comment,
int *
id,
int *mode)
203{
c_h3d_create_sph_scalar_datatype_ (cpt_data, name1, size1, info, name2, size2, nuvar, comment, s_comment,
id, mode);}
206 char *comment,
int *s_comment,
int *
id,
int *mode)
207{
c_h3d_create_sph_scalar_datatype_ (cpt_data, name1, size1, info, name2, size2, nuvar, comment, s_comment,
id, mode);}
void c_h3d_create_sph_scalar_datatype_(int *cpt_data, char *name1, int *size1, int *info, char *name2, int *size2, int *nuvar, char *comment, int *s_comment, int *id, int *mode)
void _FCALL C_H3D_CREATE_SPH_SCALAR_DATATYPE(int *cpt_data, char *name1, int *size1, int *info, char *name2, int *size2, int *nuvar, char *comment, int *s_comment, int *id, int *mode)
void c_create_sph_scalar_datatype(int *cpt_data, char *name1, int *size1, int *info, char *name2, int *size2, int *nuvar, char *comment, int *s_comment, int *id, int *mode)
void c_h3d_create_sph_scalar_datatype__(int *cpt_data, char *name1, int *size1, int *info, char *name2, int *size2, int *nuvar, char *comment, int *s_comment, int *id, int *mode)
H3D_ID sphcell_poolname_id
H3D_TENSOR_TYPE tensor_type
bool Hyper3DDatatypePools(H3DFileInfo *h3d_file, H3D_ID dt_id, H3D_ID poolname_id, unsigned int num_layers, H3D_ID *layername_ids, bool corners, H3D_TENSOR_TYPE tensor_type, float poisson)
bool Hyper3DDatatypeEnd(H3DFileInfo *h3d_file)
bool Hyper3DExportClearError(H3DFileInfo *h3d_file)
bool Hyper3DDatatypeDescriptionWrite(H3DFileInfo *h3d_file, H3D_ID dt_id, const char *description)
bool Hyper3DDatatypeWrite(H3DFileInfo *h3d_file, const char *label, H3D_ID dt_id, H3D_DS_FORMAT format, H3D_DS_TYPE type, unsigned int num_pools)
bool Hyper3DDatatypeBegin(H3DFileInfo *h3d_file, unsigned int count)