Salome HOME
[bos #16777] [CEA] generateVectors makes SALOME crash
[modules/paravis.git] / src / Plugins / MEDReader / Test / testMEDReader18.py
index 235a4042088743d66ffa659e9e6e08517332b6ae..3937a719b9ac338797b71d7725b26b91027e0398 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2015  CEA/DEN, EDF R&D
+# Copyright (C) 2015-2019  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -47,6 +47,8 @@ reader=MEDReader(FileName=fname)
 reader.AllArrays=['TS0/mesh/ComSup0/mesh@@][@@P0']
 ExtractGroup1 = ExtractGroup(Input=reader)
 ExtractGroup1.AllGroups=["GRP_grp0","GRP_grp1"]
-ExtractGroup1.UpdatePipelineInformation()
+#ExtractGroup1.UpdatePipelineInformation()
 res=servermanager.Fetch(ExtractGroup1,0)
-assert(res.GetBlock(0).GetNumberOfCells()==3)
+assert(res.GetNumberOfBlocks()==2)
+assert(res.GetBlock(1).GetNumberOfCells()==1)
+assert(res.GetBlock(0).GetNumberOfCells()==2)