Salome HOME
projects
/
modules
/
med.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo-fix by Kunda
[modules/med.git]
/
doc
/
tut
/
addfields
/
operations.py
diff --git
a/doc/tut/addfields/operations.py
b/doc/tut/addfields/operations.py
index efd59f76ec621d720eb03f36c6cfe114a967ad53..0872cf0deb5eaa2b94072b2ffadbfeeb3684d902 100644
(file)
--- a/
doc/tut/addfields/operations.py
+++ b/
doc/tut/addfields/operations.py
@@
-1,6
+1,5
@@
-#!/usr/bin/env python
-# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2012-2016 CEA/DEN, EDF R&D
+#!/usr/bin/env python3
+# 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
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-74,7
+73,7
@@
p4.setMesh(mesh)
result = p3+p4
result.setName("p3+p4")
result = p3+p4
result.setName("p3+p4")
-# We can finally save the result together with the operand
e
s fields
+# We can finally save the result together with the operands fields
outfilename = "addition.med"
MEDLoader.WriteField(outfilename,result,True)
MEDLoader.WriteField(outfilename,p3,False)
outfilename = "addition.med"
MEDLoader.WriteField(outfilename,result,True)
MEDLoader.WriteField(outfilename,p3,False)