Aller à la documentation de ce fichier.
28 int main (
int argc,
char **argv) {
50 med_float matrix[7]={ 0, 0, 0, 0, 0, 0, 0};
63 MESSAGE(
"ERROR : open file in READ ONLY ACCESS mode ...");
70 MESSAGE(
"ERROR : read how many mesh ...");
74 for (i=0;i<nmesh;i++) {
78 MESSAGE(
"ERROR : read computation space dimension ...");
83 if ((axisname = (
char*) malloc(
MED_SNAME_SIZE*spacedim+1)) == NULL) {
84 MESSAGE(
"ERROR : memory allocation ...");
87 if ((unitname = (
char*) malloc(
MED_SNAME_SIZE*spacedim+1)) == NULL) {
88 MESSAGE(
"ERROR : memory allocation ...");
93 if (
MEDmeshInfo(fid, i+1, meshname, &spacedim, &meshdim, &meshtype, meshdescription,
94 dtunit, &sortingtype, &nstep,
95 &axistype, axisname, unitname) < 0) {
96 MESSAGE(
"ERROR : mesh info ...");
108 &geotransformation)) < 0) {
109 MESSAGE(
"ERROR : number of nodes ...");
115 MESSAGE(
"ERROR : memory allocation ...");
121 MESSAGE(
"ERROR : nodes coordinates ...");
129 geotype = geotypes[it];
133 &geotransformation)) < 0) {
134 MESSAGE(
"ERROR : number of cell ...");
141 if ((connectivity = (
med_int *) malloc(
sizeof(
med_int)*ngeo*(geotype%100))) == NULL) {
142 MESSAGE(
"ERROR : memory allocation ...");
148 MESSAGE(
"ERROR : cell connectivity ...");
162 for (it=1;it<nstep;it++) {
165 &numdt, &numit, &dt) < 0) {
166 MESSAGE(
"ERROR : Computing step info ...");
176 &coordinatechangement, &geotransformation)) < 0) {
177 MESSAGE(
"ERROR : number of nodes ...");
182 if (coordinatechangement && geotransformation) {
187 MESSAGE(
"ERROR : nodes coordinates ...");
193 if (coordinatechangement && ! geotransformation) {
197 &matrixtransformation);
199 if (matrixsize < 0) {
200 MESSAGE(
"ERROR : matrix transformation ...");
204 if (matrixtransformation) {
206 MESSAGE(
"ERROR : read transformation matrix ...");
MEDC_EXPORT med_int MEDmeshnEntity(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_data_type datatype, const med_connectivity_mode cmode, med_bool *const changement, med_bool *const transformation)
Cette routine permet de lire le nombre d'entités dans un maillage pour une étape de calcul donnée.
MEDC_EXPORT med_err MEDmeshComputationStepInfo(const med_idt fid, const char *const meshname, const int csit, med_int *const numdt, med_int *const numit, med_float *const dt)
Cette routine permet de lire les informations relatives à une étape de calcul d'un maillage.
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
#define ISCRUTE_int(entier)
MEDC_EXPORT med_err MEDmeshNodeCoordinateTrsfRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_float *const coordinatetrsf)
Cette routine lit les paramètres de translation rotation à appliquer aux noeuds de l'étape de calcul ...
med_geometry_type MED_GET_CELL_GEOMETRY_TYPE[MED_N_CELL_FIXED_GEO+2]
MEDC_EXPORT med_err MEDmeshElementConnectivityRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_connectivity_mode cmode, const med_switch_mode switchmode, med_int *const connectivity)
Cette routine permet de lire dans un maillage le tableau des connectivités pour un type géométrique d...
MEDC_EXPORT med_int MEDmeshnAxis(const med_idt fid, const int meshit)
Cette routine permet de lire dans un maillage le nombre d'axes du repère des coordonnées des noeuds.
#define MED_N_CELL_FIXED_GEO
MEDC_EXPORT med_err MEDmeshNodeCoordinateRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_switch_mode switchmode, med_float *const coordinates)
Cette routine permet de lire dans un maillage le tableau des coordonnées des noeuds,...
MEDC_EXPORT med_int MEDnMesh(const med_idt fid)
Cette routine permet de lire le nombre de maillages dans un fichier.
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
#define MED_ALL_CONSTITUENT
MEDC_EXPORT med_int MEDmeshnEntityWithProfile(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_data_type datatype, const med_connectivity_mode cmode, const med_storage_mode storagemode, char *const profilename, med_int *const profilesize, med_bool *const changement, med_bool *const transformation)
Cette routine permet de lire le nombre d'entités dans un maillage pour une étape de calcul et un prof...
int main(int argc, char **argv)
MEDC_EXPORT med_err MEDmeshInfo(const med_idt fid, const int meshit, char *const meshname, med_int *const spacedim, med_int *const meshdim, med_mesh_type *const meshtype, char *const description, char *const dtunit, med_sorting_type *const sortingtype, med_int *const nstep, med_axis_type *const axistype, char *const axisname, char *const axisunit)
Cette routine permet de lire les informations relatives à un maillage dans un fichier.
MEDC_EXPORT med_err MEDmeshNodeCoordinateWithProfileRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_storage_mode storagemode, const char *const profilename, const med_switch_mode switchmode, const med_int dimselect, med_float *const coordinates)
Cette routine permet de lire dans un maillage le tableau des coordonnées des noeuds,...