[MOAB-dev] r3103 - in MOAB/trunk: mhdf/src tools/mbperf

tautges at mcs.anl.gov tautges at mcs.anl.gov
Mon Aug 10 17:50:40 CDT 2009


Thanks Jim & Jason, one step closer to a "real" project...

(Sent from my mobile phone.)

- tim

On Aug 10, 2009, at 2:53 PM, jvporter at wisc.edu wrote:

> Author: jvporter
> Date: 2009-08-10 16:53:01 -0500 (Mon, 10 Aug 2009)
> New Revision: 3103
>
> Modified:
>   MOAB/trunk/mhdf/src/tags.c
>   MOAB/trunk/tools/mbperf/mbperf.cpp
> Log:
> Eliminate the last of the warnings (I hope!)
>
>
> Modified: MOAB/trunk/mhdf/src/tags.c
> ===================================================================
> --- MOAB/trunk/mhdf/src/tags.c    2009-08-10 21:30:36 UTC (rev 3102)
> +++ MOAB/trunk/mhdf/src/tags.c    2009-08-10 21:53:01 UTC (rev 3103)
> @@ -743,7 +743,6 @@
>   hid_t type_id;
>   int rank;
>   hsize_t dims[H5S_MAX_RANK];
> -  int perm[H5S_MAX_RANK];
>
>   type_id = H5Aget_type( attrib_id );
>   switch (H5Tget_class(type_id)) {
> @@ -821,7 +820,6 @@
>   unsigned int index;
>   int rank, var_data;
>   hsize_t dims[H5S_MAX_RANK];
> -  int perm[H5S_MAX_RANK];
>   H5T_class_t class_tmp;
>
>   API_BEGIN;
>
> Modified: MOAB/trunk/tools/mbperf/mbperf.cpp
> ===================================================================
> --- MOAB/trunk/tools/mbperf/mbperf.cpp    2009-08-10 21:30:36 UTC  
> (rev 3102)
> +++ MOAB/trunk/tools/mbperf/mbperf.cpp    2009-08-10 21:53:01 UTC  
> (rev 3103)
> @@ -532,9 +532,10 @@
>   int num_elems = nelem*nelem*nelem;
>   MBEntityHandle vstart, estart;
>
> -  MBReadUtilIface* readMeshIface;
> +  void *ptr = 0;
>   // get the read interface
> -  gMB->query_interface("MBReadUtilIface", reinterpret_cast<void**> 
> (&readMeshIface));
> +  gMB->query_interface("MBReadUtilIface", &ptr);
> +  MBReadUtilIface* readMeshIface = static_cast<MBReadUtilIface*> 
> (ptr);
>
>   // create a sequence to hold the node coordinates
>   // get the current number of entities and start at the next slot
>


More information about the moab-dev mailing list