# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2016 CEA/DEN, EDF R&D
+# Copyright (C) 2007-2024 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
if sys.platform == "win32":
import MEDCouplingCompat as MC
else:
- import MEDCoupling as MC
+ import medcoupling as MC
import MEDLoader as ML
# just have to specify the field and the MEDLoader will save the
# underlying mesh.
createFromScratch=True
- ML.MEDLoader.WriteField(medFilepath,field,createFromScratch)
+ ML.WriteField(medFilepath,field,createFromScratch)
def createMesh(self, meshname, sizeX, sizeY):
"""