[MOAB-dev] r1780 - MOAB/trunk/tools/iMesh

tautges at mcs.anl.gov tautges at mcs.anl.gov
Mon Apr 28 12:20:05 CDT 2008


Author: tautges
Date: 2008-04-28 12:20:04 -0500 (Mon, 28 Apr 2008)
New Revision: 1780

Added:
   MOAB/trunk/tools/iMesh/iMesh_extensions.h
   MOAB/trunk/tools/iMesh/iMesh_extensions_protos.h
Removed:
   MOAB/trunk/tools/iMesh/iBase_FCDefs.h.in
Modified:
   MOAB/trunk/tools/iMesh/Makefile.am
Log:
Forgot to add these and change the Makefile.am to include in distro.


Modified: MOAB/trunk/tools/iMesh/Makefile.am
===================================================================
--- MOAB/trunk/tools/iMesh/Makefile.am	2008-04-28 16:35:24 UTC (rev 1779)
+++ MOAB/trunk/tools/iMesh/Makefile.am	2008-04-28 17:20:04 UTC (rev 1780)
@@ -29,6 +29,8 @@
 	iMesh_MOAB.cpp
                    
 libiMesh_la_include_HEADERS = iMesh.h \
+                             iMesh_extensions.h \
+                             iMesh_extensions_protos.h \
                              iMesh_f.h \
                              iMesh_protos.h \
                              iBase.h \

Deleted: MOAB/trunk/tools/iMesh/iBase_FCDefs.h.in
===================================================================
--- MOAB/trunk/tools/iMesh/iBase_FCDefs.h.in	2008-04-28 16:35:24 UTC (rev 1779)
+++ MOAB/trunk/tools/iMesh/iBase_FCDefs.h.in	2008-04-28 17:20:04 UTC (rev 1780)
@@ -1,7 +0,0 @@
-
-/* Define to a macro mangling the given C identifier (in lower and upper
-   case), which must not contain underscores, for linking with Fortran. */
-#undef FC_FUNC
-
-/* As FC_FUNC, but for C identifiers containing underscores. */
-#undef FC_FUNC_

Added: MOAB/trunk/tools/iMesh/iMesh_extensions.h
===================================================================
--- MOAB/trunk/tools/iMesh/iMesh_extensions.h	                        (rev 0)
+++ MOAB/trunk/tools/iMesh/iMesh_extensions.h	2008-04-28 17:20:04 UTC (rev 1780)
@@ -0,0 +1,165 @@
+#ifndef IMESH_REC_CBIND_H__
+#define IMESH_REC_CBIND_H__
+
+#include "iMesh.h"
+#include "iMesh_extensions_protos.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+    /**\brief  Get entities of specific type and/or topology in set or instance, recursive
+     *
+     * Get entities of specific type and/or topology in set or instance.  If recursive
+     * is passed in non-zero, includes entities in owned sets.  All 
+     * entities of a given type or topology are requested by specifying
+     * iBase_ALL_TOPOLOGIES or iBase_ALL_TYPES, respectively.  Specified type
+     * or topology must be a value in the iBase_EntityType or iMesh_EntityTopology
+     * enumeration, respectively.
+     * \param instance iMesh instance handle
+     * \param entity_set_handle Entity set being queried
+     * \param entity_type Type of entities being requested
+     * \param entity_topology Topology of entities being requested
+     * \param recursive If non-zero, gets entities in owned sets too
+     * \param *entity_handles Pointer to array of entity handles returned 
+     *        from function
+     * \param *entity_handles_allocated Pointer to allocated size of 
+     *        entity_handles array
+     * \param *entity_handles_size Pointer to occupied size of entity_handles array
+     * \param *err Pointer to error type returned from function
+     */
+  void iMesh_getEntitiesRec(iMesh_Instance instance,
+                            /*in*/ const iBase_EntitySetHandle entity_set_handle,
+                            /*in*/ const int entity_type,
+                            /*in*/ const int entity_topology,
+                            /*in*/ const int recursive,
+                            /*out*/ iBase_EntityHandle** entity_handles,
+                            /*out*/ int* entity_handles_allocated,
+                            /*out*/ int* entity_handles_size,
+                            /*out*/ int *err);
+
+    /**\brief  Get the number of entities with the specified type in the instance or set, recursive
+     *
+     * Get the number of entities with the specified type in the instance 
+     * or set.  If recursive is passed in non-zero, includes entities in owned sets.  
+     * If entity set handle is zero, return information for instance, 
+     * otherwise for set.  Value of entity type must be from the
+     * iBase_EntityType enumeration.  If iBase_ALL_TYPES is specified,
+     * total number of entities (excluding entity sets) is returned.
+     * \param instance iMesh instance handle
+     * \param entity_set_handle Entity set being queried
+     * \param entity_type Type of entity requested
+     * \param recursive If non-zero, includes entities in owned sets too
+     * \param num_type Pointer to number of entities, returned from function
+     * \param *err Pointer to error type returned from function
+     */
+  void iMesh_getNumOfTypeRec(iMesh_Instance instance,
+                             /*in*/ const iBase_EntitySetHandle entity_set_handle,
+                             /*in*/ const int entity_type,
+                             /*in*/ const int recursive,
+                             /*out*/ int *num_type, 
+                             /*out*/ int *err);
+
+    /**\brief  Get the number of entities with the specified topology in the instance or set
+     *
+     * Get the number of entities with the specified topology in the instance 
+     * or set.  If recursive is passed in non-zero, includes entities in owned sets.  
+     * If entity set handle is zero, return information for instance,
+     * otherwise for set.  Value of entity topology must be from the
+     * iMesh_EntityTopology enumeration.  If iMesh_ALL_TOPOLOGIES is specified,
+     * total number of entities (excluding entity sets) is returned.
+     * \param instance iMesh instance handle
+     * \param entity_set_handle Entity set being queried
+     * \param entity_topology Topology of entity requested
+     * \param recursive If non-zero, includes entities in owned sets too
+     * \param num_topo Pointer to number of entities, returned from function
+     * \param *err Pointer to error type returned from function
+     */
+  void iMesh_getNumOfTopoRec(iMesh_Instance instance,
+                             /*in*/ const iBase_EntitySetHandle entity_set_handle,
+                             /*in*/ const int entity_topology,
+                             /*in*/ const int recursive,
+                             /*out*/ int *num_topo, 
+                             /*out*/ int *err);
+
+
+    /**\brief  Get entities with specified type, topology, tag(s) and (optionally) tag value(s)
+     *
+     * Get entities with the specified type, topology, tag(s), and optionally tag value(s).
+     * If tag values pointer is input as zero, entities with specified tag(s) are returned,
+     * regardless of their value.
+     * \param instance iMesh instance handle
+     * \param entity_set_handle Entity set being queried
+     * \param entity_type Type of entities being requested
+     * \param entity_topology Topology of entities being requested
+     * \param tag_handles Array of tag handles
+     * \param tag_vals Array of tag values (zero if values not requested)
+     * \param num_tags_vals Number of tags and optionally values
+     * \param recursive If non-zero, gets entities in owned sets too
+     * \param *entity_handles Pointer to array of entity handles returned 
+     *        from function
+     * \param *entity_handles_allocated Pointer to allocated size of 
+     *        entity_handles array
+     * \param *entity_handles_size Pointer to occupied size of entity_handles array
+     * \param *err Pointer to error type returned from function
+     */
+  void iMesh_getEntsByTagsRec(iMesh_Instance instance,
+                              /*in*/ const iBase_EntitySetHandle entity_set_handle,
+                              /*in*/ const int entity_type,
+                              /*in*/ const int entity_topology,
+                              /*in*/ const iBase_TagHandle *tag_handles,
+                              /*in*/ const char * const *tag_vals,
+                              /*in*/ const int num_tags_vals,
+                              /*in*/ const int recursive,
+                              /*out*/ iBase_EntityHandle** entity_handles,
+                              /*out*/ int* entity_handles_allocated,
+                              /*out*/ int* entity_handles_size,
+                              /*out*/ int *err);
+
+    /**\brief  Get entity sets with specified type, topology, tag(s) and (optionally) tag value(s)
+     *
+     * Get entity sets with the specified type, topology, tag(s), and optionally tag value(s).
+     * If tag values pointer is input as zero, entities with specified tag(s) are returned,
+     * regardless of their value.
+     * \param instance iMesh instance handle
+     * \param entity_set_handle Entity set being queried
+     * \param tag_handles Array of tag handles
+     * \param tag_vals Array of tag values (zero if values not requested)
+     * \param num_tags_vals Number of tags and optionally values
+     * \param recursive If non-zero, gets entities in owned sets too
+     * \param *set_handles Pointer to array of entity handles returned 
+     *        from function
+     * \param *set_handles_allocated Pointer to allocated size of 
+     *        set_handles array
+     * \param *set_handles_size Pointer to occupied size of entity_handles array
+     * \param *err Pointer to error type returned from function
+     */
+  void iMesh_getEntSetsByTagsRec(iMesh_Instance instance,
+                                 /*in*/ const iBase_EntitySetHandle entity_set_handle,
+                                 /*in*/ const iBase_TagHandle *tag_handles,
+                                 /*in*/ const char * const *tag_vals,
+                                 /*in*/ const int num_tags_vals,
+                                 /*in*/ const int recursive,
+                                 /*out*/ iBase_EntityHandle** set_handles,
+                                 /*out*/ int* set_handles_allocated,
+                                 /*out*/ int* set_handles_size,
+                                 /*out*/ int *err);
+
+    /**\brief Get MBCN type corresponding to iMesh topology value
+     *
+     * Get MBCN type corresponding to iMesh topology value.  Required for input
+     * to MBCN canonical numbering functions, which are written in terms of 
+     * MBCN entity types.  Returns -1 for type if entity topology is out of
+     * bounds, or MBMAXTYPE if no corresponding MBCN type exists.
+     * \param imesh_entity_topology iMesh_EntityTopology value
+     * \param mbcn_type MBEntityType corresponding to entity topology
+     */
+  void iMesh_MBCNType(/*in*/ const int imesh_entity_topology,
+                      /*out*/ int *mbcn_type);
+    
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif

Added: MOAB/trunk/tools/iMesh/iMesh_extensions_protos.h
===================================================================
--- MOAB/trunk/tools/iMesh/iMesh_extensions_protos.h	                        (rev 0)
+++ MOAB/trunk/tools/iMesh/iMesh_extensions_protos.h	2008-04-28 17:20:04 UTC (rev 1780)
@@ -0,0 +1,11 @@
+#include "MBCN_FCDefs.h"
+#ifdef FC_FUNC_
+
+#define iMesh_getEntitiesRec FC_FUNC_(imesh_getentitiesrec, IMESH_GETENTITIESREC)
+#define iMesh_getNumOfTypeRec FC_FUNC_(imesh_getnumoftyperec, IMESH_GETNUMOFTYPEREC)
+#define iMesh_getNumOfTopoRec FC_FUNC_(imesh_getnumoftoporec, IMESH_GETNUMOFTOPOREC)
+#define iMesh_getEntsByTagsRec FC_FUNC_(imesh_getentsbytagsrec, IMESH_GETENTSBYTAGSREC)
+#define iMesh_getEntSetsByTagsRec FC_FUNC_(imesh_getentsetsbytagsrec, IMESH_GETENTSETSBYTAGSREC)
+#define iMesh_MBCNType FC_FUNC_(imesh_mbcntype, IMESH_MBCNTYPE)
+
+#endif




More information about the moab-dev mailing list