/// @endcond
+bool MEDLoader::HasXDR()
+{
+#ifdef HAS_XDR
+ return true;
+#else
+ return false;
+#endif HAS_XDR
+}
+
/*!
* This method sets the epsilon value used for node comparison when trying to buid a profile for a field on node/cell on an already written mesh.
*/
static void SetEpsilonForNodeComp(double val);
static void SetCompPolicyForCell(int val);
static void SetTooLongStrPolicy(int val);
+ static bool HasXDR();
static void CheckFileForRead(const char *fileName);
static std::vector<std::string> GetMeshNames(const char *fileName);
static std::vector< std::vector< std::pair<INTERP_KERNEL::NormalizedCellType,int> > > GetUMeshGlobalInfo(const char *fileName, const char *meshName, int &meshDim, int& spaceDim, int& numberOfNodes);
class MEDLoader
{
public:
+ static bool HasXDR();
static void SetEpsilonForNodeComp(double val) throw(INTERP_KERNEL::Exception);
static void SetCompPolicyForCell(int val) throw(INTERP_KERNEL::Exception);
static void SetTooLongStrPolicy(int val) throw(INTERP_KERNEL::Exception);
os.remove(sauvFile)
pass
+ @unittest.skipUnless(MEDLoader.HasXDR(),"requires XDR")
def testMissingGroups(self):
"""test for issue 0021749: [CEA 601] Some missing groups in mesh after reading a SAUV file with SauvReader."""
self.assertTrue( os.getenv("MED_ROOT_DIR") )