X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FTest%2FtestMEDReader17.py;h=0cef24239ebca67393509dc10e8b342e0b8f977b;hb=7f73f7630e2938bcd12c9736c95ab0b72ec8a072;hp=e9db394a53903485ca509d3789d6f8fcb5322c60;hpb=c03e57bad6594c44faf7a96c955ba3f9249ed490;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/Test/testMEDReader17.py b/src/Plugins/MEDReader/Test/testMEDReader17.py index e9db394a..0cef2423 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader17.py +++ b/src/Plugins/MEDReader/Test/testMEDReader17.py @@ -1,10 +1,10 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2014 CEA/DEN, EDF R&D +# Copyright (C) 2007-2016 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 # License as published by the Free Software Foundation; either -# version 2.1 of the License. +# version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -35,9 +35,9 @@ grp3=DataArrayInt([0,1,2,3]) ; grp3.setName("grp3") mm.setGroupsAtLevel(0,[grp0,grp1,grp2,grp3]) f=MEDCouplingFieldDouble(ON_GAUSS_NE) ; f.setMesh(m) ; f.setName("MyField") ; f.setTime(0.,0,0) arr2=DataArrayDouble(4*4*2) ; arr2.iota() ; arr2.rearrange(2) ; arr2.setInfoOnComponents(["aa","bbb"]) -f.setArray(arr2) ; arr2+=0.1 ; f.checkCoherency() +f.setArray(arr2) ; arr2+=0.1 ; f.checkConsistencyLight() mm.write(fname,2) -MEDLoader.WriteFieldUsingAlreadyWrittenMesh(fname,f) +WriteFieldUsingAlreadyWrittenMesh(fname,f) # from paraview.simple import * from paraview import servermanager @@ -50,12 +50,12 @@ reader.AllArrays=['TS0/Mesh/ComSup0/MyField@@][@@GSSNE'] ExtractGroup1 = ExtractGroup(Input=reader) ExtractGroup1.UpdatePipelineInformation() ExtractGroup1.AllGroups=["GRP_grp1"] -ELNOPoints1=ELNOPoints(Input=ExtractGroup1) -ELNOPoints1.SelectSourceArray=['ELNO@MyField'] +ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=ExtractGroup1) +ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField'] # -ELNOPoints1=ELNOPoints(Input=reader) -ELNOPoints1.SelectSourceArray=['ELNO@MyField'] -ExtractGroup1 = ExtractGroup(Input=ELNOPoints1) +ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=reader) +ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField'] +ExtractGroup1 = ExtractGroup(Input=ELNOfieldToPointSprite1) ExtractGroup1.UpdatePipelineInformation() ExtractGroup1.AllGroups=["GRP_grp1"] ExtractGroup1.UpdatePipeline()