Salome HOME
Merge branch 'rnv/win_swig_generation' of salome:tools/medcoupling into rnv/win_swig_...
[tools/medcoupling.git] / src / ParaMEDMEM_Swig / test_NonCoincidentDEC.py
index 493c5b388d0ba69970cf04068dc61362d3a0cdec..3d78a496b4709dea6e6c1860c6e1d94ac8fae316 100755 (executable)
@@ -1,11 +1,11 @@
 #!/usr/bin/env python
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2013  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
@@ -50,17 +50,17 @@ icocofield = 0
 
 dec = NonCoincidentDEC(source_group, target_group)
 
-data_dir = os.environ['MED_ROOT_DIR']
+data_dir = os.environ['MEDCOUPLING_ROOT_DIR']
 tmp_dir  = os.environ['TMP']
 if tmp_dir == '':
     tmp_dir = "/tmp"
     pass
 
-filename_xml1 = data_dir + "/share/salome/resources/med/square1_split"
-filename_xml2 = data_dir + "/share/salome/resources/med/square2_split"
+filename_xml1 = data_dir + "/share/resources/med/square1_split"
+filename_xml2 = data_dir + "/share/resources/med/square2_split"
 
 MPI_Barrier(MPI_COMM_WORLD)
-    
+
 if source_group.containsMyRank():
 
     filename = filename_xml1 + str(rank+1) + ".med"
@@ -119,7 +119,7 @@ if source_group.containsMyRank():
 
     dec.sendData()
     pass
-    
+
 if target_group.containsMyRank():
 
     MPI_Bcast(field_before_int, 1, MPI_DOUBLE, 0, MPI_COMM_WORLD)