Salome HOME
Copyright update 2020
[modules/med.git] / doc / tut / projection / demovtu / projection.py
index 6ec7353d9194abded021db7f4cb0f7d6df253011..79f9bd4c1d2b1368ce687c4bc6df304914b9da2f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2015  CEA/DEN, EDF R&D
+# Copyright (C) 2012-2020  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
@@ -23,11 +23,11 @@ from MEDCouplingRemapper import *
 ms=MEDFileMesh.New("MeshSource.med") ; ms=ms.getMeshAtLevel(0)
 mt=MEDFileMesh.New("MeshTarget.med") ; mt=mt.getMeshAtLevel(0)
 fs=ms.fillFromAnalytic(ON_CELLS,1,"319.*cos(((x)*(x)*3+(y-0.52)*(y-0.52)+(z-0.1)*(z-0.1))*7)")
-fs.setNature(ConservativeVolumic)
+fs.setNature(IntensiveMaximum)
 fs.setName("Temperature")
 MEDCouplingFieldDouble.WriteVTK("MeshSource.vtu",[fs])
 
-mt2=mt.deepCpy()
+mt2=mt.deepCopy()
 mt2.translate([0.4,0.,0.])
 mt2.writeVTK("MeshTarget.vtu")
 #