FiberBundleHDF5  FiberHDF5 Documentation, Revision 2026
High-Performance Fiber Bundle Data Model for Scientific Visualization
Loading...
Searching...
No Matches
F5P.c File Reference
#include "F5P.h"
#include "F5X.h"
#include "F5uniform.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

int F5P_is_regular3D (F5Path *grid, const char *coordinate_system)
int F5P_is_uniform (F5Path *grid, const char *coordinate_system)
 if (!F5Dexist(pos_id, name)) ok=0
 free (name)
 H5Tclose (type_id)
 H5Gclose (pos_id)
 H5Gclose (Rep_id)
 if (!grid->Topology_hid) H5Gclose(Top_id)
int F5P_is_rectilinear (F5Path *grid, const char *coordinate_system)
int F5P_is_curvilinear (F5Path *grid, const char *coordinate_system)
int F5P_is_triangular_surface (F5Path *grid, const char *coordinate_system)
int F5P_is_particle_system (F5Path *grid, const char *coordinate_system)
int F5P_has_vertices (F5Path *grid, const char *coordinate_system)
int F5P_has_vertex_fields (F5Path *grid, const char *coordinate_system)
int F5P_has_cell_fields (F5Path *grid, const char *coordinate_system)

Variables

 name = H5Tget_member_name(type_id, n-1)
return ok

Function Documentation

◆ F5P_has_cell_fields()

int F5P_has_cell_fields ( F5Path * grid,
const char * coordinate_system )

Check if the grid has some data fields defined on its cells

◆ F5P_has_vertex_fields()

int F5P_has_vertex_fields ( F5Path * grid,
const char * coordinate_system )

Check if the grid has some fields in the specified coordinate system

◆ F5P_is_regular3D()

int F5P_is_regular3D ( F5Path * grid,
const char * coordinate_system )
Examples
RegularReader.c.

Definition at line 10 of file F5P.c.

11{
12hsize_t dims[FIBER_MAX_RANK];
13int rank = F5get_extension(grid, dims);
14
15 if (rank==3)
16 return 1;
17
18 return 0;
19}
#define FIBER_MAX_RANK
Definition F5defs.h:105
int F5get_extension(F5Path *grid, hsize_t dims[FIBER_MAX_RANK])
Definition F5uniform.c:522

References F5get_extension(), and FIBER_MAX_RANK.

◆ free()

◆ H5Gclose() [1/2]

H5Gclose ( pos_id )

◆ H5Gclose() [2/2]

H5Gclose ( Rep_id )

◆ H5Tclose()

◆ if() [1/2]

if ( ! F5Dexistpos_id, name)
pure virtual

References name, and ok.

◆ if() [2/2]

if ( !grid-> Topology_hid)

Variable Documentation

◆ name

name = H5Tget_member_name(type_id, n-1)

A grid is `Z-stacked' if its coordinates in a certain chart are uniform in all coordinates but the last one, which is given as a one-dimensional dataset. */ int F5P_is_Zstacked(F5Path*grid, const char*coordinate_system) { hid_t Top_id, Rep_id; int ok; hsize_t dims[FIBER_MAX_RANK]; int rank;

 if (!grid->Grid_hid)
         return 0;

 rank = F5get_extension(grid, dims);

 if (rank!=3) return 0;

 if (grid->Topology_hid)
         Top_id = grid->Topology_hid;
 else
         Top_id = H5Gopen2(grid->Grid_hid, FIBER_HDF5_POINTS, H5P_DEFAULT);

 Rep_id = H5Gopen2( Top_id, coordinate_system, H5P_DEFAULT );

 ok = F5Lis_linear(Rep_id, FIBER_HDF5_POSITIONS_STRING);
 if (ok)
 {
 char*name;
 hid_t   pos_id = H5Gopen2(Rep_id, FIBER_HDF5_POSITIONS_STRING, H5P_DEFAULT); 
 hid_t   type_id = F5Lget_type(pos_id, 1, 0);
 int     n = H5Tget_nmembers(type_id);

         /* Look for the last member 
Examples
mm5-nc2F5.c.

Definition at line 82 of file F5P.c.

Referenced by F5Aappend(), F5Acreate(), F5Aget_ints(), F5Aget_string(), F5Aget_type(), F5Aopen_name(), F5Aread2(), F5Asave(), F5Asave_ints(), F5Asave_string(), F5Asave_strings(), F5Astore_integer(), F5Atry_to_open(), F5Awrite_integer(), F5B_new_global_domain(), F5B_new_global_float_chart(), F5B_new_global_fractional_domain(), F5B_new_global_fragment_neighbour_domain(), F5B_new_global_int_chart(), F5B_new_global_int_domain(), F5B_read_global_chart(), F5Bget_tensor_type_byname(), F5Cwrite_quad_surface(), F5Dappend(), F5Dcreate(), F5Dexist(), F5Dtry_to_open(), F5Fopen_group_or_dataset(), F5Gappend(), F5Gappend_external(), F5Gappend_hinted_creation(), F5Gappend_tree(), F5Gcreate(), F5Gexist(), F5Gopen(), F5Gtry_to_open(), F5P_is_curvilinear(), F5P_is_rectilinear(), F5parameter_delete(), F5parameter_find(), F5parameter_get(), F5Rcreate_faces_as_vertices_topology(), F5Rcreate_rectilinear(), F5Tappend(), F5Tcommit(), F5write_irregular_surface(), F5write_particle_positions3fv(), F5write_particle_positions_with_field_d(), F5write_polar_particle_positions(), F5write_quad_surface(), F5write_regular_surface(), F5write_regular_surface_vertex_field_rgb(), F5write_triangular_surface(), F5write_triangular_surface_cell_vectors(), F5write_triangular_surface_vc(), F5write_triangular_surface_vertex_vectors(), F_H5Aread(), free(), if(), newF5Ttensor(), and TopologyName().

◆ ok