[MOAB-dev] r5910 - MOAB/trunk/src/moab/point_locater/element_maps

iulian at mcs.anl.gov iulian at mcs.anl.gov
Thu Dec 13 18:10:11 CST 2012


Author: iulian
Date: 2012-12-13 18:10:11 -0600 (Thu, 13 Dec 2012)
New Revision: 5910

Modified:
   MOAB/trunk/src/moab/point_locater/element_maps/spectral_hex_map.hpp
Log:
cast away constness in this function
otherwise gcc on ubuntu 12.04 will error out


Modified: MOAB/trunk/src/moab/point_locater/element_maps/spectral_hex_map.hpp
===================================================================
--- MOAB/trunk/src/moab/point_locater/element_maps/spectral_hex_map.hpp	2012-12-13 17:22:58 UTC (rev 5909)
+++ MOAB/trunk/src/moab/point_locater/element_maps/spectral_hex_map.hpp	2012-12-14 00:10:11 UTC (rev 5910)
@@ -185,7 +185,7 @@
        for (int i=0; i<_n; i++) {
          xi[0]=_ld[0].z[i];
          //double wi= _ld[0].w[i];
-         opt_vol_set_intp_3(&_data,xi);
+         opt_vol_set_intp_3((opt_data_3 *)&_data,xi); // cast away const-ness
          double wk= _ld[2].J[k];
          double wj= _ld[1].J[j];
          double wi= _ld[0].J[i];



More information about the moab-dev mailing list